NavigationDestinationArrivalObserver
public protocol NavigationDestinationArrivalObserver : Observer
Declares an observer that can receive 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 CustomNavigationDestinationArrivalObserver: NavigationDestinationArrivalObserver {
func didArriveAtDestination(route: TomTomSDKRoute.Route) {
// Add code here that handles arrival at a destination.
}
}
Then add this observer using
addDestinationArrivalObserver(_:).
To stop receiving the destination arrival event, remove the observer using
removeDestinationArrivalObserver(_:).
-
Notifies when destination arrival is detected by the
ArrivalDetectionEngine.Declaration
Swift
func didArriveAtDestination(route: Route)Parameters
routeThe current route.
TomTom SDK for iOS (0.53.1)
NavigationDestinationArrivalObserver