last Known Location
open suspend override fun lastKnownLocation(validate: Boolean): Completion<Location?>
Content copied to clipboard
Returns the last location from Fused Location Provider API or the last known location from LocationManager as fallback. 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