object Geolocation
Main geolocation object based on webview api.
fun clearWatch(watchId: String): Unit
Clear the given watch. |
|
suspend fun getCurrentPosition(enableHighAccuracy: Boolean = true, timeout: Number? = null, maximumAge: Number? = null): Result<Position, GeolocationException>
Get current location. |
|
suspend fun watchPosition(enableHighAccuracy: Boolean = true, timeout: Number? = null, maximumAge: Number? = null, resultCallback: (Result<Position, GeolocationException>) -> Unit): String?
Watch location changes. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |