AndroidLocationScene enum
Android 场景化定位。
映射来源:Android TencentLocationManager:
SIGN_IN_SCENE=10(签到)SPORT_SCENE=11(运动)TRANSPORT_SCENE=12(出行)
设置此字段后 Native 端走 requestLocationWithScene(scene, listener) 路径,
一次性配好该场景的最佳参数(会覆盖 request 中大部分其他字段)。
⚠️ 与 Harmony 的 UserActivityScenario 不是同一概念(鸿蒙那个是功耗+精度策略,
不是业务场景)。
- Inheritance
- Available extensions
Values
- signIn → const AndroidLocationScene
-
签到:单次定位,首次优先高精度。
- sport → const AndroidLocationScene
-
运动:高精度连续定位,内部启动 DR。
- transport → const AndroidLocationScene
-
出行:高精度连续定位,卫星优先。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireName → String
-
Available on AndroidLocationScene, provided by the AndroidLocationSceneCodec extension
no setter
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<
AndroidLocationScene> - A constant List of the values in this enum, in order of their declaration.