/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresults/TripSegmentViewModel
TripSegmentViewModel
\ class TripSegmentViewModel@Injectconstructor(context: Context, printTime: PrintTime, transportModeSharedPreference: TransportModeSharedPreference) : RxViewModel
Constructors
TripSegmentViewModel | @Inject constructor(context: Context, printTime: PrintTime, transportModeSharedPreference: TransportModeSharedPreference) |
Properties
Name | Summary |
---|---|
getTransportIconTintStrategy | @Inject lateinit var getTransportIconTintStrategy: GetTransportIconTintStrategy |
icon | val icon: ObservableField<Drawable> |
isBicycleAccessible | val isBicycleAccessible: MutableLiveData<Boolean> |
isCancelled | val isCancelled: MutableLiveData<Boolean> |
isHideExactTimes | val isHideExactTimes: MutableLiveData<Boolean> |
isRealtime | val isRealtime: MutableLiveData<Boolean> |
primaryText | val primaryText: MutableLiveData<String> |
secondaryText | val secondaryText: MutableLiveData<CharSequence> |
showPrimary | val showPrimary: MutableLiveData<Boolean> |
showSecondary | val showSecondary: MutableLiveData<Boolean> |
Functions
Name | Summary |
---|---|
autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
buildSubtitle | fun buildSubtitle(trip: Trip, segment: TripSegment) |
onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
setSegment | fun setSegment(trip: Trip, segment: TripSegment) |