getLastLocation

open override fun getLastLocation(callback: GetLocationCallback): Cancelable

Gets the last known location. This call will never activate hardware to obtain a new location, and will only return a cached location.

Return

cancelable object to stop callback from being invoked

Parameters

callback

a callback to return the last known location from a cache or a error if it fails.