AMapLocationMode enum

LocationMode 定位模式

AMapLocationMode.BATTERY_SAVING 低功耗模式,只使用网络定位(基站和WIFI) AMapLocationMode.DEVICE_SENSORS 设备定位,只使用GPS,不需要联网,支持返回地址描述信息 AMapLocationMode.HIGH_ACCURACY 高精度定位,同时使用GPS和网络定位,优先返回高精度结果,以及对应的地址描述信息

Constants

BATTERY_SAVING → const AMapLocationMode
const AMapLocationMode(0)
DEVICE_SENSORS → const AMapLocationMode
const AMapLocationMode(1)
HIGH_ACCURACY → const AMapLocationMode
const AMapLocationMode(2)
values → const List<AMapLocationMode>

A constant List of the values in this enum, in order of their declaration.

const List<AMapLocationMode>

Properties

index → int

The integer index of this enum.

final
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited