22 lines
522 B
Swift
22 lines
522 B
Swift
import Foundation
|
|
|
|
enum SharingAction: Stateable {
|
|
case showSharing(Bool)
|
|
|
|
case shareLocation(lat: Double, lon: Double)
|
|
case shareContact(jid: String)
|
|
case shareDocuments([Data])
|
|
|
|
case checkCameraAccess
|
|
case setCameraAccess(Bool)
|
|
|
|
case checkGalleryAccess
|
|
case setGalleryAccess(Bool)
|
|
case fetchGallery
|
|
case galleryFetched([SharingGalleryItem])
|
|
case thumbnailUpdated(Data, String)
|
|
|
|
case cameraCaptured(media: Data, type: SharingCameraMediaType)
|
|
case flushCameraCaptured
|
|
}
|