DashNavigationFragment

class DashNavigationFragment : NavigationMainFragment

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val allPermissionsObserver: PermissionsObserver
Link copied to clipboard
@get:NonNull
open override val lifecycle: Lifecycle
Link copied to clipboard
Link copied to clipboard
open override val scope: Scope
Link copied to clipboard
@get:NonNull
open override val viewModelStore: ViewModelStore

Functions

Link copied to clipboard

Close search screen.

Link copied to clipboard
Link copied to clipboard
operator override fun equals(@Nullable other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getId(): Int
Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getView(): View?
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Observes the state of the camera button in the UI.

Link copied to clipboard

A Flow that emits DashCameraState.

Link copied to clipboard

A Flow that emits Mapbox Map events.

Link copied to clipboard

Observe map markers.

Link copied to clipboard

A Flow that emits whenever a list of displayed routes changes.

Link copied to clipboard
fun observeUiState(): Flow<UiState>

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.

Link copied to clipboard
Link copied to clipboard
open fun onActivityResult(p0: Int, p1: Int, @Nullable p2: Intent?)
Link copied to clipboard
open override fun onAttach(context: Context)
Link copied to clipboard
Link copied to clipboard
open fun onCloseScope()
Link copied to clipboard
Link copied to clipboard
open override fun onCreate(savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?
Link copied to clipboard
open override fun onDestroy()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onLowMemory()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onSaveInstanceState(outState: Bundle)
Link copied to clipboard
Link copied to clipboard
open override fun onStop()
Link copied to clipboard
open override fun onViewCreated(view: View, savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
fun openMapWithCategorySearch(categoryId: String, displayName: String, anchorPoint: Point? = null, boundingBox: BoundingBox? = null, searchAlongTheRouteOptions: SearchAlongTheRouteOptions? = null)

Search provided category and show results on the map.

Link copied to clipboard
suspend fun openMapWithSearch(query: String, anchorPoint: Point? = null, boundingBox: BoundingBox? = null)

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.

Link copied to clipboard
fun openSearch(searchQuery: String?, anchorPoint: Point? = null, boundingBox: BoundingBox? = null)

Open search with the given query and anchor point.

Link copied to clipboard

Preview a destination for Dash. Returns a DashDestinationPreview that contains the related DashSearchResult. Can be used to preview:

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Restore the default map camera paddings. Default values can be seen in camera_padding.xml files.

Link copied to clipboard
fun setAdditionalPointsToFrame(points: List<Point>)

Provide additional points that should be fitted into camera view port.

Link copied to clipboard

Set the address input screen content.

Link copied to clipboard
open fun setArguments(@Nullable p0: Bundle?)
Link copied to clipboard

Set the arrival feedback content.

Link copied to clipboard
fun setCameraMode(cameraMode: Int)

Programmatically sets the camera tracking mode

Link copied to clipboard
fun setCameraPaddings(left: Double, top: Double, right: Double, bottom: Double)

Override the default map camera paddings. Safe area paddings will be added to the provided values, before they are applied to the map camera.

Link copied to clipboard
fun setCameraPerspective(cameraPerspective: Int)

Programmatically sets the camera perspective

Link copied to clipboard

Set the continue navigation content.

Link copied to clipboard

Set a destination for Dash to navigate to. Returns a DashRoutePreview that can be used to start navigation.

Link copied to clipboard

Set the destination preview content.

Link copied to clipboard

Set the driver notification content.

Link copied to clipboard

Set the edit favorite screen content.

Link copied to clipboard

Set the edit trip content.

Link copied to clipboard

Set the end active guidance content.

Link copied to clipboard
Link copied to clipboard
open fun setExitTransition(@Nullable p0: Any?)
Link copied to clipboard

Set the favorites screen content.

Link copied to clipboard

Set the full screen search content.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Set the left sidebar content.

Link copied to clipboard

Set the maneuver content.

Link copied to clipboard

Set the extra content that need to be called in the MapboxMapScope

Link copied to clipboard

Set the map layer

Link copied to clipboard

Set the map logo content. Please note that it's required to show Mapbox Logo in your map. See Mapbox ToS

Link copied to clipboard

Set map layers configuration.

Link copied to clipboard
fun setMaximumMapFps(@IntRange(from = 1, to = 2147483647) fps: Int)

Set new maximum FPS for map rendering.

Link copied to clipboard
Link copied to clipboard

Set the no signal content.

Link copied to clipboard

Set the offline route alert content.

Link copied to clipboard

Set the places preview content.

Link copied to clipboard

Set the range map info view content.

Link copied to clipboard

Set the recenter camera button content.

Link copied to clipboard
Link copied to clipboard

Set the resume guidance view content.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Set the right sidebar content.

Link copied to clipboard
fun setRootView(rootView: @Composable (@Composable () -> Unit) -> Unit)

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.

Link copied to clipboard

Set the route callout view content.

Link copied to clipboard

Set the routes overview content.

Link copied to clipboard
fun setSafeAreaPaddings(left: Int, top: Int, right: Int, bottom: Int)

Set the safe area paddings, which are applied to the map to adjust for display on curved screens.

Link copied to clipboard

Set the search area button content.

Link copied to clipboard

Set the search panel content.

Link copied to clipboard

Set the settings screen content.

Link copied to clipboard

Set the street name content.

Link copied to clipboard

Set the suggestion button content.

Link copied to clipboard
open fun setTargetFragment(@Nullable p0: Fragment?, p1: Int)
Link copied to clipboard

Set the trip summary content.

Link copied to clipboard

Set the upcoming maneuvers content.

Link copied to clipboard
Link copied to clipboard

Shows current routes. Should be called in NavigationState.ActiveGuidance.Idle state.

Link copied to clipboard
open fun startActivity(p0: Intent)
open fun startActivity(p0: Intent, @Nullable p1: Bundle?)
Link copied to clipboard
open fun startActivityForResult(p0: Intent, p1: Int)
open fun startActivityForResult(p0: Intent, p1: Int, @Nullable p2: Bundle?)
Link copied to clipboard
open fun startIntentSenderForResult(p0: IntentSender, p1: Int, @Nullable p2: Intent?, p3: Int, p4: Int, p5: Int, @Nullable p6: Bundle?)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard

Zoom the map in by one zoom level factor Constant.DEFAULT_ZOOM_IN_FACTOR.

Link copied to clipboard

Zoom the map in or out by a given factor. A factor 1.0 zooms in, a factor < 1.0 zooms out.

Link copied to clipboard

Zoom the map out by one zoom level factor Constant.DEFAULT_ZOOM_OUT_FACTOR.