Geolocation
Functions
Link copied to clipboard
Clear an existing watch operation.
Link copied to clipboard
expect fun getCurrentPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object)
Returns the current position of the device.
actual fun getCurrentPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object)
actual fun getCurrentPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object)
Link copied to clipboard
expect fun watchPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object): Int
Starts watching the position of the device.
actual fun watchPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object): Int
actual fun watchPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object): Int