getCurrentPosition

expect fun getCurrentPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object)

Returns the current position of the device.

MDN Reference.

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 getCurrentPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object)
actual fun getCurrentPosition(success: (GeolocationPosition?) -> Unit, error: (GeolocationPositionError) -> Unit, options: Object)