Skip to main content

API for obtaining the X-Star battery information.

class  XStarBatteryInfo​

method getNumberOfDischarges​

 float getNumberOfDischarges();

Description: Obtains the number of charging times.

Input parameter: none.

Output parameter: the number of charging times..

method getFullChargeCapacity​

 int getFullChargeCapacity();

Description: Obtains the full capacity of the battery.

Input parameter: none.

Output parameter: the full capacity of the battery.

method getSerialNumber​

 String getSerialNumber();

Description: Obtains the battery serial number.

Input parameter: none.

Output parameter: the battery serial number.

method getVersion​

 String getVersion();

Description: Obtains the battery version.

Input parameter: none.

Output parameter: the battery version.

method isBatteryOverHeated​

 boolean isBatteryOverHeated();

Description: Checks whether the battery is over heated.

Input parameter: none.

Output parameter: the result showing whether the battery is over heated.