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.-
start()Default implementationStarts navigation with the default routing.
Default Implementation
Declaration
Swift
func start() -
start(navigationOptions:Default implementation) Starts navigation with a navigation plan.
Warning
NavigationOptions.alternativeRoutePlans is not used as multi-route navigation is not supported.Default Implementation
Declaration
Swift
func start(navigationOptions: NavigationOptions)Parameters
navigationOptionsNavigationOptionsto be used during navigation session. -
update(navigationOptions:Default implementation) Updates the route plan during ongoing navigation.
- navigationOptions:
NavigationOptionsto be used during a navigation session.
Default Implementation
Declaration
Swift
func update(navigationOptions: NavigationOptions) - navigationOptions:
-
Accept the better route proposed and update the route plan during navigation.
Declaration
Swift
func acceptBetterProposal() -
Manually marks the
Waypointas visited. This action requires thatWaypointwas previously announced as reached viaNavigationArrivalObserverand that it has not been announced as visited viaNavigationArrivalObserver. Throws NavigationProcessingError.nextWaypointError if calling requirements are not met. The navigation service marksWaypointas visited, andNavigationArrivalObserveris notified.- waypoint: The
Waypointof visitation.
Declaration
Swift
func markWaypointAsVisited(waypoint: Waypoint) throws - waypoint: The
-
Stops the current navigation.
Declaration
Swift
func stop()
EngineActions Protocol Reference