watchPosition
expect fun watchPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object): Int
Starts watching the position of the device.
Return
A watch ID that can be used to clear the watch.
Parameters
success
Callback function that is called with the current position.
error
Callback function that is called when an error occurs.
options
An optional object that provides options for the request.
actual fun watchPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object): Int
actual fun watchPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object): Int