public static enum WakeLock.Level extends Enum<WakeLock.Level>
WakeLock
level integer values.Enum Constant and Description |
---|
FULL_WAKE_LOCK
Represents
PowerManager.FULL_WAKE_LOCK . |
PARTIAL_WAKE_LOCK
Represents
PowerManager.PARTIAL_WAKE_LOCK . |
SCREEN_BRIGHT_WAKE_LOCK
Represents
PowerManager.SCREEN_BRIGHT_WAKE_LOCK . |
SCREEN_DIM_WAKE_LOCK
Represents
PowerManager.SCREEN_DIM_WAKE_LOCK . |
Modifier and Type | Method and Description |
---|---|
static WakeLock.Level |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WakeLock.Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WakeLock.Level FULL_WAKE_LOCK
PowerManager.FULL_WAKE_LOCK
.public static final WakeLock.Level PARTIAL_WAKE_LOCK
PowerManager.PARTIAL_WAKE_LOCK
.public static final WakeLock.Level SCREEN_BRIGHT_WAKE_LOCK
PowerManager.SCREEN_BRIGHT_WAKE_LOCK
.public static final WakeLock.Level SCREEN_DIM_WAKE_LOCK
PowerManager.SCREEN_DIM_WAKE_LOCK
.public static WakeLock.Level[] values()
for (WakeLock.Level c : WakeLock.Level.values()) System.out.println(c);
public static WakeLock.Level valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010-2015. All Rights Reserved.