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 observing State updates.
|
io.reactivex.Scheduler |
getWatchOn()
An optional Scheduler used for watching State updates.
|
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 observing State updates.
|
void |
setWatchOn(io.reactivex.Scheduler value)
An optional Scheduler used for watching State updates.
|
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 observing State updates.
public void setObserveOn(io.reactivex.Scheduler p)
An optional Scheduler used for observing State updates.
public io.reactivex.Scheduler getWatchOn()
An optional Scheduler used for watching State updates.
public void setWatchOn(io.reactivex.Scheduler value)
An optional Scheduler used for watching State updates.
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.