Package-level declarations
Types
Link copied to clipboard
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
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 transportPedestrian: Int, @DrawableRes val transportAeroexpress: Int, @DrawableRes val transportBus: Int, @DrawableRes val transportCableCar: Int, @DrawableRes val transportCombined: 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
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
A single contiguous part of the route.
Link copied to clipboard
A group of transports with the same schedule.
Link copied to clipboard
object ScheduleGroupingUtils
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
Transport schedule abstraction independent of Directory API.
Functions
Link copied to clipboard
fun PublicTransportBriefRouteComposable(viewModel: PublicTransportBriefRouteViewModel, icons: PublicTransportRouteComposableIcons = PublicTransportRouteComposableDefaults.icons, colors: RouteCardColors = RouteCardColors.colors())
A brief summary card for a public transport route.