HarmonyUserActivityScenario enum

Harmony 用户活动场景。

映射来源:Harmony UserActivityScenario

  • NAVIGATION=0x401
  • SPORT=0x402
  • TRANSPORT=0x403
  • DAILY_LIFE_SERVICE=0x404

⚠️ 与 Android 的 AndroidLocationScene 不是同一概念(Android 那个是业务场景: 签到/运动/出行;鸿蒙这个是功耗 + 精度策略)。

Inheritance
Available extensions

Values

导航场景。

sport → const HarmonyUserActivityScenario

运动场景。

transport → const HarmonyUserActivityScenario

出行场景。

dailyLifeService → const HarmonyUserActivityScenario

日常生活服务。

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 HarmonyUserActivityScenario, provided by the HarmonyUserActivityScenarioCodec 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<HarmonyUserActivityScenario>
A constant List of the values in this enum, in order of their declaration.