Skip to content

sud.getBatteryInfoSync ​

JS
    Object sud.getBatteryInfoSync()

Get the device battery information

The synchronous version of sud.getBatteryInfo

Return Value

  • Object: Returns the device battery information

Device battery information properties:

PropertyTypeDescription
levelnumberDevice battery level, range 1 - 100
isChargingbooleanWhether the device is charging