another.im-ios/ConversationsClassic/AppCore/Actions/SharingActions.swift

21 lines
507 B
Swift
Raw Normal View History

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-11 11:24:43 +00:00
case shareMedia(ids: [String])
2024-07-10 14:48:18 +00:00
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)
2024-07-14 13:42:51 +00:00
case galleryItemsUpdated(items: [SharingGalleryItem])
2024-07-10 17:49:36 +00:00
case cameraCaptured(media: Data, type: SharingCameraMediaType)
case flushCameraCaptured
}