OperatingHandStatus enum

操作手状态

与鸿蒙 motion.OperatingHandStatus 对应, 表示用户正在用哪只手操作设备(since API 15)。

Inheritance
Available extensions

Values

unknown → const OperatingHandStatus

未识别

const OperatingHandStatus(0)
left → const OperatingHandStatus

左手操作

const OperatingHandStatus(1)

右手操作

const OperatingHandStatus(2)

Properties

code → int
鸿蒙系统返回的整型状态值
final
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

Static Methods

fromCode(int code) → OperatingHandStatus
从鸿蒙状态码解析

Constants

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