From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-network/index.html | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 api1/pl.treksoft.kvision.cordova/-network/index.html (limited to 'api1/pl.treksoft.kvision.cordova/-network/index.html') diff --git a/api1/pl.treksoft.kvision.cordova/-network/index.html b/api1/pl.treksoft.kvision.cordova/-network/index.html new file mode 100644 index 00000000..831f493f --- /dev/null +++ b/api1/pl.treksoft.kvision.cordova/-network/index.html @@ -0,0 +1,74 @@ + + + +Network - kvision + + + +kvision / pl.treksoft.kvision.cordova / Network
+
+

Network

+object Network +

Main object for Cordova network.

+

Types

+ + + + + + + + + + + +
+

ConnectionType

+
+enum class ConnectionType +

Connection types

+
+

NetworkEvent

+
+enum class NetworkEvent +

Network status events

+
+

Functions

+ + + + + + + + + + + +
+

addStatusListener

+
+fun addStatusListener(event: Network.NetworkEvent, listener: () -> Unit): Unit +

Add listeners for network status Cordova events.

+
+

getConnectionType

+
+suspend fun getConnectionType(): Network.ConnectionType +

Get network connection type.

+
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit