Package-level declarations

Types

class DefaultPublicTransportBriefRouteViewModel(trafficRoute: TrafficRoute, val destinationTimeZone: TimeZone = TimeZone.getDefault(), scheduleProvider: PublicTransportScheduleProvider? = null, onCardClickCallback: () -> Unit = {}, onRouteActionClickCallback: () -> Unit = {}) : PublicTransportBriefRouteViewModel

Default implementation of PublicTransportBriefRouteViewModel.

Link copied to clipboard

Default implementation of PublicTransportRouteContent that renders each part of the public transport route card using the built-in SDK composables.

Link copied to clipboard
data class DepartureInfo(val placeName: String, val address: String?, val departureTime: TimePoint?, val timeZone: TimeZone = TimeZone.getDefault())

Holds information about the starting point of the route.

Link copied to clipboard
data class DestinationInfo(val stopName: String, val address: String, val arrivalTime: TimePoint, val timeZone: TimeZone = TimeZone.getDefault())

Holds information about the final destination of the route.

Link copied to clipboard
data class FareInfo(val value: Int, val currency: Currency)

Represents fare information with amount and currency for locale-aware formatting.

Link copied to clipboard

ViewModel for a route summary.

Link copied to clipboard

Default configuration values for the public transport route composable.

Link copied to clipboard
data class PublicTransportRouteComposableIcons(@DrawableRes val arrivalArrow: Int, @DrawableRes val backArrow: Int, @DrawableRes val chevron: Int, @DrawableRes val departurePoint: Int, @DrawableRes val walkingSegment: Int, @DrawableRes val walkingTransfer: Int, @DrawableRes val destinationPoint: Int, @DrawableRes val transportPedestrian: Int, @DrawableRes val transportAeroexpress: Int, @DrawableRes val transportBus: Int, @DrawableRes val transportCableCar: Int, @DrawableRes val transportFunicularRailway: Int, @DrawableRes val transportLightMetro: Int, @DrawableRes val transportLightRail: Int, @DrawableRes val transportMcc: Int, @DrawableRes val transportMcd: Int, @DrawableRes val transportMetro: Int, @DrawableRes val transportMonorail: Int, @DrawableRes val transportPremetro: Int, @DrawableRes val transportShuttleBus: Int, @DrawableRes val transportSuburbanTrain: Int, @DrawableRes val transportTram: Int, @DrawableRes val transportTrolleybus: Int, @DrawableRes val transportWaterway: Int)

Icon resource identifiers for the public transport route composable.

Link copied to clipboard

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

Link copied to clipboard

Provides all necessary data and actions for rendering and controlling the public transport route card in the RouteEditor.

Link copied to clipboard

Public transport schedule provider.

Link copied to clipboard
data class RouteSchedule(val schedule: TransportSchedule, val nextDepartures: List<TransportSchedule> = emptyList())

Schedule for a route.

Link copied to clipboard
sealed interface RouteSegment

A single contiguous part of the route.

Link copied to clipboard
data class ScheduleGroup(val transports: List<TransportInfo>)

A group of transports with the same schedule.

Link copied to clipboard

Utility object for grouping public transport schedules.

Link copied to clipboard
data class TransportInfo(val type: PublicTransportType, val name: String, val color: Color, val schedule: TransportSchedule, val nextDepartures: List<TransportSchedule> = emptyList())

Represents transportation information for a specific segment of a route. Contains details about a particular transport line operating within a route fragment.

Link copied to clipboard
sealed interface TransportSchedule

Transport schedule abstraction independent of Directory API.

Functions

Link copied to clipboard
fun PublicTransportBriefRouteComposable(viewModel: PublicTransportBriefRouteViewModel, modifier: Modifier = Modifier, icons: PublicTransportRouteComposableIcons = PublicTransportRouteComposableDefaults.icons, colors: RouteCardColors = RouteCardColors.colors())

A brief summary card for a public transport route.

Link copied to clipboard
fun PublicTransportRouteComposable(viewModel: PublicTransportRouteViewModel, content: PublicTransportRouteContent = DefaultPublicTransportRouteContent, icons: PublicTransportRouteComposableIcons = PublicTransportRouteComposableDefaults.icons, colors: RouteCardColors = RouteCardColors.colors())