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:
| Property | Type | Description |
|---|---|---|
| level | number | Device battery level, range 1 - 100 |
| isCharging | boolean | Whether the device is charging |
