DashNavigationFragment
Properties
Functions
Close search screen.
Observes the state of the camera button in the UI.
A Flow that emits DashCameraState.
A Flow that emits Mapbox Map events.
Observe map markers.
A Flow that emits whenever a list of displayed routes changes.
A Flow that emits every time a com.mapbox.dash.sdk.event.UiState changes. Upon collection, the first emitted value is always the current com.mapbox.dash.sdk.event.UiState.
Search provided category and show results on the map.
Search provided query and show results on the map. NOTE: if useForwardFunction value is true in Dash.init .. search {}, then forward will be used instead of search to perform the search. useForwardFunction is true by default.
Open search with the given query and anchor point.
Preview a destination for Dash. Returns a DashDestinationPreview that contains the related DashSearchResult. Can be used to preview:
Restore the default map camera paddings. Default values can be seen in camera_padding.xml files.
Provide additional points that should be fitted into camera view port.
Set the address input screen content.
Set the arrival feedback content.
Programmatically sets the camera tracking mode
Override the default map camera paddings. Safe area paddings will be added to the provided values, before they are applied to the map camera.
Programmatically sets the camera perspective
Set the continue navigation content.
Set a destination for Dash to navigate to. Returns a DashRoutePreview that can be used to start navigation.
Set the destination preview content.
Set the driver notification content.
Set the edit favorite screen content.
Set the edit trip content.
Set the end active guidance content.
Set the favorites screen content.
Set the full screen search content.
Set the left sidebar content.
Set the maneuver content.
Set the extra content that need to be called in the MapboxMapScope
Set the map layer
Set the map logo content. Please note that it's required to show Mapbox Logo in your map. See Mapbox ToS
Set map layers configuration.
Set new maximum FPS for map rendering.
Set the no signal content.
Set the offline route alert content.
Set the places preview content.
Set the range map info view content.
Set the recenter camera button content.
Set the resume guidance view content.
Set the right sidebar content.
Set the root view of the navigation fragment. This can be used to wrap the whole navigation UI with additional UI elements, for example CompositionLocalProvider.
Set the route callout view content.
Set the routes overview content.
Set the safe area paddings, which are applied to the map to adjust for display on curved screens.
Set the search area button content.
Set the search panel content.
Set the settings screen content.
Set the street name content.
Set the suggestion button content.
Set the trip summary content.
Set the upcoming maneuvers content.
Shows current routes. Should be called in NavigationState.ActiveGuidance.Idle state.
Zoom the map in by one zoom level factor Constant.DEFAULT_ZOOM_IN_FACTOR.
Zoom the map in or out by a given factor. A factor 1.0 zooms in, a factor < 1.0 zooms out.
Zoom the map out by one zoom level factor Constant.DEFAULT_ZOOM_OUT_FACTOR.