class GeolocationHelper
Helper class to get a geolocation. Uses a fast and lightweight implementation to get the location over the FusedLocationProviderClient API.
<init> |
Helper class to get a geolocation. Uses a fast and lightweight implementation to get the location over the FusedLocationProviderClient API. GeolocationHelper(context: Context) |
mFusedLocation |
var mFusedLocation: FusedLocationProviderClient? |
mLocation |
var mLocation: Location |
mUseDummyLocation |
var mUseDummyLocation: Boolean |
getLocation |
Just return the last stored location. This call is cheap and fast. fun getLocation(): Location? |
updateLocation |
Update location with last known location. Function does not have a return statement. Will send an event over EventBus with new location. fun updateLocation(): Unit |