NavigationEngineRegistry
public protocol NavigationEngineRegistry : AnyObject
Provides access to current registered engines and allows updating them.
Important
This is a Public Preview API. It may be changed or removed at any time.-
The current engine that provides map matching functionality.
Declaration
Swift
var mapMatchingEngine: MapMatchingEngine { get } -
The current engine that manages replanning a route.
Declaration
Swift
var routeReplanningEngine: RouteReplanningEngine { get } -
The current engine that generates
GuidanceandLaneGuidancerelated to upcoming road maneuvers.Declaration
Swift
var guidanceEngine: GuidanceEngine { get } -
The current engine that manages the horizon data.
Declaration
Swift
var horizonEngine: HorizonEngine? { get } -
The current engine that provides functionality to determine if the driver is tracking the routes.
Declaration
Swift
var routeTrackingEngine: RouteTrackingEngine { get } -
The current engine that provides functionality related to the calculation of progress along the route.
Declaration
Swift
var routeProgressEngine: RouteProgressEngine { get } -
The current engine that detects arrival at the destination.
Declaration
Swift
var arrivalDetectionEngine: ArrivalDetectionEngine { get } -
The current engine that processes the map data source.
Declaration
Swift
var dataSourceSelectionEngine: DataSourceSelectionEngine? { get } -
The current engine that provides an interface for updating the data store.
Declaration
Swift
var dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? { get } -
updateEngines(mapMatchingEngine:routeReplanningEngine: guidanceEngine: horizonEngine: routeTrackingEngine: routeProgressEngine: arrivalDetectionEngine: dataSourceSelectionEngine: dataStoreMaintenanceEngine: completion: ) Sets new engines. Provide a new instance or pass
nilto not change current engine.Important
The method may execute an update asynchronously. Use
completionparameter to get notified when an update completed.Declaration
Swift
func updateEngines( mapMatchingEngine: MapMatchingEngine?, routeReplanningEngine: RouteReplanningEngine?, guidanceEngine: GuidanceEngine?, horizonEngine: HorizonEngine?, routeTrackingEngine: RouteTrackingEngine?, routeProgressEngine: RouteProgressEngine?, arrivalDetectionEngine: ArrivalDetectionEngine?, dataSourceSelectionEngine: DataSourceSelectionEngine?, dataStoreMaintenanceEngine: DataStoreMaintenanceEngine?, completion: (() -> ())? )Parameters
mapMatchingEngineThe
MapMatchingEngineinstance to be used in navigation. Defaults to nil.routeReplanningEngineThe
RouteReplanningEngineinstance to be used in navigation. Defaults to nil.guidanceEngineThe
GuidanceEngineinstance to be used in navigation. Defaults to nil.horizonEngineThe
HorizonEngineinstance to be used in navigation. Defaults to nil.routeTrackingEngineThe
RouteTrackingEngineinstance to be used in navigation. Defaults to nil.routeProgressEngineThe
RouteProgressEngineinstance to be used in navigation. Defaults to nil.arrivalDetectionEngineThe
ArrivalDetectionEngineinstance to be used in navigation. Defaults to nil.dataSourceSelectionEngineThe
DataSourceSelectionEngineinstance to be used in navigation. Defaults to nil.dataStoreMaintenanceEngineThe
DataStoreMaintenanceEngineinstance to be used in navigation. Defaults to nil.completionexecuted once all engines are updated.
-
updateEngines(mapMatchingEngine:Extension methodrouteReplanningEngine: guidanceEngine: horizonEngine: routeTrackingEngine: routeProgressEngine: arrivalDetectionEngine: dataStoreMaintenanceEngine: dataSourceSelectionEngine: completion: ) Convenient method to set new engines, nil values will not be updated.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func updateEngines( mapMatchingEngine: MapMatchingEngine? = nil, routeReplanningEngine: RouteReplanningEngine? = nil, guidanceEngine: GuidanceEngine? = nil, horizonEngine: HorizonEngine? = nil, routeTrackingEngine: RouteTrackingEngine? = nil, routeProgressEngine: RouteProgressEngine? = nil, arrivalDetectionEngine: ArrivalDetectionEngine? = nil, dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = nil, dataSourceSelectionEngine: DataSourceSelectionEngine? = nil, completion: (() -> ())? = nil )Parameters
mapMatchingEngineThe
MapMatchingEngineinstance to be used in navigation. Defaults to nil.routeReplanningEngineThe
RouteReplanningEngineinstance to be used in navigation. Defaults to nil.guidanceEngineThe
GuidanceEngineinstance to be used in navigation. Defaults to nil.horizonEngineThe
HorizonEngineinstance to be used in navigation. Defaults to nil.routeTrackingEngineThe
RouteTrackingEngineinstance to be used in navigation. Defaults to nil.routeProgressEngineThe
RouteProgressEngineinstance to be used in navigation. Defaults to nil.arrivalDetectionEngineThe
ArrivalDetectionEngineinstance to be used in navigation. Defaults to nil.dataStoreMaintenanceEngineThe
DataStoreMaintenanceEngineinstance to be used in navigation. Defaults to nil.dataSourceSelectionEngineThe
DataSourceSelectionEngineinstance to be used in navigation. Defaults to nil.completionexecuted once all engines are updated.
TomTom SDK for iOS (0.53.1)
NavigationEngineRegistry