Battery Status Plugin
Last updated
Was this helpful?
Last updated
Was this helpful?
Tested Version:
In order to use this plugin, please Battery
plugin in Monaca Cloud IDE.
All events in this plugin return an object with the following properties:
Property
Type
Description
level
Number
The battery charge percentage (0-100
)
isPlugged
Boolean
Indicates whether the device is plugged in
Fires when the battery charge percentage changes by at least 1 percent
, or when the device is plugged in or unplugged. Returns an containing battery status.
iOS
Android
iOS
Android
iOS
Android
Fires when the battery charge percentage reaches the low charge threshold. This threshold value is device-specific. Returns an containing battery status.
Fires when the battery charge percentage reaches the critical charge threshold. This threshold value is device-specific. Returns an containing battery status.