public static class LineaPro.BatteryInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LineaPro.BatteryInfo.Fuelgauge
Represents fuel gauge battery information.
|
Modifier and Type | Method and Description |
---|---|
static LineaPro.BatteryInfo |
create(byte[] data)
Create instance of this class from binary data.
|
int |
getCapacity()
Get battery capacity in %.
|
byte[] |
getData()
Get the creation data.
|
LineaPro.BatteryInfo.Fuelgauge |
getFuelgauge()
Get fuel gauge information.
|
int |
getHealthLevel()
Get battery health level in %.
|
int |
getInitialCapacity()
Get battery initial capacity in mAh.
|
int |
getVoltage()
Get battery voltage level in mV.
|
boolean |
isCharging()
Get battery charging state.
|
public static LineaPro.BatteryInfo create(byte[] data)
data
- the data.public byte[] getData()
public int getVoltage()
public int getCapacity()
public int getHealthLevel()
public int getInitialCapacity()
public boolean isCharging()
public LineaPro.BatteryInfo.Fuelgauge getFuelgauge()