conversations-classic-ios/ConversationsClassic/AppCore/Actions/SharingActions.swift

22 lines
532 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-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])
2024-07-11 11:05:08 +00:00
case thumbnailUpdated(data: Data, id: String)
2024-07-10 17:49:36 +00:00
case cameraCaptured(media: Data, type: SharingCameraMediaType)
case flushCameraCaptured
}