public enum EnergySavingMode extends java.lang.Enum<EnergySavingMode> implements java.io.Serializable
| Enum Constant and Description |
|---|
DISABLED
Disable saving mode.
|
LIGHT_SENSOR
Enable light sensor saving mode.
|
UNKNOWN
Unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static EnergySavingMode |
getEnergySavingMode(int index) |
static EnergySavingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnergySavingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnergySavingMode DISABLED
public static final EnergySavingMode LIGHT_SENSOR
public static final EnergySavingMode UNKNOWN
public static EnergySavingMode[] values()
for (EnergySavingMode c : EnergySavingMode.values()) System.out.println(c);
public static EnergySavingMode 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 nullpublic static EnergySavingMode getEnergySavingMode(int index)