BMKLocationManagerDelegate 协议定义了发生错误时的错误回调方法,连续定位的回调方法等。
更多...
#import <BMKLocationManager.h>
BMKLocationManagerDelegate 协议定义了发生错误时的错误回调方法,连续定位的回调方法等。
◆ BMKLocationManager:didChangeAuthorizationStatus:
| - (void) BMKLocationManager: |
|
(BMKLocationManager *_Nonnull) |
manager |
| didChangeAuthorizationStatus: |
|
("-BMKLocationManagerDidChangeAuthorization") |
|
|
|
(ios(4.2, 14.0)) |
API_DEPRECATED_WITH_REPLACEMENT |
|
|
| |
|
optional |
◆ BMKLocationManager:didFailWithError:
| - (void) BMKLocationManager: |
|
(BMKLocationManager *_Nonnull) |
manager |
| didFailWithError: |
|
(NSError *_Nullable) |
error |
|
|
| |
|
optional |
◆ BMKLocationManager:didUpdateHeading:
| - (void) BMKLocationManager: |
|
(BMKLocationManager *_Nonnull) |
manager |
| didUpdateHeading: |
|
(CLHeading *_Nullable) |
heading |
|
|
| |
|
optional |
该方法为BMKLocationManager提供设备朝向的回调方法。
- 参数
-
| manager | 提供该定位结果的BMKLocationManager类的实例 |
| heading | 设备的朝向结果 |
◆ BMKLocationManager:didUpdateLocation:orError:
| - (void) BMKLocationManager: |
|
(BMKLocationManager *_Nonnull) |
manager |
| didUpdateLocation: |
|
(BMKLocation *_Nullable) |
location |
| orError: |
|
(NSError *_Nullable) |
error |
|
|
| |
|
optional |
◆ BMKLocationManager:didUpdateNetworkState:orError:
| - (void) BMKLocationManager: |
|
(BMKLocationManager *_Nonnull) |
manager |
| didUpdateNetworkState: |
|
(BMKLocationNetworkState) |
state |
| orError: |
|
(NSError *_Nullable) |
error |
|
|
| |
|
optional |
该方法为BMKLocationManager所在App系统网络状态改变的回调事件。
- 参数
-
| manager | 提供该定位结果的BMKLocationManager类的实例 |
| state | 当前网络状态 |
| error | 错误信息 |
◆ BMKLocationManager:doRequestAlwaysAuthorization:
| - (void) BMKLocationManager: |
|
(BMKLocationManager *_Nonnull) |
manager |
| doRequestAlwaysAuthorization: |
|
(CLLocationManager *_Nonnull) |
locationManager |
|
|
| |
|
optional |
为了适配app store关于新的后台定位的审核机制(app store要求如果开发者只配置了使用期间定位,则代码中不能出现申请后台定位的逻辑),当开发者在plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription时,需要在该delegate中调用后台定位api:[locationManager requestAlwaysAuthorization]。开发者如果只配置了NSLocationWhenInUseUsageDescription,且只有使用期间的定位需求,则无需在delegate中实现逻辑。
- 参数
-
- 自从
- 1.6.0
◆ BMKLocationManagerDidChangeAuthorization:
authorizationStatus或者accuracyAuthorization有变化时回调函数
- 参数
-
◆ BMKLocationManagerShouldDisplayHeadingCalibration:
| - (BOOL) BMKLocationManagerShouldDisplayHeadingCalibration: |
|
(BMKLocationManager *_Nonnull) |
manager |
|
|
optional |
该方法为BMKLocationManager提示需要设备校正回调方法。
- 参数
-
| manager | 提供该定位结果的BMKLocationManager类的实例。 |
该协议的文档由以下文件生成: