/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresults.actionbutton

Package-level declarations

Types

Name Summary
ActionButton data class ActionButton(val text: String, val tag: String, @DrawableResval icon: Int, val isPrimary: Boolean, val useIconTint: Boolean = true)
ActionButtonContainer interface ActionButtonContainer
ActionButtonHandler open class ActionButtonHandler
Trip results will display individual action buttons for different segments, for example, "View timetable" for public transit results, or "Ride motorbike" for motorbike results. You can customize the provided text and functionality that the action button provides by inheriting from this class, creating a ViewModelProvider.Factory to create it, and providing the factory to the TripResultListFragment builder.
ActionButtonHandlerFactory interface ActionButtonHandlerFactory