public interface BatteryEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(BatteryEvent event,
java.lang.Object data)
onEvent will be call to signal an event concerning battery.
|
void onEvent(BatteryEvent event, java.lang.Object data)
event - BatteryEvent
BatteryEvent type of eventdata - Object details of the event
e.g: event = BATTERY_SWAP_EVENT_BEGIN, Object = timestamp (long System.currentTimeMillis())