|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.app.Listener
danger.system.BatteryMonitor
public class BatteryMonitor
Interface to the device's battery state.
| Method Summary | |
|---|---|
static int |
getBatteryLevel()
Get the approximate amount of battery life left. |
static boolean |
isBatteryCharging()
Whether the device is plugged into a charger, and actively charging. |
static boolean |
isBatteryDischarging()
Whether the device is unplugged and in a normal discharge cycle. |
static boolean |
isBatteryFailingToCharge()
Whether charging the battery failed. |
static boolean |
isBatteryFull()
Whether the device is plugged into a charger, but finished charging. |
static boolean |
isBatteryLow()
Whether the device is unplugged and running low on power. |
static boolean |
isTrickleCharging()
Returns true if the device can charge through USB, is currently connected via USB, but is not drawing current at the full rate. |
| Methods inherited from class danger.app.Listener |
|---|
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, receiveEvent, receiveEventInternal, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isBatteryFailingToCharge()
public static boolean isBatteryCharging()
public static boolean isBatteryFull()
public static boolean isBatteryDischarging()
public static boolean isTrickleCharging()
public static boolean isBatteryLow()
public static int getBatteryLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||