- Reactor<Action,Mutation,State> - Interface in at.florianschuster.androidreactor
-
A Reactor is an UI-independent layer which manages the state of a view. The foremost role of a
reactor is to separate control flow from a view. Every view has its corresponding reactor and
delegates all logic to its reactor. A reactor has no dependency to a view, so it can be easily
tested.
- Reactor.DefaultImpls - Class in at.florianschuster.androidreactor
-
A Reactor is an UI-independent layer which manages the state of a view. The foremost role of a
reactor is to separate control flow from a view. Every view has its corresponding reactor and
delegates all logic to its reactor. A reactor has no dependency to a view, so it can be easily
tested.
- ReactorExtKt - Class in at.florianschuster.androidreactor
-
- ReactorView<R extends Reactor<?,?,?>> - Interface in at.florianschuster.androidreactor
-
A ReactorView displays data. The view binds user inputs to the action stream and binds the view
states to each UI component. There's no business logic in a view layer. A view just defines how
to map the action stream and the state stream.
- reduce($this, state, mutation) - Static method in class at.florianschuster.androidreactor.Reactor.DefaultImpls
-
Generates a new state with the previous state and the action. It should be purely functional
so it should not perform any side-effects here. This method is called every time when
the mutation is committed.
- reduce(state, mutation) - Method in interface at.florianschuster.androidreactor.Reactor
-
Generates a new state with the previous state and the action. It should be purely functional
so it should not perform any side-effects here. This method is called every time when
the mutation is committed.