Builder

abstract class Builder

Functions

arrivalObserver
Link copied to clipboard
abstract fun arrivalObserver(arrivalObserver: ArrivalObserver): NavigationViewOptions.Builder
Add an ArrivalObserver to monitor the progress of arrival, include stop arrival and route arrival.
bannerInstructionsListener
Link copied to clipboard
abstract fun bannerInstructionsListener(bannerInstructionsListener: BannerInstructionsListener): NavigationViewOptions.Builder
bottomSheetCallback
Link copied to clipboard
abstract fun bottomSheetCallback(bottomSheetCallback: BottomSheetBehavior.BottomSheetCallback): NavigationViewOptions.Builder
build
Link copied to clipboard
abstract fun build(): NavigationViewOptions
camera
Link copied to clipboard
abstract fun camera(camera: Camera): NavigationViewOptions.Builder
Add Navigation Camera
darkThemeResId
Link copied to clipboard
abstract fun darkThemeResId(darkThemeResId: Integer): NavigationViewOptions.Builder
directionsRoute
Link copied to clipboard
abstract fun directionsRoute(directionsRoute: DirectionsRoute): NavigationViewOptions.Builder
enableVanishingRouteLine
Link copied to clipboard
abstract fun enableVanishingRouteLine(enableVanishingRouteLine: Boolean): NavigationViewOptions.Builder
Set true to enable vanishing route line feature and false to disable
feedbackListener
Link copied to clipboard
abstract fun feedbackListener(feedbackListener: FeedbackListener): NavigationViewOptions.Builder
instructionListListener
Link copied to clipboard
abstract fun instructionListListener(instructionListListener: InstructionListListener): NavigationViewOptions.Builder
isFallbackAlwaysEnabled
Link copied to clipboard
abstract fun isFallbackAlwaysEnabled(isFallbackAlwaysEnabled: Boolean): NavigationViewOptions.Builder
Set false to not fallback to TTS for voice guidance when the connection is slow.
lightThemeResId
Link copied to clipboard
abstract fun lightThemeResId(lightThemeResId: Integer): NavigationViewOptions.Builder
locationEngine
Link copied to clipboard
abstract fun locationEngine(locationEngine: LocationEngine): NavigationViewOptions.Builder
locationObserver
Link copied to clipboard
abstract fun locationObserver(locationObserver: LocationObserver): NavigationViewOptions.Builder
muteVoiceGuidance
Link copied to clipboard
abstract fun muteVoiceGuidance(muteVoiceGuidance: Boolean): NavigationViewOptions.Builder
Set true to mute the voice guidance when the Navigation starts
navigationFeedbackOptions
Link copied to clipboard
abstract fun navigationFeedbackOptions(navigationFeedbackOptions: NavigationFeedbackOptions): NavigationViewOptions.Builder
Set various feedback options to customize the feedback experience during and afterturn-by-turn navigation.
navigationListener
Link copied to clipboard
abstract fun navigationListener(navigationListener: NavigationListener): NavigationViewOptions.Builder
navigationOptions
Link copied to clipboard
abstract fun navigationOptions(navigationOptions: NavigationOptions): NavigationViewOptions.Builder
puckDrawableSupplier
Link copied to clipboard
abstract fun puckDrawableSupplier(puckDrawableSupplier: PuckDrawableSupplier): NavigationViewOptions.Builder
Add a puck drawable supplier to customize the look of the puck when navigating.
roundingIncrement
Link copied to clipboard
abstract fun roundingIncrement(roundingIncrement: Integer): NavigationViewOptions.Builder
Defines the increment displayed on the instruction view
routeProgressObserver
Link copied to clipboard
abstract fun routeProgressObserver(routeProgressObserver: RouteProgressObserver): NavigationViewOptions.Builder
shouldSimulateRoute
Link copied to clipboard
abstract fun shouldSimulateRoute(shouldSimulateRoute: Boolean): NavigationViewOptions.Builder
speechAnnouncementListener
Link copied to clipboard
abstract fun speechAnnouncementListener(speechAnnouncementListener: SpeechAnnouncementListener): NavigationViewOptions.Builder
speechPlayer
Link copied to clipboard
abstract fun speechPlayer(speechPlayer: SpeechPlayer): NavigationViewOptions.Builder
voiceInstructionLoaderBaseUrl
Link copied to clipboard
abstract fun voiceInstructionLoaderBaseUrl(voiceInstructionLoaderBaseUrl: String): NavigationViewOptions.Builder
Set the base URL for online voice instruction requests.If null, defaults to https://api.mapbox.com/.
waynameChipEnabled
Link copied to clipboard
abstract fun waynameChipEnabled(waynameChipEnabled: Boolean): NavigationViewOptions.Builder