NavigationRouteAlternativesRequestCallback

interface NavigationRouteAlternativesRequestCallback

Interface definition for a callback that is notified whenever alternatives routes are refreshed on demand.

See MapboxNavigation.requestAlternativeRoutes.

Functions

Link copied to clipboard
abstract fun onRouteAlternativeRequestFinished(    routeProgress: RouteProgress,     alternatives: List<NavigationRoute>,     routerOrigin: RouterOrigin)

Invoked when on-demand alternative routes request finishes.

Link copied to clipboard
abstract fun onRouteAlternativesRequestError(error: RouteAlternativesError)

Invoked when the request fails or is canceled.