object Battery
Main object for Cordova battery.
(js)
BatteryEvent |
Battery status event types. enum class BatteryEvent |
(js)
addStatusListener |
Add listeners for battery status Cordova events. fun addStatusListener(event: BatteryEvent, listener: (BatteryStatus) -> Unit): Unit |
(js)
getStatus |
Get battery status. suspend fun getStatus(): BatteryStatus |