setRerouteController

fun setRerouteController(rerouteController: RerouteController)

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

By default uses MapboxRerouteController.


fun setRerouteController(rerouteController: NavigationRerouteController? = defaultRerouteController)

Set RerouteOptionsAdapter. It allows to modify RouteOptions before a reroute request is sent if the default reroute controller is used. Pass null to clear the adapter.