NavigationViewEventDispatcher

open class NavigationViewEventDispatcher

In charge of holding any NavigationView related listeners NavigationListener, or FeedbackListener and firing listener events when triggered by the NavigationView.

Functions

assignBannerInstructionsListener
Link copied to clipboard
open fun assignBannerInstructionsListener(bannerInstructionsListener: BannerInstructionsListener)
assignBottomSheetCallback
Link copied to clipboard
open fun assignBottomSheetCallback(bottomSheetCallback: BottomSheetBehavior.BottomSheetCallback)
assignFeedbackListener
Link copied to clipboard
open fun assignFeedbackListener(feedbackListener: FeedbackListener)
assignInstructionListListener
Link copied to clipboard
open fun assignInstructionListListener(instructionListListener: InstructionListListener)
assignNavigationListener
Link copied to clipboard
open fun assignNavigationListener(navigationListener: NavigationListener, navigationViewModel: NavigationViewModel)
assignSpeechAnnouncementListener
Link copied to clipboard
open fun assignSpeechAnnouncementListener(speechAnnouncementListener: SpeechAnnouncementListener)
initializeListeners
Link copied to clipboard
open fun initializeListeners(navigationViewOptions: NavigationViewOptions, navigationViewModel: NavigationViewModel)
Initializes the listeners in the dispatcher, as well as the listeners in the MapboxNavigation
onAnnouncement
Link copied to clipboard
open fun onAnnouncement(announcement: VoiceInstructions): VoiceInstructions
onBannerDisplay
Link copied to clipboard
open fun onBannerDisplay(instructions: BannerInstructions): BannerInstructions
onBottomSheetStateChanged
Link copied to clipboard
open fun onBottomSheetStateChanged(bottomSheet: View, newState: Int)
onCancelNavigation
Link copied to clipboard
open fun onCancelNavigation()
onDestroy
Link copied to clipboard
open fun onDestroy()
Call when clearing up the navigation view and view model resources.
onFeedbackCancelled
Link copied to clipboard
open fun onFeedbackCancelled()
onFeedbackOpened
Link copied to clipboard
open fun onFeedbackOpened()
onFeedbackSent
Link copied to clipboard
open fun onFeedbackSent(feedbackItem: FeedbackItem)
onInstructionListVisibilityChanged
Link copied to clipboard
open fun onInstructionListVisibilityChanged(shown: Boolean)
onNavigationFinished
Link copied to clipboard
open fun onNavigationFinished()
onNavigationRunning
Link copied to clipboard
open fun onNavigationRunning()