kvision / pl.treksoft.kvision.cordova / Network

Network

(js) object Network

Main object for Cordova network.

Types

(js)

ConnectionType

Connection types

enum class ConnectionType
(js)

NetworkEvent

Network status events

enum class NetworkEvent

Functions

(js)

addStatusListener

Add listeners for network status Cordova events.

fun addStatusListener(event: NetworkEvent, listener: () -> Unit): Unit
(js)

getConnectionType

Get network connection type.

suspend fun getConnectionType(): ConnectionType