LocationOptions class
Constructors
Properties
- gpsFirst ↔ bool?
-
设置是否gps优先,只在高精度模式下有效。默认开启
1是,0非
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpTimeOut ↔ int?
-
设置网络请求超时时间。默认为30秒。在仅设备模式下无效
getter/setter pair
- interval ↔ int?
-
设置定位间隔。默认为2秒
getter/setter pair
- isAddress ↔ bool?
-
设置是否返回逆地理地址信息
默认需要:1是,0非
getter/setter pair
- isOnceLocation ↔ bool?
-
是否单次定位
默认不是单次定位
getter/setter pair
- locationMode ↔ int?
-
设置定位模式,可选的模式有高精度、仅设备、仅网络。默认为高精度模式
getter/setter pair
- locationPurpose ↔ int?
-
定位出行场景
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parameters(
) → String -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited