RerouteController

Provides API to trigger reroute and observe reroute state.

See also

Types

Link copied to clipboard
fun interface RerouteStateObserver

RerouteState observer

Link copied to clipboard
fun interface RoutesCallback

Route Callback is useful to set new route(s) on reroute event. Doing the same as MapboxNavigation.setNavigationRoutes.

Properties

Link copied to clipboard
abstract val state: RerouteState

Reroute state

Functions

Link copied to clipboard

Add a RerouteStateObserver to collection and immediately invoke rerouteStateObserver with current re-route state.

Link copied to clipboard

Invoked whenever re-route is needed. For instance when a driver is off-route. Called just after an off-route event.

Link copied to clipboard

Remove rerouteStateObserver from collection of observers.