mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-12 14:29:24 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
40 lines
1.3 KiB
Objective-C
40 lines
1.3 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)checkAddressBookAuthorizationStatusWithAlertDismissComlpetion:(void (^)(void))alertDismissCompletion;
|
|
|
|
- (bool)checkPhotoAuthorizationStatusForIntent:(TGPhotoAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
- (bool)checkMicrophoneAuthorizationStatusForIntent:(TGMicrophoneAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
- (bool)checkCameraAuthorizationStatusForIntent:(TGCameraAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
- (bool)checkLocationAuthorizationStatusForIntent:(TGLocationAccessIntent)intent alertDismissComlpetion:(void (^)(void))alertDismissCompletion;
|
|
|
|
@end
|