mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
32 lines
1.1 KiB
Objective-C
32 lines
1.1 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
typedef enum {
|
|
TGPhotoAccessIntentRead,
|
|
TGPhotoAccessIntentSave,
|
|
TGPhotoAccessIntentCustomWallpaper
|
|
} TGPhotoAccessIntent;
|
|
|
|
typedef enum {
|
|
TGMicrophoneAccessIntentVoice,
|
|
TGMicrophoneAccessIntentVideo,
|
|
} TGMicrophoneAccessIntent;
|
|
|
|
typedef enum {
|
|
TGLocationAccessIntentSend,
|
|
TGLocationAccessIntentTracking,
|
|
} TGLocationAccessIntent;
|
|
|
|
@interface TGAccessChecker : NSObject
|
|
|
|
+ (bool)checkAddressBookAuthorizationStatusWithAlertDismissComlpetion:(void (^)(void))alertDismissCompletion;
|
|
|
|
+ (bool)checkPhotoAuthorizationStatusForIntent:(TGPhotoAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
+ (bool)checkMicrophoneAuthorizationStatusForIntent:(TGMicrophoneAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
|
|
|
|
+ (bool)checkCameraAuthorizationStatusWithAlertDismissComlpetion:(void (^)(void))alertDismissCompletion;
|
|
|
|
+ (bool)checkLocationAuthorizationStatusForIntent:(TGLocationAccessIntent)intent alertDismissComlpetion:(void (^)(void))alertDismissCompletion;
|
|
|
|
@end
|