public enum ControllerPowerLevel extends java.lang.Enum<ControllerPowerLevel>
| Enum Constant and Description |
|---|
POWER_EMPTY
Power level 0-5%
|
POWER_FULL
Power level 71-100%
|
POWER_LOW
Power level 6-20%
|
POWER_MEDIUM
Power level 21-70%
|
POWER_UNKNOWN
Power level unknown
|
POWER_WIRED
Controller is wired or charging
|
| Modifier and Type | Method and Description |
|---|---|
static ControllerPowerLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ControllerPowerLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControllerPowerLevel POWER_UNKNOWN
public static final ControllerPowerLevel POWER_EMPTY
public static final ControllerPowerLevel POWER_LOW
public static final ControllerPowerLevel POWER_MEDIUM
public static final ControllerPowerLevel POWER_FULL
public static final ControllerPowerLevel POWER_WIRED
public static ControllerPowerLevel[] values()
for (ControllerPowerLevel c : ControllerPowerLevel.values()) System.out.println(c);
public static ControllerPowerLevel 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