object Geolocation
Main geolocation object based on webview api.
(js)
clearWatch |
Clear the given watch. fun clearWatch(watchId: String): Unit |
(js)
getCurrentPosition |
Get current location. suspend fun getCurrentPosition(enableHighAccuracy: Boolean = true, timeout: Number? = null, maximumAge: Number? = null): Result<Position, GeolocationException> |
(js)
watchPosition |
Watch location changes. suspend fun watchPosition(enableHighAccuracy: Boolean = true, timeout: Number? = null, maximumAge: Number? = null, resultCallback: (Result<Position, GeolocationException>) -> Unit): String? |