Map Doc  1.0
iOS-引擎SDK-开放平台
MBLocationManager类 参考

#import <MBLocationManager.h>

类 MBLocationManager 继承关系图:

构造函数

(BOOL) - setSwitchChoice:
 
(MBSwitchChoice- getSwitchChoice
 
(void) - switchPathByPosition:
 
(BOOL) - startLogging:
 
(void) - stopLogging
 
(void) - enableUpdateGps:
 

类方法

(instancetype) + sharedInstance
 
(void) + cleanup
 
(void) + openDevice
 

属性

id< MBLocationManagerDelegate > delegate
 
BOOL supportGyroscope
 
BOOL isPredicting
 
MBGpsInfocurrentGPSInfo
 
MBGpsDeviceState gpsState
 
BOOL allowsBackgroundLocationUpdates
 

函数文档

◆ cleanup()

+ (void) cleanup

◆ enableUpdateGps:()

- (void) enableUpdateGps: (BOOL)  enable

◆ getSwitchChoice()

- (MBSwitchChoice) getSwitchChoice

◆ openDevice()

+ (void) openDevice

从实际设备获取GPS数据,若使用MBLocationSimulator模拟日志后,需调用此方法获取真实GPS数据。

◆ setSwitchChoice:()

- (BOOL) setSwitchChoice: (MBSwitchChoice switchChoice

手动切换主辅路/上下高架桥

◆ sharedInstance()

+ (instancetype) sharedInstance

◆ startLogging:()

- (BOOL) startLogging: (NSString *)  filename

开始 GPS 记录

参数
filename文件名称
返回
YES 正常开启

◆ stopLogging()

- (void) stopLogging

停止 GPS 记录

◆ switchPathByPosition:()

- (void) switchPathByPosition: (MBPoint point

手动切换路径

属性说明

◆ allowsBackgroundLocationUpdates

- (BOOL) allowsBackgroundLocationUpdates
readwritenonatomicassign

◆ currentGPSInfo

- (MBGpsInfo*) currentGPSInfo
readwritenonatomicstrong

WeLink 客户端使用

◆ delegate

- (id<MBLocationManagerDelegate>) delegate
readwritenonatomicweak

◆ gpsState

- (MBGpsDeviceState) gpsState
readnonatomicassign

◆ isPredicting

- (BOOL) isPredicting
readnonatomicassign

◆ supportGyroscope

- (BOOL) supportGyroscope
readnonatomicassign

该类的文档由以下文件生成: