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.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val lastKnownLocation: GeoLocation?

The last known location, or null if no location has been determined yet.

Link copied to clipboard

An instance of SimulationStrategy that simulates the location updates.

Functions

Link copied to clipboard

Adds an OnLocationUpdateListener which informs about new GeoLocation each time a location change occurs.

Link copied to clipboard
open override fun close()

Cancels the unfinished work and removes all registered OnLocationUpdateListeners.

Link copied to clipboard
open override fun disable()

Stops location updates.

Link copied to clipboard
open override fun enable()

Starts location updates.

Link copied to clipboard

Removes previously registered OnLocationUpdateListener.

Inherited functions

Link copied to clipboard
open fun addPredictionsUpdateListener(listener: PredictionsUpdateListener)
Link copied to clipboard
open fun removePredictionsUpdateListener(listener: PredictionsUpdateListener)