DMKLocationAdapterDelegate Protocol Reference

Conforms to NSObject
Declared in DMKLocationAdapterDelegate.h

Overview

持续定位、权限相关回调协议

– locationManagerDidFailWithError:

定位失败回调

- (void)locationManagerDidFailWithError:(nonnull NSError *)error

Parameters

error

错误信息

Discussion

定位失败回调

Declared In

DMKLocationAdapterDelegate.h

– locationManagerDidUpdateLocation:

定位更新回调

- (void)locationManagerDidUpdateLocation:(DMKLocation *)newLocation

Parameters

newLocation

新定位数据

Discussion

定位更新回调

Declared In

DMKLocationAdapterDelegate.h

– locationManagerDidUpdateHeading:

朝向更新回调, 需要定位配置朝向开关为YES才会生效

- (void)locationManagerDidUpdateHeading:(CLHeading *)newHeading

Parameters

newHeading

新朝向数据

Discussion

朝向更新回调, 需要定位配置朝向开关为YES才会生效

Declared In

DMKLocationAdapterDelegate.h

– locationManagerDidChangeAuthorizationStatus:

定位权限变更回调

- (void)locationManagerDidChangeAuthorizationStatus:(CLAuthorizationStatus)status

Parameters

status

新定位权限

Discussion

定位权限变更回调

Declared In

DMKLocationAdapterDelegate.h