NavigationDestinationArrivalObserver
public protocol NavigationDestinationArrivalObserver : Observer
An observer that receives navigation events of arrival at destination.
Destination arrival is detected by the TomTomSDKNavigationEngines/ArrivalDetectionEngine. On arrival detection, navigation continues
in turn-by-turn mode until it’s stopped or switched into free-driving mode.
To be notified about the destination arrival event while navigating, first
implement the NavigationDestinationArrivalObserver protocol:
class NavigationDestinationArrivalObserverImpl: NavigationDestinationArrivalObserver {
func didArriveAtDestination(route: TomTomSDKRoute.Route) {
// Add code here that handles arrival at a destination.
}
}
Then register this observer using
addDestinationArrivalObserver(_:).
To stop receiving the destination arrival event, unregister the observer using
removeDestinationArrivalObserver(_:).
-
Called when destination arrival is detected by the
ArrivalDetectionEngine.Declaration
Swift
func didArriveAtDestination(route: Route)Parameters
routeThe current route.
TomTom SDK for iOS (0.40.0)
NavigationDestinationArrivalObserver