AndroidLocationEngine
class AndroidLocationEngine(context: Context, config: AndroidLocationEngineConfig = AndroidLocationEngineConfig()) : LocationEngine
Content copied to clipboard
Implementation of the LocationEngine 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.
Constructors
Link copied to clipboard
fun AndroidLocationEngine(context: Context, config: AndroidLocationEngineConfig = AndroidLocationEngineConfig())
Content copied to clipboard
Functions
Link copied to clipboard
open override fun addOnLocationUpdateListener(listener: OnLocationUpdateListener)
Content copied to clipboard
Add a listener to the location engine. If and once enabled, the listener will start receiving location updates.
Link copied to clipboard
open override fun removeOnLocationUpdateListener(listener: OnLocationUpdateListener)
Content copied to clipboard
Remove a listener from the location engine, after which the listener will receive no more location updates.