my.getBatteryInfo. Returns the current battery level and charging status directly, with no parameters and no callbacks.
Return Value
Code Example
Related APIs
my.getBatteryInfo
Get battery info asynchronously
my.getSystemInfo
Get system information