DataStoreUpdater
public class DataStoreUpdater
Provides current position updates and the active route in the current navigation session to the data store.
Use updateLocationProvider
and updateNavigation
methods to
control flow of updates for the UpdatableDataStore
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a new instance of
DataStoreUpdater
.Declaration
Swift
public init(dataStore: UpdatableDataStore, locationProvider: LocationProvider, navigation: TomTomNavigation)
Parameters
dataStore
The
UpdatableDataStore
instance that will be updated with position and route data.locationProvider
The
LocationProvider
instance that will provide updates for the current position.navigation
The
TomTomNavigation
instance that will provide updates for the active route.
-
Updates the location provider used for
UpdatableDataStore.updatePosition(_:)
.Declaration
Swift
public func updateLocationProvider(_ locationProvider: LocationProvider)
Parameters
locationProvider
The new
LocationProvider
that will provide updates for the current position. -
Updates the navigation instance used by data store updater.
Declaration
Swift
public func updateNavigation(_ navigation: TomTomNavigation)
Parameters
navigation
The new
TomTomNavigation
instance that will provide updates for the active route.