DefaultPublicTransportBriefRouteViewModel

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

Parameters

trafficRoute

The traffic route containing public transport information.

destinationTimeZone

Timezone of the destination point, used for displaying arrival time. Defaults to TimeZone.getDefault (device's current timezone). For cross-timezone routes, callers should provide the destination's timezone.

scheduleProvider

Optional provider for fetching schedule information. When provided, enables async schedule loading.

onCardClickCallback

Callback invoked when the route card is clicked.

onRouteActionClickCallback

Callback invoked when the route action button is clicked.