/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.controller.homeviewcontroller/TKUIHomeViewControllerViewModel
TKUIHomeViewControllerViewModel
\ class TKUIHomeViewControllerViewModel@Injectconstructor(context: Context, eventBus: ViewControllerEventBus, userGeoPointRepository: UserGeoPointRepository) : RxViewModel
Constructors
| TKUIHomeViewControllerViewModel | @Inject constructor(context: Context, eventBus: ViewControllerEventBus, userGeoPointRepository: UserGeoPointRepository) |
Properties
| Name | Summary |
|---|---|
| myLocationButtonVisible | val myLocationButtonVisible: LiveData<Boolean> |
| state | val state: LiveData<TKUIHomeViewControllerUIState> |
Functions
| Name | Summary |
|---|---|
| addCloseable | open fun addCloseable(@NonNullp0: Closeable) |
| autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
| getUserGeoPoint | fun getUserGeoPoint(location: (Try<Location>) -> Unit) |
| getUserGeoPointObservable | fun getUserGeoPointObservable(): Observable<Try<Location>> |
| handleFixedSuggestionAction | fun handleFixedSuggestionAction(action: FixedSuggestions) |
| onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
| setMyLocationButtonVisible | fun setMyLocationButtonVisible(isVisible: Boolean) |
| toggleChooseOnMap | fun toggleChooseOnMap(isShow: Boolean) |