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
Renders the better route prompt suggesting alternative routes.
Renders the navigation dashboard component showing route information, audio controls, and navigation actions.
Renders the finish route component shown when navigation is completed.
Renders the indoor navigation component showing floor and building information.
Renders the maneuver visualization component showing the next turn or action.
Renders map controls (zoom, compass, my location button).
Renders the navigation message component.
Renders a non-interactive minimap view.
Renders the route overview component allowing users to see the full route.
Renders the speed info component showing current speed, speed limit, and camera warnings.
Renders the traffic line component showing traffic conditions and route objects along the route.