/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresult/TripSegmentsViewModel
TripSegmentsViewModel
\ class TripSegmentsViewModel : RxViewModel, ActionButtonContainer, ActionButtonClickListener
Types
| Name | Summary |
|---|---|
| Companion | object Companion |
Properties
Functions
| Name | Summary |
|---|---|
| addCloseable | open fun addCloseable(@NonNullp0: Closeable) |
| autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
| findSegmentPosition | fun findSegmentPosition(tripSegment: TripSegment): Int |
| generateSummaryItems | fun generateSummaryItems(segments: List<TripSegment>) |
| loadTripGroup | fun loadTripGroup(tripGroupId: String, tripId: Long, savedInstanceState: Bundle?, displayTripId: Int? = null) |
| onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
| onItemClick | open override fun onItemClick(tag: String, viewModel: ActionButtonViewModel, context: Context) |
| onStart | fun onStart() |
| onStop | fun onStop() |
| replaceTripGroup | open override fun replaceTripGroup(tripGroupUuid: String, newTripGroup: TripGroup) |
| scope | open override fun scope(): CoroutineScope |
| setActionButtonHandlerFactory | fun setActionButtonHandlerFactory(actionButtonHandlerFactory: ActionButtonHandlerFactory?, queryFromLocation: Location?, queryToLocation: Location?) |
| setInternalBus | fun setInternalBus(bus: Bus) |
| validateGetOffAlerts | fun validateGetOffAlerts() |