TKPermissionManager

Objective-C

@interface TKPermissionManager : NSObject

@property (nonatomic, strong, nullable) TKPermissionsOpenSettingsHandler openSettingsHandler;

// these are the main interface methods

/**
 * Is the app capable and authorized to use these kind of permissions?
 */
- (BOOL)isAuthorized;

// subclasses need to implement these
- (BOOL)featureIsAvailable;
- (void)askForPermission:(TKPermissionCompletionBlock)completion;
- (BOOL)authorizationRestrictionsApply;
- (TKAuthorizationStatus)authorizationStatus;
- (NSString *)authorizationAlertText;

@end

Swift

class TKPermissionManager : NSObject

Undocumented

AuthorizationAlert