public static enum Battery.BatteryTechnology extends Enum<Battery.BatteryTechnology>
resolve(String)| Enum Constant and Description |
|---|
Ag_Zn
Silver Zinc battery technology.
|
LEAD_ACID
LEAD ACID battery technology.
|
Li_ion
Lithium Ion battery technology.
|
Li_poly
Lithium Polymer battery technology.
|
Ni_Cd
Nickel Cadmium battery technology.
|
Ni_MH
Nickel Metal Hydrid battery technology.
|
Ni_Zn
Nickel Zinc battery technology.
|
UNKNOWN
Indicates that the current Android device's battery technology can't be parsed by the tagged
name provided by
BatteryManager or the current battery data are unavailable. |
| Modifier and Type | Field and Description |
|---|---|
String |
originalName
Original name of this battery technology.
|
String |
tagName
The tag name provided by
BatteryManager for this battery technology. |
| Modifier and Type | Method and Description |
|---|---|
static Battery.BatteryTechnology |
resolve(String tagName)
Resolves an instance of BatteryTechnology according to the given tagName from the
current set of BatteryTechnology values.
|
static Battery.BatteryTechnology |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Battery.BatteryTechnology[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Battery.BatteryTechnology UNKNOWN
BatteryManager or the current battery data are unavailable.
public static final Battery.BatteryTechnology Li_ion
public static final Battery.BatteryTechnology Li_poly
public static final Battery.BatteryTechnology Ag_Zn
public static final Battery.BatteryTechnology Ni_Zn
public static final Battery.BatteryTechnology Ni_MH
public static final Battery.BatteryTechnology LEAD_ACID
public static final Battery.BatteryTechnology Ni_Cd
public final String tagName
BatteryManager for this battery technology.public final String originalName
public static Battery.BatteryTechnology[] values()
for (Battery.BatteryTechnology c : Battery.BatteryTechnology.values()) System.out.println(c);
public static Battery.BatteryTechnology 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 Battery.BatteryTechnology resolve(String tagName)