# Object wx.getBatteryInfoSync()

with Promise style call: Supported

Mini Program plugin: Support, need to Mini Program base library version no less than 2.15.0

wx.getBatteryInfo The synchronous version of

# Return value

# Object res

attribute type Introductions
level string Equipment power, range 1 - 100
isCharging boolean Is it charging?
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.