Skip to content

BatteryInfo

com.brother.ptouch.sdk.BatteryInfo class stores the battery information.

Properties

batteryChargeLevel

Remaining battery power from 0 to 100 (%). -1 if not installed.

Declaration

final int batteryChargeLevel;

batteryHealthLevel

Battery deterioration level from 0 to 100 (%). -1 if not installed.

Declaration

final int batteryHealthLevel;

batteryHealthStatus

Battery deterioration state. You can know the numeric value via batteryHealthLevel.

Declaration

final HealthStatus batteryHealthStatus;

Types

HealthStatus

The definition of battery deterioration state.

Declaration

enum HealthStatus {
    Excellent(0),
    Good(1),
    ReplaceSoon(2),     // Need to replace battery soon
    ReplaceBattery(3),  // Need to replace battery
    NotInstalled(7),    // Battery not mounted
}