public final class BatteryStatus
extends java.lang.Object
BatteryStatus provides information related to the battery lifetime and realtime values.| Constructor and Description |
|---|
BatteryStatus() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatteryStateOfHealth()
Returns the percentage of the state of health of the battery.
|
int |
getCapacityFull()
Returns last remembered value of charge in when battery became full/empty.
|
int |
getCapacityRemaining()
Returns the instantaneous value of the remaining available capacity of the battery.
|
int |
getChargeCurrentMax()
Returns the value of the maximum current recorded by the battery.
|
int |
getDischargeCurrentMax()
Returns the value of the maximum discharge current recorded by the battery.
|
int |
getTemperatureMax()
Returns the value of the maximum temperature recorded by the battery.
|
int |
getTemperatureMin()
Returns the value of the minimum temperature recorded by the battery.
|
int |
getTimeToEmpty()
Returns the time left for battery to be considered empty.
|
int |
getTotalDischarge()
Returns the value of the total amount of discharge current caused the charging cycles of the battery.
|
int |
getVoltageMax()
Returns the value of the maximum voltage recorded by the battery.
|
int |
getVoltageMin()
Returns the value of the minimum voltage recorded by the battery.
|
public int getBatteryStateOfHealth()
int
The percentage of the state of health of the battery.public int getTotalDischarge()
int
The total amount of discharge current in 0.1 Ah.public int getCapacityRemaining()
int
The remaining available capacity of the battery in mAh.public int getCapacityFull()
int
The last remembered value of charge in when battery became full/empty in mAh.public int getTemperatureMin()
int
The value of the minimum temperature recorded by the battery in 0.1 °C.public int getTemperatureMax()
int
The value of the maximum temperature recorded by the battery in 0.1 °C.public int getVoltageMin()
int
The value of the minimum voltage recorded by the battery in mV.public int getVoltageMax()
int
The value of the maximum voltage recorded by the battery in mV.public int getChargeCurrentMax()
int
The value of the maximum current recorded by the battery in mA.public int getDischargeCurrentMax()
int
The value of the maximum discharge current recorded by the battery in mA.public int getTimeToEmpty()
int
The time left for battery to be considered empty in seconds.