| java.lang.Object | ||
| ↳ | java.lang.Enum<bymason.platform.BatteryManagerPrivileged.BatteryMode> | |
| ↳ | bymason.platform.BatteryManagerPrivileged.BatteryMode | |
An enumeration of all possible charge suppliers.
| Enum Values | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BatteryManagerPrivileged.BatteryMode | AC | AC represents an AC adapter or converter connection. | |||||||||
| BatteryManagerPrivileged.BatteryMode | USB | USB represents the Universal Serial Bus connection. | |||||||||
| BatteryManagerPrivileged.BatteryMode | WIRELESS | WIRELESS represents any non wired charging connection. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the
BatteryMode for a given numeric value.
| |||||||||||
AC represents an AC adapter or converter connection.
USB represents the Universal Serial Bus connection.
WIRELESS represents any non wired charging connection.
Get the BatteryMode for a given numeric value.
| Parameters | |
|---|---|
value |
int: a known battery mode value |
| Returns | |
|---|---|
BatteryManagerPrivileged.BatteryMode |
BatteryMode |
| Parameters | |
|---|---|
name |
String |
| Returns | |
|---|---|
BatteryManagerPrivileged.BatteryMode |
|