DestinationArrivalListener

Used to inform the caller that they have arrived at the destination.

Destination arrival is detected by the ArrivalDetectionEngine. Upon arrival detection, navigation continues in turn-by-turn mode until it's stopped.

In order to listen to the destination arrival detection, implement this interface to create a listener, for instance:

val destinationArrivalListener = DestinationArrivalListener { route ->
// Implement the necessary functionality for handling the destination arrival detection
}

Subsequently, add this listener using TomTomNavigation.addDestinationArrivalListener. To stop listening to the destination arrival detection, remove the listener using TomTomNavigation.removeDestinationArrivalListener.

Functions

Link copied to clipboard
abstract fun onDestinationArrived(route: Route)

Called whenever destination arrival has been detected by the ArrivalDetectionEngine.