public enum WakeupSource extends java.lang.Enum<WakeupSource>
WakeupSource enumeration is the class that includes the power wakeup
sources.| Enum Constant and Description |
|---|
ACCELEROMETER
Accelerometer sensor
|
POWER_IN
A generic charging power source
|
POWER_KEY
Power button, used to turn on and off the device
|
RTC_ALARM
Real-Time clock alarm
|
TOUCH
Touch event on the screen
|
TRIG_AUTOSCAN
The AutoScan trigger
|
TRIG_FRONT
The front trigger button
|
TRIG_LEFT
The left trigger button
|
TRIG_PISTOL
The back trigger button
|
TRIG_RIGHT
The right trigger button
|
WIFI
Wifi data
|
WWAN
Cellular data or call
|
| Modifier and Type | Method and Description |
|---|---|
static WakeupSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WakeupSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WakeupSource POWER_KEY
public static final WakeupSource RTC_ALARM
public static final WakeupSource POWER_IN
public static final WakeupSource TRIG_LEFT
public static final WakeupSource TRIG_RIGHT
public static final WakeupSource TRIG_PISTOL
public static final WakeupSource TRIG_FRONT
public static final WakeupSource WIFI
public static final WakeupSource WWAN
public static final WakeupSource ACCELEROMETER
public static final WakeupSource TOUCH
public static final WakeupSource TRIG_AUTOSCAN
public static WakeupSource[] values()
for (WakeupSource c : WakeupSource.values()) System.out.println(c);
public static WakeupSource valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null