iOS高德地图SDK(3D) V11.2.0001

Instance Methods | List of all members
<MATraceDelegate> Protocol Reference

轨迹定位的代理协议，since v6.2.0 Proxy protocol for trajectory positioning since v6.2.0 More...

`#import <MATraceManager.h>`

Inheritance diagram for <MATraceDelegate>:

## Instance Methods
(void) | - traceManager:didTrace:correct:distance:withError:
| 轨迹定位纠偏的回调方法，since v6.2.0 Callback method for trajectory positioning correction v6.2.0 More...
(void) | - mapViewRequireLocationAuth:
| 当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription，并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined，会调用代理的此方法。 此方法实现调用后台权限API即可（ 该回调必须实现 [locationManager requestAlwaysAuthorization] ）; since 6.8.1 When the plist configures NSLocationAlwaysUsageDescription or NSLocationAlwaysAndWhenInUseUsageDescription, and [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined, this method of the delegate will be called. This method can be implemented by calling the background permission API (this callback must implement [locationManager requestAlwaysAuthorization]); since 6.8.1 More...

## Detailed Description

轨迹定位的代理协议，since v6.2.0 Proxy protocol for trajectory positioning since v6.2.0

## Method Documentation

## ◆ mapViewRequireLocationAuth:

- (void) mapViewRequireLocationAuth: |  | (CLLocationManager *) | locationManager |
| optional

当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription，并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined，会调用代理的此方法。 此方法实现调用后台权限API即可（ 该回调必须实现 [locationManager requestAlwaysAuthorization] ）; since 6.8.1 When the plist configures NSLocationAlwaysUsageDescription or NSLocationAlwaysAndWhenInUseUsageDescription, and [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined, this method of the delegate will be called. This method can be implemented by calling the background permission API (this callback must implement [locationManager requestAlwaysAuthorization]); since 6.8.1

Parameters

  locationManager | 地图的CLLocationManager。 Map's CLLocationManager

## ◆ traceManager:didTrace:correct:distance:withError:

- (void) traceManager: |  | (MATraceManager *) | manager
didTrace: |  | (NSArray< CLLocation * > *) | locations
correct: |  | (NSArray< MATracePoint * > *) | tracePoints
distance: |  | (double) | distance
withError: |  | (NSError *) | error
| required

轨迹定位纠偏的回调方法，since v6.2.0 Callback method for trajectory positioning correction v6.2.0

Parameters

  manager | 轨迹定位管理对象 Trajectory positioning management object
  locations | 已经完成纠偏的原始定位数据 Original positioning data that has been corrected
  tracePoints | 已经完成纠偏处理后的轨迹点 Trajectory points after correction processing
  distance | 距离，单位米 Distance, in meters
  error | 如果成功的话为nil，否则为失败原因 If successful, it is nil, otherwise it is the reason for failure

The documentation for this protocol was generated from the following file:

- MATraceManager.h

© 2017 高德信息技术有限公司 版权所有，保留所有权利。