iOS高德地图SDK(2D)  v5.6.0
MAMapView(LocationOption) Category Reference

定位相关参数的类别 More...

#import <MAMapView.h>

Properties

CLLocationDistance distanceFilter
 设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动 More...
 
CLLocationAccuracy desiredAccuracy
 设定定位精度。默认为kCLLocationAccuracyBest More...
 
CLLocationDegrees headingFilter
 设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变 More...
 
BOOL pausesLocationUpdatesAutomatically
 指定定位是否会被系统自动暂停。默认为YES。只在iOS 6.0之后起作用 More...
 
BOOL allowsBackgroundLocationUpdates
 是否允许后台定位。默认为NO。只在iOS 9.0之后起作用。设置为YES的时候必须保证 Background Modes 中的 Location updates处于选中状态,否则会抛出异常 More...
 

Detailed Description

定位相关参数的类别

Property Documentation

◆ allowsBackgroundLocationUpdates

- (BOOL) allowsBackgroundLocationUpdates
readwritenonatomicassign

是否允许后台定位。默认为NO。只在iOS 9.0之后起作用。设置为YES的时候必须保证 Background Modes 中的 Location updates处于选中状态,否则会抛出异常

Extends class MAMapView.

◆ desiredAccuracy

- (CLLocationAccuracy) desiredAccuracy
readwritenonatomicassign

设定定位精度。默认为kCLLocationAccuracyBest

Extends class MAMapView.

◆ distanceFilter

- (CLLocationDistance) distanceFilter
readwritenonatomicassign

设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动

Extends class MAMapView.

◆ headingFilter

- (CLLocationDegrees) headingFilter
readwritenonatomicassign

设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变

Extends class MAMapView.

◆ pausesLocationUpdatesAutomatically

- (BOOL) pausesLocationUpdatesAutomatically
readwritenonatomicassign

指定定位是否会被系统自动暂停。默认为YES。只在iOS 6.0之后起作用

Extends class MAMapView.


The documentation for this category was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。