current Location
open suspend override fun currentLocation(validate: Boolean): Completion<Location?>
Content copied to clipboard
Returns the current location from Fused Location Provider API or from LocationManager as fallback (getCurrentLocation or requestSingleUpdate depending on API level) If validate is set to true, it will only return the location if it is valid and null otherwise. In case of error it returns a Throwable.
Return
The Location or null depending on the validity or a Throwable in case of error.
See also
cloud. pace. sdk. utils. Location Provider Impl