BatteryEvent

public class BatteryEvent

This class represents a Kallisto device battery event and holds information such as battery level, if the device is charging and the timestamp.

Fields

batteryLevel

public final int batteryLevel

State-of-charge, in %.

charging

public final boolean charging

true if the battery is charging

kallisto

public final Kallisto kallisto

The Kallisto device that generated this event.

timestamp

public final long timestamp

The time in nanosecond at which the event happened in milliseconds. Generated with System.getCurrentTime().