selectActiveRoute

abstract fun selectActiveRoute(routeId: RouteId)

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)
}
}

As a result of successful action, the following listeners are notified:

Parameters

routeId

An identifier associated with the Route to be selected.

Throws

if the instance of TomTomNavigation has been closed before.