dispatchOnNavigationStateChanged
Dispatch NavigationStateChangedListener.onNavigationStateChanged.
It should be called whenever the navigation state is changed. When set to NavigationState.ActiveGuidance, NavigationVisualization.areRouteInstructionsVisible is used for route instructions visibility and CameraTrackingMode.FollowRouteDirection is used. Default behavior can be overridden with NavigationVisualization.setCameraTrackingMode. When set to NavigationState.FreeDriving, CameraTrackingMode.FollowDirection is used. Default behavior can be overridden with NavigationVisualization.setCameraTrackingMode. When set to NavigationState.Idle from NavigationState.ActiveGuidance, all routes displayed with NavigationVisualization are cleared. When set to NavigationState.Idle from NavigationState.FreeDriving, CameraTrackingMode.None is used with the following default parameters: zoom = 13.0 and tilt = 0.0. If the NavigationState is the same as in the last call of this function, there is no effect.
Important: This is a Public Preview API. It may be changed or removed at any time.