public class StateBuilder<State>
A configuration builder for State related declarations.
| Modifier and Type | Method and Description |
|---|---|
State |
getInitial()
Mandatory initial State of the
interface Knot. |
io.reactivex.Scheduler |
getObserveOn()
An optional Scheduler used for dispatching state changes.
|
void |
intercept(kotlin.jvm.functions.Function1<? super io.reactivex.Observable<State>,? extends io.reactivex.Observable<State>> interceptor)
A function for intercepting State mutations.
|
void |
setInitial(State p)
Mandatory initial State of the
interface Knot. |
void |
setObserveOn(io.reactivex.Scheduler p)
An optional Scheduler used for dispatching state changes.
|
void |
watchAll(kotlin.jvm.functions.Function1<? super State,kotlin.Unit> watcher)
A function for watching mutations of any State.
|
public State getInitial()
Mandatory initial State of the interface Knot.
interface Knotpublic void setInitial(State p)
Mandatory initial State of the interface Knot.
interface Knotpublic io.reactivex.Scheduler getObserveOn()
An optional Scheduler used for dispatching state changes.
public void setObserveOn(io.reactivex.Scheduler p)
An optional Scheduler used for dispatching state changes.
public void intercept(kotlin.jvm.functions.Function1<? super io.reactivex.Observable<State>,? extends io.reactivex.Observable<State>> interceptor)
A function for intercepting State mutations.
public void watchAll(kotlin.jvm.functions.Function1<? super State,kotlin.Unit> watcher)
A function for watching mutations of any State.