FWAuthorizeProtocol
@protocol FWAuthorizeProtocol
权限授权协议
-
查询权限状态,必须实现。某些权限会阻塞当前线程,建议异步查询,如通知
Declaration
Objective-C
- (enum FWAuthorizeStatus)authorizeStatus;
-
执行权限授权,主线程回调,必须实现
Declaration
Objective-C
- (void)authorize: (void (^_Nullable __strong)(enum FWAuthorizeStatus))completion;
-
异步查询权限状态,当前线程回调,可选实现。某些权限建议异步查询,不会阻塞当前线程,如通知
Declaration
Objective-C
- (void)authorizeStatus: (void (^_Nullable __strong)(enum FWAuthorizeStatus))completion;