SimulationLocationProvider
An implementation of LocationProvider that simulates location updates for testing purposes. Allows the specification of a strategy that determines how locations will be returned.
If SimulationLocationProvider is used in com.tomtom.sdk.navigation.TomTomNavigation, make sure that it is used in com.tomtom.sdk.map.display.TomTomMap instead of com.tomtom.sdk.location.mapmatched.MapMatchedLocationProvider.
Properties
The last known location, or null if no location has been determined yet.
An instance of SimulationStrategy that simulates the location updates.
Functions
Adds an OnLocationUpdateListener which informs about new GeoLocation each time a location change occurs. Location updates will be delivered on the main (UI) thread.
Cancels the unfinished work and removes all registered OnLocationUpdateListeners.
Removes previously registered OnLocationUpdateListener.