DeviceStatus enum

设备 / 开关状态值。

映射来源

  • Android TencentLocationListener.STATUS_*:0=DISABLED, 1=ENABLED, 2=DENIED, 3=GPS_AVAILABLE, 4=GPS_UNAVAILABLE, 5=LOCATION_SWITCH_OFF, -1=UNKNOWN
  • Harmony TencentLocationConstant.DeviceStatus(NET_* / LOCATION_SWITCH_*)
  • iOS:不支持。
Inheritance
Available extensions

Values

unknown → const DeviceStatus

未知。对应 Android -1

available → const DeviceStatus

开启且可用(GPS 搜星成功 / 网络可用 / 定位总开关开启)。 对应 Android STATUS_ENABLED(1)STATUS_GPS_AVAILABLE(3)

enabledButUnavailable → const DeviceStatus

开启但不可用(例如 GPS 开着但搜不到星)。 对应 Android STATUS_GPS_UNAVAILABLE(4)

disabled → const DeviceStatus

关闭。对应 Android STATUS_DISABLED(0)STATUS_LOCATION_SWITCH_OFF(5)

denied → const DeviceStatus

权限被拒。对应 Android STATUS_DENIED(2)

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