9 #ifndef BMKLocationAuth_h 10 #define BMKLocationAuth_h 13 typedef NS_ENUM(NSInteger, BMKLocationAuthErrorCode) {
14 BMKLocationAuthErrorUnknown = -1,
15 BMKLocationAuthErrorSuccess = 0,
16 BMKLocationAuthErrorNetworkFailed = 1,
17 BMKLocationAuthErrorFailed = 2,
21 @protocol BMKLocationAuthDelegate <NSObject>
28 - (void)onCheckPermissionState:(BMKLocationAuthErrorCode)iError;
36 @property(nonatomic, readonly, assign) BMKLocationAuthErrorCode
permisionState;
49 -(void)checkPermisionWithKey:(NSString*)key authDelegate:(id<BMKLocationAuthDelegate>)delegate;
BMKLocationAuthErrorCode permisionState
鉴权状态0:成功; 1:网络错误; 2:授权失败
Definition: BMKLocationAuth.h:36
BMKLocationAuth类。用于鉴权
Definition: BMKLocationAuth.h:33
BMKLocationAuth * sharedInstance()
得到BMKLocationAuth的单例