BATTERY

Members

battery.getBatteryStatus()

“Return the current Battery status”

Return type:battery.BatteryStatusEvent
class battery.BatteryStatusEvent
isCharging()
Returns:true if the battery is charging
isUsbCharge()
Returns:true if the battery is charging through usb
isAcCharge()
Returns:true if the battery is charging through AC
getLevel()
Returns:battery level