public static enum WakeLock.Level extends java.lang.Enum<WakeLock.Level>
Enum Constant and Description |
---|
FULL_WAKE_LOCK |
PARTIAL_WAKE_LOCK |
SCREEN_BRIGHT_WAKE_LOCK |
SCREEN_DIM_WAKE_LOCK |
Modifier and Type | Method and Description |
---|---|
static WakeLock.Level |
valueOf(java.lang.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(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 nullCopyright © 2010-2014. All Rights Reserved.