lastLocation

abstract suspend fun lastLocation(priority: Priority = Priority.Balanced): GeolocatorResult

Get the last known location on Android and iOS. On the web, it returns the current location.

Return

A GeolocatorResult with the success or error state.

Parameters

priority

The priority of the location request.


abstract suspend fun lastLocation(request: LocationRequest): GeolocatorResult

Get the last known location on Android and iOS. On the web, it returns the current location.

Return

A GeolocatorResult with the success or error state.

Parameters

request

The location request details.