/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.dialog/GenericListViewModel
GenericListViewModel
\ class GenericListViewModel@Injectconstructor : RxViewModel
Constructors
GenericListViewModel | @Inject constructor() |
Properties
Name | Summary |
---|---|
description | val description: LiveData<String> |
descriptionTitle | val descriptionTitle: LiveData<String> |
selection | val selection: LiveData<List<GenericListItem>> |
title | val title: LiveData<String> |
viewModeOnly | val viewModeOnly: LiveData<Boolean> |
Functions
Name | Summary |
---|---|
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. |
setDescription | fun setDescription(value: String) |
setDescriptionTitle | fun setDescriptionTitle(value: String) |
setListSelection | fun setListSelection(value: List<GenericListItem>) |
setSelectedItems | fun setSelectedItems(selectedValues: List<String>) |
setTitle | fun setTitle(value: String) |
setViewModeOnly | fun setViewModeOnly(value: Boolean) |