public protocol NavigationStateChangeObserver : Observer

Declares an observer that can receive navigationState change events.

The navigation state changes when the navigation session is started, resumed, stopped, or updated from from free driving to active guidance.

For more information on navigation states, see the NavigationState and navigationState documentation.

To be informed of navigation state updates implement NavigationStateChangeObserver:

class CustomStateChangeObserver: NavigationStateChangeObserver {
    func didChangeNavigationState(navigationState: NavigationState) {
        // add code that handles navigation state changes

Then add the observer using addNavigationStateChangeObserver(_:).


This is a Public Preview API. It may be changed or removed at any time.