public class SimpleViewModelReactor<Action,State>
extends ViewModelReactor
A simple ViewModel Reactor that can be used when there is no need for a Mutation.
Reactor.DefaultImpls| Constructor and Description |
|---|
SimpleViewModelReactor(State initialState)
A simple ViewModel Reactor that can be used when there is no need for a Mutation.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<Action> |
mutate(Action action)
Commits mutation from the Action. This is the best place to perform side-effects such as
async tasks.
|
getAction, getCurrentState, getDisposables, getInitialState, getState, onCleared, setCurrentStatecreateStateStream, getAction, getCurrentState, getDisposables, getInitialState, getState, mutate, reduce, setCurrentState, transformAction, transformMutation, transformState