ArrivalObserver

interface ArrivalObserver

This gives many observers the ability to monitor the progress of arrival. To control the behavior of arrival, see ArrivalController.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onFinalDestinationArrival
Link copied to clipboard
abstract fun onFinalDestinationArrival(routeProgress: RouteProgress)
Triggered when the RouteProgress.currentState is equal to RouteProgressState.COMPLETE, once when there are no more route legs to navigate.
onNextRouteLegStart
Link copied to clipboard
abstract fun onNextRouteLegStart(routeLegProgress: RouteLegProgress)
Called when MapboxNavigation.navigateNextRouteLeg has been called and returns true, this observer will be notified of the next route leg start.
onWaypointArrival
Link copied to clipboard
abstract fun onWaypointArrival(routeProgress: RouteProgress)
Triggered when the RouteProgress.currentState is equal to RouteProgressState.COMPLETE, once per route leg, and when there are more route legs to navigate.
toString
Link copied to clipboard
open fun toString(): String