setRerouteController

fun setRerouteController(rerouteController: RerouteController?)

Set RerouteController that's automatically invoked when user is off-route.

By default MapboxRerouteController is used. Pass null to disable automatic reroute. A user will stay in OFF_ROUTE state until a new route is set or the user gets back to the route.


fun setRerouteController(rerouteController: NavigationRerouteController? = defaultRerouteController)

Set NavigationRerouteController that's automatically invoked when user is off-route.

By default MapboxRerouteController is used. Pass null to disable automatic reroute. A user will stay in OFF_ROUTE state until a new route is set or the user gets back to the route.