mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
36 lines
1.1 KiB
Objective-C
36 lines
1.1 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
typedef enum {
|
|
TGPhotoAccessIntentRead,
|
|
TGPhotoAccessIntentSave,
|
|
TGPhotoAccessIntentCustomWallpaper
|
|
} TGPhotoAccessIntent;
|
|
|
|
typedef enum {
|
|
TGMicrophoneAccessIntentVoice,
|
|
TGMicrophoneAccessIntentVideo,
|
|
TGMicrophoneAccessIntentCall,
|
|
TGMicrophoneAccessIntentVideoMessage
|
|
} TGMicrophoneAccessIntent;
|
|
|
|
typedef enum {
|
|
TGCameraAccessIntentDefault,
|
|
TGCameraAccessIntentVideoMessage
|
|
} TGCameraAccessIntent;
|
|
|
|
typedef enum {
|
|
TGLocationAccessIntentSend,
|
|
TGLocationAccessIntentTracking,
|
|
TGLocationAccessIntentLiveLocation
|
|
} TGLocationAccessIntent;
|
|
|
|
@protocol LegacyComponentsAccessChecker <NSObject>
|
|
|
|
- (bool)checkPhotoAuthorizationStatusForIntent:(TGPhotoAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
- (bool)checkMicrophoneAuthorizationStatusForIntent:(TGMicrophoneAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
- (bool)checkCameraAuthorizationStatusForIntent:(TGCameraAccessIntent)intent completion:(void (^)(BOOL))completion alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
@end
|