NavigationRouteAlternativesObserver

interface NavigationRouteAlternativesObserver

Interface definition for an observer that is notified whenever the Navigation SDK checks for alternative routes to the destination change.

See also

com.mapbox.navigation.base.route.RouteAlternativesOptions

to control the callback interval.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onRouteAlternatives
Link copied to clipboard
abstract fun onRouteAlternatives(routeProgress: RouteProgress, alternatives: List<NavigationRoute>, routerOrigin: RouterOrigin)
Invoked whenever available alternative routes to the destination change.
onRouteAlternativesError
Link copied to clipboard
abstract fun onRouteAlternativesError(error: RouteAlternativesError)
Notified when an alternative routes request encounters an error.
toString
Link copied to clipboard
open fun toString(): String