NavigationEventDispatcher

The source of navigation events used by NavigationVisualization. The client can use this module to dispatch navigation events to the navigation visualization.

Instances of NavigationEventDispatcher are created using NavigationEventDispatcherFactory.create. You should call methods on these instances from the main thread only, otherwise an exception may occur.

NavigationEventDispatcher should not be closed before NavigationVisualization. Only after NavigationVisualization.close is called, you can close NavigationEventDispatcher.

Functions

Link copied to clipboard
abstract fun dispatchOnActiveRouteChanged(route: Route)

Dispatch ActiveRouteChangedListener.onActiveRouteChanged for every listener added using addActiveRouteChangedListener.

Link copied to clipboard
abstract fun dispatchOnDestinationArrived(route: Route)

Dispatch DestinationArrivalListener.onDestinationArrived for every listener added using addDestinationArrivalListener.

Link copied to clipboard

Dispatch HorizonUpdatedListener.onPositionUpdated for every listener added using addHorizonPositionUpdatedListener.

Link copied to clipboard
abstract fun dispatchOnHorizonReset(options: HorizonOptions)

Dispatch HorizonUpdatedListener.onHorizonReset for every listener added using addHorizonResetListener.

Link copied to clipboard

Dispatch HorizonUpdatedListener.onSnapshotUpdated for every listener added using addHorizonSnapshotUpdatedListener.

Link copied to clipboard
abstract fun dispatchOnNavigationStateChanged(navigationState: NavigationState)

Dispatch NavigationStateChangedListener.onNavigationStateChanged for every listener added using addNavigationStateChangedListener.

Link copied to clipboard

Dispatch ProgressUpdatedListener.onProgressUpdated for every listener added using addProgressUpdatedListener.

Link copied to clipboard

Dispatch RouteAddedListener.onRouteAdded for every listener added using addRouteAddedListener.

Link copied to clipboard

Dispatch RouteRemovedListener.onRouteRemoved for every listener added using addRouteRemovedListener.

Link copied to clipboard

Dispatch RouteSnapshotUpdatedListener.onSnapshotUpdated for every listener added using addRouteSnapshotUpdatedListener.

Link copied to clipboard
abstract fun dispatchOnRouteUpdated(route: Route, reason: RouteUpdatedReason)

Dispatch RouteUpdatedListener.onRouteUpdated for every listener added using addRouteUpdatedListener.

Link copied to clipboard
abstract fun dispatchOnWaypointArrived(waypoint: RouteStop, route: Route)

Dispatch WaypointArrivalListener.onWaypointArrived for every listener added using addWaypointArrivalListener.

Link copied to clipboard
abstract fun dispatchOnWaypointDeparted(waypoint: RouteStop, route: Route)

Dispatch WaypointArrivalListener.onWaypointDeparted for every listener added using addWaypointArrivalListener.

Inherited functions

Link copied to clipboard
abstract fun close()