NavigationRouteTrackingStateUpdateObserver

public protocol NavigationRouteTrackingStateUpdateObserver : Observer

An observer that receives route tracking state updates.

The information about the route state is represented by RouteTrackingState. When the driver deviates or returns to the active route, the navigation engine sends route-tracking state updates to the observer.

To start receiving route tracking state updates, become an observer using Navigation.addRouteTrackingStateUpdateObserver(_ observer:): To stop receiving route tracking state updates, remove the previously added observer using Navigation.removeRouteTrackingStateUpdateObserver(_ observer:):

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Reports that the driver is following the route or has deviated from the active route.

    Declaration

    Swift

    func onRouteTrackingStateUpdate(routeTrackingState: RouteTrackingState)

    Parameters

    routeTrackingState

    The current route tracking state.