BaiduLocationIOSOption class
设置ios端定位参数类
- Inheritance
-
- Object
- BMFLocationBaseOption
- BaiduLocationIOSOption
Constructors
- BaiduLocationIOSOption({String? BMKLocationCoordinateType, required BMFLocationCoordType coordType, int? locationTimeout, bool? allowsBackgroundLocationUpdates = false, int? reGeocodeTimeout, BMFActivityType? activityType = BMFActivityType.automotiveNavigation, double? distanceFilter, BMFDesiredAccuracy? desiredAccuracy = BMFDesiredAccuracy.best, bool? isNeedNewVersionRgc, bool? pausesLocationUpdatesAutomatically})
- 构造方法
Properties
- activityType ↔ BMFActivityType?
-
设置应用位置类型 默认为automotiveNavigation
getter/setter pair
- allowsBackgroundLocationUpdates ↔ bool?
-
指定是否允许后台定位,
允许的话是可以进行后台定位的,但需要项目配置允许后台定位,否则会报错,具体参考开发文档
getter/setter pair
- BMKLocationCoordinateType ↔ String?
-
设置返回位置的坐标系类型
getter/setter pair
- coordType ↔ BMFLocationCoordType?
-
getter/setter pairinherited
- desiredAccuracy ↔ BMFDesiredAccuracy?
-
设置返回位置的坐标系类型 默认为gcj02
设置预期精度参数 默认为best
getter/setter pair
- distanceFilter ↔ double?
-
设定定位的最小更新距离
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNeedNewVersionRgc ↔ bool?
-
是否需要最新版本rgc数据
getter/setter pair
- locationTimeout ↔ int?
-
设置位置获取超时时间
getter/setter pair
- pausesLocationUpdatesAutomatically ↔ bool?
-
指定定位是否会被系统自动暂停
getter/setter pair
- reGeocodeTimeout ↔ int?
-
设置获取地址信息超时时间
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getMap(
) → Map< String, Object?> - 获取对本类所有变量赋值后的map键值对
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setActivityType(
BMFActivityType activityType) → void - 设置应用位置类型
-
setAllowsBackgroundLocationUpdates(
bool allowsBackgroundLocationUpdates) → void - 指定是否允许后台定位 allowsBackgroundLocationUpdates为true则允许后台定位 allowsBackgroundLocationUpdates为false则不允许后台定位
-
setBMKLocationCoordinateType(
String BMKLocationCoordinateType) → void - 设置返回位置的坐标系类型
-
setDesiredAccuracy(
BMFDesiredAccuracy desiredAccuracy) → void - 设置预期精度参数
-
setDistanceFilter(
double distanceFilter) → void - 设定定位的最小更新距离
-
setIsNeedNewVersionRgc(
bool isNeedNewVersionRgc) → void - 是否需要最新版本rgc数据 isNeedNewVersionRgc为true则需要返回最新版本rgc数据 isNeedNewVersionRgc为false则不需要返回最新版本rgc数据
-
setLocationTimeout(
int locationTimeout) → void - 设置位置获取超时时间
-
setPauseLocUpdateAutomatically(
bool pausesLocationUpdatesAutomatically) → void - 指定定位是否会被系统自动暂停 pausesLocationUpdatesAutomatically为true则定位会被系统自动暂停 pausesLocationUpdatesAutomatically为false则定位不会被系统自动暂停
-
setReGeocodeTimeout(
int reGeocodeTimeout) → void - 设置获取地址信息超时时间
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited