setRerouteController
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)
Content copied to clipboard
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.