# 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? |