BaiduLoc_IOSSDK_v2.0.6_Docs  2.0.6
BMKLocationAuth.h
浏览该文件的文档.
1 //
2 // BMKLocationAuth.h
3 // LocationComponent
4 //
5 // Created by baidu on 2017/4/10.
6 // Copyright © 2017年 baidu. All rights reserved.
7 //
8 
9 #ifndef BMKLocationAuth_h
10 #define BMKLocationAuth_h
11 
13 typedef NS_ENUM(NSInteger, BMKLocationAuthErrorCode) {
14  BMKLocationAuthErrorUnknown = -1,
15  BMKLocationAuthErrorSuccess = 0,
16  BMKLocationAuthErrorNetworkFailed = 1,
17  BMKLocationAuthErrorFailed = 2,
18 
19 };
21 @protocol BMKLocationAuthDelegate <NSObject>
22 @optional
23 
28 - (void)onCheckPermissionState:(BMKLocationAuthErrorCode)iError;
29 @end
30 
31 
33 @interface BMKLocationAuth : NSObject
34 
36 @property(nonatomic, readonly, assign) BMKLocationAuthErrorCode permisionState __deprecated_msg("已废弃since 2.0.5");
37 
39 @property(nonatomic, readonly, assign) BOOL isAgreePrivacy;
40 
45 
46 
52 -(void)checkPermisionWithKey:(NSString*)key authDelegate:(id<BMKLocationAuthDelegate>)delegate;
53 
54 
63 - (void)setAgreePrivacy:(BOOL)agreePrivacy;
64 
65 @end
66 
67 
68 
69 #endif /* BMKLocationAuth_h */
BMKLocationAuth::isAgreePrivacy
BOOL isAgreePrivacy
是否同意隐私合规政策
Definition: BMKLocationAuth.h:39
BMKLocationAuthDelegate-p
通知Delegate
Definition: BMKLocationAuth.h:21
+[BMKLocationAuth sharedInstance]
BMKLocationAuth * sharedInstance()
得到BMKLocationAuth的单例
NS_ENUM
typedef NS_ENUM(NSInteger, BMKLocationAuthErrorCode)
定位鉴权错误码
Definition: BMKLocationAuth.h:13
-[BMKLocationAuth __deprecated_msg]
BMKLocationAuthErrorCode permisionState __deprecated_msg("已废弃since 2.0.5")
鉴权状态0:成功; 1:网络错误; 2:授权失败
BMKLocationAuth
BMKLocationAuth类。用于鉴权
Definition: BMKLocationAuth.h:34