From bc2152266d0aa8b749d5202d54f9e7c4a5db5b5b Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 23 Jun 2019 14:12:10 +0200 Subject: API documentation for KVision 0.0.37 --- .../-locationservices/index.html | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 api/pl.treksoft.kvision.cordova/-locationservices/index.html (limited to 'api/pl.treksoft.kvision.cordova/-locationservices/index.html') diff --git a/api/pl.treksoft.kvision.cordova/-locationservices/index.html b/api/pl.treksoft.kvision.cordova/-locationservices/index.html new file mode 100644 index 00000000..b432dfb8 --- /dev/null +++ b/api/pl.treksoft.kvision.cordova/-locationservices/index.html @@ -0,0 +1,74 @@ + + + +Locationservices - kvision + + + +kvision / pl.treksoft.kvision.cordova / Locationservices
+
+

Locationservices

+object Locationservices +

Main geolocation object based on Google location services api.

+

Types

+ + + + + + + +
+

Priority

+
+enum class Priority +

Location services priority.

+
+

Functions

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

clearWatch

+
+fun clearWatch(watchId: String): Unit +

Clear the given watch.

+
+

getCurrentPosition

+
+suspend fun getCurrentPosition(enableHighAccuracy: Boolean = true, timeout: Number? = null, maximumAge: Number? = null, priority: Locationservices.Priority? = null, interval: Number? = null, fastInterval: Number? = null): Result<Position, GeolocationException> +

Get current location.

+
+

watchPosition

+
+suspend fun watchPosition(enableHighAccuracy: Boolean = true, timeout: Number? = null, maximumAge: Number? = null, priority: Locationservices.Priority? = null, interval: Number? = null, fastInterval: Number? = null, resultCallback: (Result<Position, GeolocationException>) -> Unit): String? +

Watch location changes.

+
+

Extension Functions

+ + + + + + + +
+

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit