public static enum TXZPowerManager.PowerAction extends java.lang.Enum<TXZPowerManager.PowerAction>
枚举常量和说明 |
---|
POWER_ACTION_BEFORE_POWER_OFF
将要关机
|
POWER_ACTION_BEFORE_SLEEP
将要休眠(提前10秒)
|
POWER_ACTION_ENTER_REVERSE
进入倒车
|
POWER_ACTION_POWER_OFF
汽车熄火
|
POWER_ACTION_POWER_ON
汽车打火
|
POWER_ACTION_QUIT_REVERSE
退出倒车
|
POWER_ACTION_SHOCK_WAKEUP
震动唤醒
|
POWER_ACTION_SLEEP
休眠
|
POWER_ACTION_WAKEUP
唤醒
|
限定符和类型 | 方法和说明 |
---|---|
static TXZPowerManager.PowerAction |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static TXZPowerManager.PowerAction[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TXZPowerManager.PowerAction POWER_ACTION_POWER_ON
public static final TXZPowerManager.PowerAction POWER_ACTION_BEFORE_SLEEP
public static final TXZPowerManager.PowerAction POWER_ACTION_SLEEP
public static final TXZPowerManager.PowerAction POWER_ACTION_WAKEUP
public static final TXZPowerManager.PowerAction POWER_ACTION_SHOCK_WAKEUP
public static final TXZPowerManager.PowerAction POWER_ACTION_ENTER_REVERSE
public static final TXZPowerManager.PowerAction POWER_ACTION_QUIT_REVERSE
public static final TXZPowerManager.PowerAction POWER_ACTION_BEFORE_POWER_OFF
public static final TXZPowerManager.PowerAction POWER_ACTION_POWER_OFF
public static TXZPowerManager.PowerAction[] values()
for (TXZPowerManager.PowerAction c : TXZPowerManager.PowerAction.values()) System.out.println(c);
public static TXZPowerManager.PowerAction valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值