/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresult/TripResultPagerViewModel

TripResultPagerViewModel

\ class TripResultPagerViewModel : RxViewModel

Properties

Name Summary
currentPage val currentPage: ObservableInt
currentTrip var currentTrip: MutableLiveData<Trip?>
currentTripGroupId val currentTripGroupId: AtomicReference<String?>
defaultTrip var defaultTrip: Trip?
fetchingRealtimeStatus val fetchingRealtimeStatus: ObservableBoolean
isLoading val isLoading: ObservableField<Boolean>
selectedTripGroup val selectedTripGroup: Observable<TripGroup>
tripGroupsBinding val tripGroupsBinding: ObservableField<List<TripGroup>>
tripSource val tripSource: BehaviorRelay<TripSource>

Functions

Name Summary
autoClear fun <T> Observable<T>.autoClear(): Observable<T>
fun Disposable.autoClear()
getCurrentDisplayTrip fun getCurrentDisplayTrip(): Observable<Trip>
getSortedTripGroups fun getSortedTripGroups(args: PagerFragmentArguments, initialList: List<TripGroup>): Observable<Unit>
loadFetchingRealtimeStatus fun loadFetchingRealtimeStatus(): Observable<Boolean>
observeInitialPage fun observeInitialPage(): Observable<Unit>
observeTripGroups fun observeTripGroups(): Observable<List<TripGroup>>
onCleared open override fun onCleared()
This method will be called when this ViewModel is no longer used and will be destroyed.
onCreate fun onCreate(savedInstanceState: Bundle?)
onSavedInstanceState fun onSavedInstanceState(outState: Bundle)
onStart fun onStart()
onStop fun onStop()
setInitialSelectedTripGroupId fun setInitialSelectedTripGroupId(tripGroupId: String)
trackViewingTrip fun trackViewingTrip(): Observable<Unit>
updateSelectedTripGroup fun updateSelectedTripGroup(): Observable<TripGroup>
updateTripGroupResult fun updateTripGroupResult(tripGroup: List<TripGroup>)