Added in revision 21
public interface

BatteryEventListener

com.datalogic.device.battery.BatteryEventListener

Class Overview

This interface is used by the application to listen to battery events.

Summary

Public Methods
abstract void onEvent(BatteryEvent event, Object data)
onEvent will be call to signal an event concerning battery.

Public Methods

public abstract void onEvent (BatteryEvent event, Object data)

Added in revision 21

onEvent will be call to signal an event concerning battery. e.g: when the battery swap starts or ends.

Parameters
event BatteryEvent BatteryEvent type of event
data Object details of the event e.g: event = BATTERY_SWAP_EVENT_BEGIN, Object = timestamp (long System.currentTimeMillis())