PublicTransportRouteContent

Interface defining all customizable composable parts of the public transport route card.

Allows users to customize individual parts by providing custom implementations for specific ones (e.g., custom colors, icons, or completely replacing the part).

Use DefaultPublicTransportRouteContent for default implementations, or create a custom implementation using Kotlin delegation to override only specific components:

object MyPublicTransportRouteContent : PublicTransportRouteContent by DefaultPublicTransportRouteContent {
@Composable
override fun GoButton(
viewModel: PublicTransportRouteViewModel,
icons: PublicTransportRouteComposableIcons,
colors: RouteCardColors,
) {
// Custom "Go" button implementation
}
}

Inheritors

Functions

Link copied to clipboard

Renders the departure section showing the starting point of the route, including the place name, address, and departure time.

Link copied to clipboard

Renders the destination section showing the final stop of the route, including the stop name, address, and estimated arrival time.

Link copied to clipboard

Renders the action button area containing the primary "Go" button to start navigation along the selected public transport route, and an optional pedestrian navigation button.

Link copied to clipboard

Renders the header section of the public transport route card, displaying summary information such as total travel duration and fare.

Link copied to clipboard

Renders the list of route segments representing the complete journey, including walking legs, public transport legs, and transfer points.