DefaultRouteEditorContent

Default implementation of RouteEditorContent using default colors and styles.

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

object MyRouteEditorContent : RouteEditorContent by DefaultRouteEditorContent {
@Composable
override fun RouteCard(
routeUiInfo: RouteUiInfo,
isExpanded: Boolean,
colors: RouteEditorComposableColors,
textStyles: RouteEditorTextStyles,
onCardClick: () -> Unit,
onActionButtonClick: () -> Unit,
) {
// Custom route card implementation
}
}

Functions

Link copied to clipboard
open override fun NoRoutesCard(onActionButtonClick: () -> Unit, colors: RouteEditorComposableColors)

Renders a card displayed when no routes are available.

Link copied to clipboard

Renders a brief public transport route card.

Link copied to clipboard
open override fun RouteCard(routeUiInfo: RouteUiInfo, isExpanded: Boolean, colors: RouteEditorComposableColors, textStyles: RouteEditorTextStyles, onCardClick: () -> Unit, onActionButtonClick: () -> Unit)

Renders a route card displaying route information.

Link copied to clipboard
open override fun RoutePointsDisplay(startPointTitle: String, destinationPointTitle: String, colors: RouteEditorComposableColors, textStyles: RouteEditorTextStyles, intermediatePoints: List<UiIntermediateRoutePoint>, onSwapDestinationsClick: () -> Unit, onCloseButtonClick: () -> Unit, onIntermediatePointsChanged: (List<UiIntermediateRoutePoint>) -> Unit)

Renders the route points display showing start, destination, and intermediate points.

Link copied to clipboard
open override fun TransportationModesRow(selectedMode: TransportMode, onModeSelected: (TransportMode) -> Unit, durations: Map<TransportMode, Duration?>, allowedTransportTypes: EnumSet<TransportMode>, modifier: Modifier, colors: RouteEditorComposableColors, textStyles: RouteEditorTextStyles)

Renders the transportation modes row for selecting transport type.