AndroidLocationProvider
Implementation of the LocationProvider which relies on the default Android mechanism to obtain location ( via LocationManager ). The looper of the calling thread will be used to handle location listener callbacks.
Parameters
A context instance.
Constructors
Constructs the AndroidLocationProvider with a custom Looper to handle location listener callbacks on a dedicated thread. This is a recommended way of instantiating to prevent cases when handling of location updates blocks the main thread.
Properties
Functions
Add a listener to the location provider. If and once enabled, the listener will start receiving location updates.
Enable the Android location provider. After this, the location provider will notify listeners of new locations according to the engine configuration specified.
Remove a listener from the location provider, after which the listener will receive no more location updates.