Navigation
public class Navigation : EngineActions
The Navigation object defines the functionality of the navigation.
Important
This is a Public Preview API. It may be changed or removed at any time.-
A delegate that reports specific events that occur during the navigation.
Declaration
Swift
public weak var delegate: TomTomNavigationDelegate? -
A delegate that reports specific error events that occur during the navigation.
Declaration
Swift
public weak var delegateError: TomTomNavigationErrorDelegate? -
Adds a
NavigationObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addNavigationObserver(_ observer: NavigationObserver)Parameters
observerA class that can handle all navigation events except for error events.
-
Removes the
NavigationObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeNavigationObserver(_ observer: NavigationObserver)Parameters
observerA class that can handle all navigation events except for error events.
-
Adds a
NavigationStartObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addStartObserver(_ observer: NavigationStartObserver)Parameters
observerA class that can handle navigation start events.
-
Removes the
NavigationStartObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeStartObserver(_ observer: NavigationStartObserver)Parameters
observerA class that can handle navigation start events.
-
Adds a
NavigationMapMatchingObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addMapMatchingObserver(_ observer: NavigationMapMatchingObserver)Parameters
observerA class that can handle navigation map matching events.
-
Removes the
NavigationMapMatchingObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeMapMatchingObserver(_ observer: NavigationMapMatchingObserver)Parameters
observerA class that can handle navigation map matching events.
-
Adds a
NavigationProgressObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addProgressObserver(_ observer: NavigationProgressObserver)Parameters
observerA class that can handle navigation start events.
-
Removes the
NavigationProgressObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeProgressObserver(_ observer: NavigationProgressObserver)Parameters
observerA class that can handle navigation progress events.
-
Adds a
NavigationRouteObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addRouteObserver(_ observer: NavigationRouteObserver)Parameters
observerA class that can handle navigation route events.
-
Removes the
NavigationRouteObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeRouteObserver(_ observer: NavigationRouteObserver)Parameters
observerA class that can handle navigation route events.
-
Adds a
NavigationGuidanceObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addGuidanceObserver(_ observer: NavigationGuidanceObserver)Parameters
observerA class that can handle navigation guidance events.
-
Removes the
NavigationGuidanceObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeGuidanceObserver(_ observer: NavigationGuidanceObserver)Parameters
observerA class that can handle navigation guidance events.
-
Adds a
NavigationLocationContextObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addLocationContextObserver(_ observer: NavigationLocationContextObserver)Parameters
observerA class that can handle navigation location context events.
-
Removes the
NavigationLocationContextObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeLocationContextObserver(_ observer: NavigationLocationContextObserver)Parameters
observerA class that can handle navigation location context events.
-
Adds a
NavigationArrivalObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addArrivalObserver(_ observer: NavigationArrivalObserver)Parameters
observerA class that can handle navigation arrival events.
-
Removes the
NavigationArrivalObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeArrivalObserver(_ observer: NavigationArrivalObserver)Parameters
observerA class that can handle navigation arrival events.
-
Adds a
NavigationTripObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addTripObserver(_ observer: NavigationTripObserver)Parameters
observerA class that can handle navigation trip events.
-
Removes the
NavigationTripObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeTripObserver(_ observer: NavigationTripObserver)Parameters
observerA class that can handle navigation trip events.
-
Adds a
NavigationHorizonObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.Declaration
Swift
public func addHorizonObserver(_ observer: NavigationHorizonObserver)Parameters
observerA class that can handle navigation horizon events.
-
Removes the
NavigationHorizonObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.Declaration
Swift
public func removeHorizonObserver(_ observer: NavigationHorizonObserver)Parameters
observerA class that can handle navigation trip events.
-
Adds a
NavigationErrorObservertoNavigation. Keeps a weak pointer to the observer. It is expected to be called on the main queue.Declaration
Swift
public func addErrorObserver(_ observer: NavigationErrorObserver)Parameters
observerA class that can handle navigation error events.
-
Removes the
NavigationErrorObservertoNavigation. There is no need to call this function from the deinit of the observer. It is expected to be called on the main queue.Declaration
Swift
public func removeErrorObserver(_ observer: NavigationErrorObserver)Parameters
observerA class that can handle navigation error events.
-
Declaration
Swift
public func start() -
Declaration
Swift
public func start(navigationPlan: NavigationPlan) -
Declaration
Swift
public func update(routePlan: RoutePlan) -
Declaration
Swift
public func stop() -
Declaration
Swift
public func navigationSnapshot() -> NavigationSnapshot? -
Important
This is a Public Preview API. It may be changed or removed at any time. The mode of navigation after start.Declaration
Swift
public enum NavigationMode
Navigation Class Reference