yieldprobe / com.yieldlab.yieldprobe.helper / GeolocationHelper

GeolocationHelper

class GeolocationHelper

Helper class to get a geolocation. Uses a fast and lightweight implementation to get the location over the FusedLocationProviderClient API.

Constructors

<init>

Helper class to get a geolocation. Uses a fast and lightweight implementation to get the location over the FusedLocationProviderClient API.

GeolocationHelper(context: Context)

Properties

mFusedLocation

var mFusedLocation: FusedLocationProviderClient?

mLocation

var mLocation: Location

mUseDummyLocation

var mUseDummyLocation: Boolean

Functions

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