current

open suspend override fun current(priority: Priority): Location

Get the current location.

Return

A GeolocatorResult with the success or error state.

Parameters

priority

The priority of the location request.

Throws

If location services aren't available.

If there is an error getting the location.

If the location permission isn't granted.