selectActiveRoute
Selects the Route with provided RouteId as active.
If the route corresponding to the given routeId is not available, this method has no effect.
Use this method to select an active route when given a RouteId from the RouteAddedListener callback.
navigation.addRouteAddedListener { route, _, reason ->
if (reason is RouteAddedReason.BetterRouteProposed) {
navigation.selectActiveRoute(route.id)
}
}
Content copied to clipboard
As a result of successful action, the following listeners are notified:
ActiveRouteChangedListener, with the Route selected by routeId.
RouteRemovedListener, with the previously active Route and RouteRemovedReason.Manual.
Parameters
routeId
An identifier associated with the Route to be selected.
Throws
if the instance of TomTomNavigation is closed.