TencentLBSLocationManagerDelegate Protocol Reference

Conforms to NSObject
Declared in TencentLBSLocationManager.h

Overview

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

– tencentLBSLocationManager:didChangeAuthorizationStatus:

定位权限状态改变时回调函数 (Deprecated: 在iOS 14及以上废弃,由tencentLBSDidChangeAuthorization:代替)

- (void)tencentLBSLocationManager:(TencentLBSLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status

Parameters

manager

定位 TencentLBSLocationManager

status

定位权限状态

Discussion

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

Declared In

TencentLBSLocationManager.h

– tencentLBSDidChangeAuthorization:

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

- (void)tencentLBSDidChangeAuthorization:(TencentLBSLocationManager *)manager

Parameters

manager

定位 TencentLBSLocationManager 类,由此访问authorizationStatus,accuracyAuthorization

Discussion

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

Declared In

TencentLBSLocationManager.h

– tencentLBSLocationManager:didUpdateLocation:

连续定位回调函数

- (void)tencentLBSLocationManager:(TencentLBSLocationManager *)manager didUpdateLocation:(TencentLBSLocation *)location

Parameters

manager

定位 TencentLBSLocationManager

location

定位结果

Discussion

连续定位回调函数

Declared In

TencentLBSLocationManager.h

– tencentLBSLocationManager:didUpdateHeading:

定位朝向改变时回调函数

- (void)tencentLBSLocationManager:(TencentLBSLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading

Parameters

manager

定位 TencentLBSLocationManager

newHeading

新的定位朝向

Discussion

定位朝向改变时回调函数

Declared In

TencentLBSLocationManager.h

– tencentLBSLocationManagerShouldDisplayHeadingCalibration:

是否展示定位朝向校准提示的回调函数

- (BOOL)tencentLBSLocationManagerShouldDisplayHeadingCalibration:(TencentLBSLocationManager *)manager

Parameters

manager

定位 TencentLBSLocationManager

Discussion

是否展示定位朝向校准提示的回调函数

Declared In

TencentLBSLocationManager.h

– tencentLBSLocationManager:didFailWithError:

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

- (void)tencentLBSLocationManager:(TencentLBSLocationManager *)manager didFailWithError:(NSError *)error

Parameters

manager

定位 TencentLBSLocationManager

error

返回的错误,参考 TencentLBSLocationError

Discussion

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

Declared In

TencentLBSLocationManager.h

– tencentLBSLocationManager:didThrowLocation:

只是内部调试使用,外部不应实现该接口

- (void)tencentLBSLocationManager:(TencentLBSLocationManager *)manager didThrowLocation:(TencentLBSLocation *)location

Discussion

只是内部调试使用,外部不应实现该接口

Declared In

TencentLBSLocationManager.h