Implementation of the LocationProvider which relies on the default Android mechanism to obtain location ( via LocationManager ).
Important: This is a Public Preview API. It may be changed or removed at any time.
Add a listener to the location engine. If and once enabled, the listener will start receiving location updates.
open override fun close()
Dispose the location engine, removes all listeners and disable the engine.
Disable the location engine, listeners will stay subscribed to the engine but not receive any new location updates.
open override fun enable() @RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"])
Enable the Android location engine. After this, the location engine will notify listeners of new locations according to the engine configuration specified.
Remove a listener from the location engine, after which the listener will receive no more location updates.