TrafficLineComposable
fun TrafficLineComposable(viewModel: TrafficLineViewModel, height: Dp = 160.dp, objectsPosition: TrafficLineObjectsPosition, colors: TrafficLineComposableColors = TrafficLineComposableDefaults.colors(), icons: TrafficLineComposableIcons = TrafficLineComposableDefaults.icons)
Displays a vertical traffic line indicating the user's route position, traffic conditions, and traffic objects along the way.
The line width is 16.dp.
Parameters
viewModel
The state of of the TrafficLineComposable.
height
Overall height of the composable, default is 160.dp.
objectsPosition
Determines whether traffic objects appear on the left or right side of the line.
colors
Customizable colors for different parts of the traffic line UI.
icons
Container for icon references used to visualize traffic events or user position.