Package 

Class BaseRxViewModel

  • All Implemented Interfaces:
    androidx.lifecycle.DefaultLifecycleObserver , androidx.lifecycle.LifecycleObserver , app.futured.arkitekt.rxusecases.disposables.CompletableDisposablesOwner , app.futured.arkitekt.rxusecases.disposables.DisposablesOwner , app.futured.arkitekt.rxusecases.disposables.FlowableDisposablesOwner , app.futured.arkitekt.rxusecases.disposables.MaybeDisposablesOwner , app.futured.arkitekt.rxusecases.disposables.ObservableDisposablesOwner , app.futured.arkitekt.rxusecases.disposables.SingleDisposablesOwner

    
    public abstract class BaseRxViewModel<S extends ViewState>
    extends BaseViewModel<S> implements DisposablesOwner
                        

    Base ViewModel class prepared for providing data to UI through LiveData and obtaining data from Stores (Repositories) by executing RxJava based use cases eg. ObservableUseCase.

    • Method Summary

      Modifier and Type Method Description
      CompositeDisposable getDisposables() CompositeDisposable of all recently executed use cases which is cleared when ViewModel is no longer used and will be destroyed.
      final SavedStateHandle getInternalSavedStateHandle()
      final Unit setInternalSavedStateHandle(SavedStateHandle internalSavedStateHandle)
      final SavedStateHandle getRequireSavedStateHandle()
      abstract S getViewState()
      • Methods inherited from class app.futured.arkitekt.core.BaseViewModel

        addCloseable, clear, getTag, onCreate, onDestroy, onPause, onResume, onStop, setTagIfAbsent
      • Methods inherited from class app.futured.arkitekt.rxusecases.BaseRxViewModel

        observeEvent, observeWithoutOwner, observeWithoutOwner, observeWithoutOwner, onStart, onStart, sendEvent
      • Methods inherited from class app.futured.arkitekt.rxusecases.disposables.DisposablesOwner

        execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeStream, executeStream, executeStream, executeStream, executeStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait