public enum XInputBatteryLevel extends Enum<XInputBatteryLevel>
| Modifier and Type | Method and Description |
|---|---|
static XInputBatteryLevel |
fromNative(byte value)
Retrieves the appropriate enum value from the native value.
|
static XInputBatteryLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XInputBatteryLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XInputBatteryLevel EMPTY
public static final XInputBatteryLevel LOW
public static final XInputBatteryLevel MEDIUM
public static final XInputBatteryLevel FULL
public static XInputBatteryLevel[] values()
for (XInputBatteryLevel c : XInputBatteryLevel.values()) System.out.println(c);
public static XInputBatteryLevel 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 nullpublic static XInputBatteryLevel fromNative(byte value)
value - the native valueIllegalArgumentException - if the given native value does not correspond
to an enum valueCopyright © 2018. All rights reserved.