轨迹服务的代理协议,服务和采集的相关操作的执行结果,通过本协议中的方法回调
更多...
#import <BTKTraceDelegate.h>
轨迹服务的代理协议,服务和采集的相关操作的执行结果,通过本协议中的方法回调
在文件 BTKTraceDelegate.h 第 17 行定义.
◆ onChangeGatherAndPackIntervals:
- (void) onChangeGatherAndPackIntervals: |
|
(BTKChangeIntervalErrorCode) |
error |
|
|
optional |
◆ onGetCustomData
- (NSDictionary *) onGetCustomData |
|
|
|
|
optional |
用户自定义信息的设置方法,SDK在每个采集周期会回调此方法,将此方法的返回值作为该定位周期内轨迹点的附加数据 所有附加数据组成的字典,总的字节数不能超过1024字节。
- 返回
- 当前定位周期内轨迹点的附加数据,key代表自定义字段名称,value代表自定义字段的值。用法见DEMO
◆ onGetCustomDataResult:
- (void) onGetCustomDataResult: |
|
(BTKGetCustomDataErrorCode) |
error |
|
|
optional |
◆ onGetPushMessage:
◆ onRequestAlwaysLocationAuthorization:
- (void) onRequestAlwaysLocationAuthorization: |
|
(") |
废弃方法 |
|
|
(定位权限需要开发者主动申请") |
__deprecated_msg |
|
|
| |
|
optional |
3.1.2起废弃,请求后台定位权限的回调方法
- 参数
-
locationManager | 定位控制器,开发者需要调用该实例的requestAlwaysAuthorization方法 |
◆ onSetCacheMaxSize:
- (void) onSetCacheMaxSize: |
|
(BTKSetCacheMaxSizeErrorCode) |
error |
|
|
optional |
◆ onStartGather:
- (void) onStartGather: |
|
(BTKGatherErrorCode) |
error |
|
|
optional |
◆ onStartService:
- (void) onStartService: |
|
(BTKServiceErrorCode) |
error |
|
|
optional |
◆ onStopGather:
- (void) onStopGather: |
|
(BTKGatherErrorCode) |
error |
|
|
optional |
◆ onStopService:
- (void) onStopService: |
|
(BTKServiceErrorCode) |
error |
|
|
optional |
该协议的文档由以下文件生成: