public static enum IOSBatteryInfo.BatteryState extends java.lang.Enum<IOSBatteryInfo.BatteryState>
Modifier and Type | Method and Description |
---|---|
static IOSBatteryInfo.BatteryState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IOSBatteryInfo.BatteryState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IOSBatteryInfo.BatteryState UNKNOWN
public static final IOSBatteryInfo.BatteryState UNPLUGGED
public static final IOSBatteryInfo.BatteryState CHARGING
public static final IOSBatteryInfo.BatteryState FULL
public static IOSBatteryInfo.BatteryState[] values()
for (IOSBatteryInfo.BatteryState c : IOSBatteryInfo.BatteryState.values()) System.out.println(c);
public static IOSBatteryInfo.BatteryState 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