2024-07-10 14:48:18 +00:00
|
|
|
import Foundation
|
|
|
|
|
|
|
|
enum SharingAction: Stateable {
|
2024-07-10 14:13:47 +00:00
|
|
|
case showSharing(Bool)
|
|
|
|
|
2024-07-10 14:48:18 +00:00
|
|
|
case shareLocation(lat: Double, lon: Double)
|
|
|
|
case shareContact(jid: String)
|
|
|
|
case shareDocuments([Data])
|
|
|
|
|
2024-07-10 17:49:36 +00:00
|
|
|
case checkCameraAccess
|
|
|
|
case setCameraAccess(Bool)
|
2024-07-10 14:48:18 +00:00
|
|
|
|
2024-07-10 17:49:36 +00:00
|
|
|
case checkGalleryAccess
|
|
|
|
case setGalleryAccess(Bool)
|
|
|
|
case fetchGallery
|
|
|
|
case galleryFetched([SharingGalleryItem])
|
|
|
|
case thumbnailUpdated(Data, String)
|
|
|
|
|
|
|
|
case cameraCaptured(media: Data, type: SharingCameraMediaType)
|
|
|
|
case flushCameraCaptured
|
|
|
|
}
|