轨迹定位的代理协议,since v6.2.0
More...
#import <MATraceManager.h>
◆ mapViewRequireLocationAuth:()
- (void MATraceDelegate) mapViewRequireLocationAuth: |
|
(CLLocationManager *) |
locationManager |
|
|
optional |
当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription,并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined,会调用代理的此方法。 此方法实现调用后台权限API即可( 该回调必须实现 [locationManager requestAlwaysAuthorization] ); since 6.8.1
- Parameters
-
locationManager | 地图的CLLocationManager。 |
◆ traceManager:didTrace:correct:distance:withError:()
- (void MATraceDelegate) traceManager: |
|
(MATraceManager *) |
manager |
didTrace: |
|
(NSArray< CLLocation * > *) |
locations |
correct: |
|
(NSArray< MATracePoint * > *) |
tracePoints |
distance: |
|
(double) |
distance |
withError: |
|
(NSError *) |
error |
|
|
| |
|
required |
轨迹定位纠偏的回调方法,since v6.2.0
- Parameters
-
manager | 轨迹定位管理对象 |
locations | 已经完成纠偏的原始定位数据 |
tracePoints | 已经完成纠偏处理后的轨迹点 |
distance | 距离,单位米 |
error | 如果成功的话为nil,否则为失败原因 |
The documentation for this protocol was generated from the following file: