EngineActions
public protocol EngineActions
EngineActions defines the actions and properties provided by the the navigation service.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Starts navigation with the default routing.
Declaration
Swift
func start(onError: NavigationStartErrorCompletion?)
Parameters
onError
The NavigationStartErrorCompletion to call if any errors occur during navigation.
-
Starts navigation with a custom route plan.
Declaration
Swift
func start(routePlan: RoutePlan, onError: NavigationStartErrorCompletion?)
Parameters
routePlan
RoutePlan
to be used during navigation sessiononError
The NavigationStartErrorCompletion to call if any errors occur during navigation.
-
Updates the route plan during ongoing navigation.
Declaration
Swift
func update(routePlan: RoutePlan, onError: NavigationStartErrorCompletion?)
Parameters
routePlan
RoutePlan
to be used during navigation sessiononError
The NavigationStartErrorCompletion to call if any errors occur during navigation.
-
Stops the current navigation.
Declaration
Swift
func stop()