public static enum WakeLock.Flag extends Enum<WakeLock.Flag>
WakeLock flag integer values.| Enum Constant and Description |
|---|
ACQUIRE_CAUSES_WAKEUP
Represents
PowerManager.ACQUIRE_CAUSES_WAKEUP. |
ON_AFTER_RELEASE
Represents
PowerManager.ON_AFTER_RELEASE. |
| Modifier and Type | Method and Description |
|---|---|
static WakeLock.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WakeLock.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WakeLock.Flag ACQUIRE_CAUSES_WAKEUP
PowerManager.ACQUIRE_CAUSES_WAKEUP.public static final WakeLock.Flag ON_AFTER_RELEASE
PowerManager.ON_AFTER_RELEASE.public static WakeLock.Flag[] values()
for (WakeLock.Flag c : WakeLock.Flag.values()) System.out.println(c);
public static WakeLock.Flag 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.