/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.servicedetail/ServiceDetailItemViewModel
ServiceDetailItemViewModel
\ class ServiceDetailItemViewModel@Injectconstructor(val getStopTimeDisplayText: GetStopTimeDisplayText) : RxViewModel
Constructors
| ServiceDetailItemViewModel | @Inject constructor(getStopTimeDisplayText: GetStopTimeDisplayText) |
Types
| Name | Summary |
|---|---|
| LineDirection | enum LineDirection : Enum<ServiceDetailItemViewModel.LineDirection> |
Properties
| Name | Summary |
|---|---|
| getStopTimeDisplayText | val getStopTimeDisplayText: GetStopTimeDisplayText |
| lineColor | var lineColor: Int |
| lineDrawable | val lineDrawable: ObservableField<NinePatchDrawable> |
| onItemClick | val onItemClick: TapAction<ServiceStop?> |
| scheduledTime | val scheduledTime: ObservableField<String> |
| scheduledTimeTextColor | val scheduledTimeTextColor: ObservableInt |
| stop | var stop: ServiceStop? |
| stopName | val stopName: ObservableField<String> |
| stopNameColor | val stopNameColor: ObservableInt |
Functions
| Name | Summary |
|---|---|
| addCloseable | open fun addCloseable(@NonNullp0: Closeable) |
| autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
| onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
| setDrawable | fun setDrawable(context: Context, direction: ServiceDetailItemViewModel.LineDirection) |
| setStop | fun setStop(context: Context, stop: ServiceStop, _lineColor: Int, travelled: Boolean) |