com.datalogic.device.battery.BatteryEventListener |
This interface is used by the application to listen to battery events.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
onEvent will be call to signal an event concerning battery.
|
onEvent will be call to signal an event concerning battery. e.g: when the battery swap starts or ends.
event | BatteryEvent
BatteryEvent type of event |
---|---|
data | Object details of the event
e.g: event = BATTERY_SWAP_EVENT_BEGIN, Object = timestamp (long System.currentTimeMillis())
|