setActiveRoutePlan

abstract fun setActiveRoutePlan(routePlan: RoutePlan)

Sets a provided routePlan as active.

If the navigation has been successfully started with an active route plan, then this method replaces it with the provided one.

If the navigation has been started without an active route plan, then this method starts navigating on the provided one.

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

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

Note that the initial instances of navigation engines are used in the new navigation session.

Parameters

routePlan

A route plan to be set as active.

Throws

if vehicle used for navigation is incompatible with the given route plan.