/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.controller.routeviewcontroller/TKUIRouteViewModel

TKUIRouteViewModel

\ class TKUIRouteViewModel : RxViewModel

Constructors

TKUIRouteViewModel constructor()

Types

Name Summary
FocusedField enum FocusedField : Enum<TKUIRouteViewModel.FocusedField>

Properties

Name Summary
destination val destination: MutableLiveData<String>
destinationLocation var destinationLocation: Location?
focusedField var focusedField: TKUIRouteViewModel.FocusedField
start val start: MutableLiveData<String>
startLocation var startLocation: Location?
swap var swap: PublishRelay<Unit>

Functions

Name Summary
autoClear fun <T> Observable<T>.autoClear(): Observable<T>
fun Disposable.autoClear()
bothLocationsAreValid fun bothLocationsAreValid(): Boolean
onCleared open override fun onCleared()
This method will be called when this ViewModel is no longer used and will be destroyed.
setDestination fun setDestination(value: String)
setStart fun setStart(value: String)
swap fun swap()
swapLocations fun swapLocations()