object Network
Main object for Cordova network.
enum class ConnectionType
Connection types |
|
enum class NetworkEvent
Network status events |
fun addStatusListener(event: Network.NetworkEvent, listener: () -> Unit): Unit
Add listeners for network status Cordova events. |
|
suspend fun getConnectionType(): Network.ConnectionType
Get network connection type. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |