Skip to main content
Synchronous version of my.getBatteryInfo. Returns the current battery level and charging status directly, with no parameters and no callbacks.

Return Value

Code Example

my.getBatteryInfo

Get battery info asynchronously

my.getSystemInfo

Get system information