/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.dialog.v2.datetimepicker/TKUIDateTimePickerDialogViewModel

TKUIDateTimePickerDialogViewModel

\ class TKUIDateTimePickerDialogViewModel@Injectconstructor : ViewModel

Constructors

TKUIDateTimePickerDialogViewModel @Inject
constructor()

Properties

Name Summary
config val config: LiveData<DateTimePickerConfig>
error val error: LiveData<String?>
isOneWayOnly val isOneWayOnly: MutableLiveData<Boolean>
selectedDate val selectedDate: LiveData<Long>
showTimePicker val showTimePicker: LiveData<Boolean>
state val state: LiveData<DateTimePickerState>
time val time: LiveData<String>

Functions

Name Summary
combineDateTime fun combineDateTime(dateInMillis: Long, hour: Int, minute: Int): Calendar
setSelectedDate fun setSelectedDate(dateInMillis: Long)
setState fun setState(state: DateTimePickerState)
setTime fun setTime(time: String)
setup fun setup(config: DateTimePickerConfig)