DefaultNavigationControlsContent

Default implementation of NavigationControlsContent using default colors and icons for all navigation components.

To customize specific components while keeping others default, you can use Kotlin delegation:

object MyNavigationControlsContent : NavigationControlsContent by DefaultNavigationControlsContent {
@Composable
override fun TrafficLine(
viewModel: TrafficLineViewModel,
height: Dp,
objectsPosition: TrafficLineObjectsPosition,
) {
TrafficLineComposable(
viewModel = viewModel,
height = height,
objectsPosition = objectsPosition,
colors = TrafficLineComposableDefaults.colors().copy(
redSpeedColor = Color.Red,
greenTrafficLineColor = Color.Green
),
icons = TrafficLineComposableDefaults.icons
)
}
}

Functions

Link copied to clipboard

Renders the better route prompt suggesting alternative routes.

Link copied to clipboard
open override fun Dashboard(viewModel: NavigationDashboardViewModel, bottomSheetState: CustomBottomSheetState, onBottomSheetVisibilityChanged: (CustomBottomSheetVisibility) -> Unit, addRoadEventButton: CustomizableDashboardButton)

Renders the navigation dashboard component showing route information, audio controls, and navigation actions.

Link copied to clipboard
open override fun FinishRoute(viewModel: FinishRouteViewModel, bottomSheetState: CustomBottomSheetState, onBottomSheetVisibilityChanged: (CustomBottomSheetVisibility) -> Unit)

Renders the finish route component shown when navigation is completed.

Link copied to clipboard
open override fun Indoor(map: Map)

Renders the indoor navigation component showing floor and building information.

Link copied to clipboard
open override fun Maneuver(viewModel: ManeuverViewModel)

Renders the maneuver visualization component showing the next turn or action.

Link copied to clipboard
open override fun MapControls(viewModel: MapControlsViewModel)

Renders map controls (zoom, compass, my location button).

Link copied to clipboard
open override fun Message(viewModel: MessageViewModel)

Renders the navigation message component.

Link copied to clipboard
open override fun Minimap(viewModel: MinimapViewModel, size: Dp, opacity: Opacity)

Renders a non-interactive minimap view.

Link copied to clipboard
open override fun RouteOverview(viewModel: RouteOverviewViewModel)

Renders the route overview component allowing users to see the full route.

Link copied to clipboard
open override fun SpeedInfo(viewModel: SpeedInfoViewModel)

Renders the speed info component showing current speed, speed limit, and camera warnings.

Link copied to clipboard
open override fun TrafficLine(viewModel: TrafficLineViewModel, height: Dp, objectsPosition: TrafficLineObjectsPosition)

Renders the traffic line component showing traffic conditions and route objects along the route.