百度定位SDK for iOS v1.2 类参考
构造函数 | 所有成员列表
<BMKLocationManagerDelegate>协议 参考

BMKLocationManagerDelegate 协议定义了发生错误时的错误回调方法,连续定位的回调方法等。 更多...

#import <BMKLocationManager.h>

类 <BMKLocationManagerDelegate> 继承关系图:

构造函数

(void) - BMKLocationManager:didFailWithError:
 当定位发生错误时,会调用代理的此方法。 更多...
 
(void) - BMKLocationManager:didUpdateLocation:orError:
 连续定位回调函数。 更多...
 
(void) - BMKLocationManager:didChangeAuthorizationStatus:
 定位权限状态改变时回调函数 更多...
 
(BOOL) - BMKLocationManagerShouldDisplayHeadingCalibration:
 该方法为BMKLocationManager提示需要设备校正回调方法。 更多...
 
(void) - BMKLocationManager:didUpdateHeading:
 该方法为BMKLocationManager提供设备朝向的回调方法。 更多...
 
(void) - BMKLocationManager:didUpdateNetworkState:orError:
 该方法为BMKLocationManager所在App系统网络状态改变的回调事件。 更多...
 

详细描述

BMKLocationManagerDelegate 协议定义了发生错误时的错误回调方法,连续定位的回调方法等。

函数文档

- (void) BMKLocationManager: (BMKLocationManager *_Nonnull)  manager
didChangeAuthorizationStatus: (CLAuthorizationStatus)  status 
optional

定位权限状态改变时回调函数

参数
manager定位 BMKLocationManager 类。
status定位权限状态。
- (void) BMKLocationManager: (BMKLocationManager *_Nonnull)  manager
didFailWithError: (NSError *_Nullable)  error 
optional

当定位发生错误时,会调用代理的此方法。

参数
manager定位 BMKLocationManager 类。
error返回的错误,参考 CLError 。
- (void) BMKLocationManager: (BMKLocationManager *_Nonnull)  manager
didUpdateHeading: (CLHeading *_Nullable)  heading 
optional

该方法为BMKLocationManager提供设备朝向的回调方法。

参数
manager提供该定位结果的BMKLocationManager类的实例
heading设备的朝向结果
- (void) BMKLocationManager: (BMKLocationManager *_Nonnull)  manager
didUpdateLocation: (BMKLocation *_Nullable)  location
orError: (NSError *_Nullable)  error 
optional

连续定位回调函数。

参数
manager定位 BMKLocationManager 类。
location定位结果,参考BMKLocation。
error错误信息。
- (void) BMKLocationManager: (BMKLocationManager *_Nonnull)  manager
didUpdateNetworkState: (BMKLocationNetworkState)  state
orError: (NSError *_Nullable)  error 
optional

该方法为BMKLocationManager所在App系统网络状态改变的回调事件。

参数
manager提供该定位结果的BMKLocationManager类的实例
state当前网络状态
error错误信息
- (BOOL) BMKLocationManagerShouldDisplayHeadingCalibration: (BMKLocationManager *_Nonnull)  manager
optional

该方法为BMKLocationManager提示需要设备校正回调方法。

参数
manager提供该定位结果的BMKLocationManager类的实例。

该协议的文档由以下文件生成: