DataStoreUpdater
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.\nThe DataStoreUpdater is now created automatically inside TomTomNavigation. \nThe external DataStoreUpdater no longer serves a purpose and should not be created manually.")
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.
-
Initializes a new instance of
DataStoreUpdater.Declaration
Swift
public init(dataStore: UpdatableDataStore, locationProvider: LocationProvider, navigation: TomTomNavigation)Parameters
dataStoreThe
UpdatableDataStoreinstance that will be updated with position and route data.locationProviderThe
LocationProviderinstance that will provide updates for the current position.navigationThe
TomTomNavigationinstance that will provide updates for the active route.
-
Updates the location provider used for
UpdatableDataStore.updatePosition(_:).Declaration
Swift
public func updateLocationProvider(_ locationProvider: LocationProvider)Parameters
locationProviderThe new
LocationProviderthat will provide updates for the current position. -
Updates the navigation instance used by data store updater.
Declaration
Swift
public func updateNavigation(_ navigation: TomTomNavigation)Parameters
navigationThe new
TomTomNavigationinstance that will provide updates for the active route.
TomTom SDK for iOS (0.71.1)
DataStoreUpdater