kvision / pl.treksoft.kvision.cordova / Battery

Battery

(js) object Battery

Main object for Cordova battery.

Types

(js)

BatteryEvent

Battery status event types.

enum class BatteryEvent

Functions

(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