LocationRequestScenario enum
The type of location scenario in a location request. 位置请求中定位场景类型。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#locationrequestscenario
Values
- unset → const LocationRequestScenario
-
0x300 Indicates unset scenario information. Indicates that the LocationRequestScenario field is invalid. 表示未设置场景信息。 表示LocationRequestScenario字段无效
-
Indicates navigation scenario. 表示导航场景。
- trajectoryTracking → const LocationRequestScenario
-
Indicates trajectory tracking scenario. 表示运动轨迹记录场景。
- carHailing → const LocationRequestScenario
-
Indicates car hailing scenario. 表示打车场景。
- dailyLifeService → const LocationRequestScenario
-
Indicates daily life service usage scenario. 表示日常服务使用场景。
- noPower → const LocationRequestScenario
-
Indicates no power consumption scenario. In this scenario, location will not be actively triggered. Location will only be returned to the current application when another application triggers location. 表示无功耗功场景,这种场景下不会主动触发定位,会在其他应用定位时,才给当前应用返回位置。
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
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<
LocationRequestScenario> - A constant List of the values in this enum, in order of their declaration.