object Battery
Main object for Cordova battery.
enum class BatteryEvent
Battery status event types. |
fun addStatusListener(event: Battery.BatteryEvent, listener: (BatteryStatus) -> Unit): Unit
Add listeners for battery status Cordova events. |
|
suspend fun getStatus(): BatteryStatus
Get battery status. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |