AMapLocationPurpose enum

android 设置定位场景,根据场景快速修改option,不支持动态改变,修改后需要调用AMapLocationClient.startLocation()使其生效

Inheritance

Constructors

AMapLocationPurpose()
const

Values

signIn → const AMapLocationPurpose

签到场景 只进行一次定位返回最接近真实位置的定位结果(定位速度可能会延迟1-3s)

transport → const AMapLocationPurpose

出行场景 高精度连续定位,适用于有户内外切换的场景,卫星定位和网络定位相互切换,卫星定位成功之后网络定位不再返回,卫星信号断开之后一段时间才会返回网络结果

sport → const AMapLocationPurpose

运动场景 高精度连续定位,适用于有户内外切换的场景,卫星定位和网络定位相互切换,卫星定位成功之后网络定位不再返回,卫星信号断开之后一段时间才会返回网络结果

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AMapLocationPurpose>
A constant List of the values in this enum, in order of their declaration.