public ReactorView<R extends Reactor<?,?,?>>
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.
Reference: https://github.com/ReactorKit/ReactorKit
| Modifier and Type | Method and Description |
|---|---|
void |
bind(R reactor)
Binds a Reactor to a View. Use this in:
|
io.reactivex.disposables.CompositeDisposable |
getDisposables()
The CompositeDisposable that contains all view subscriptions.
|
R |
getReactor()
The Reactor that binds to the View.
|
io.reactivex.disposables.CompositeDisposable getDisposables()
The CompositeDisposable that contains all view subscriptions.
R getReactor()
The Reactor that binds to the View.
void bind(R reactor)
Binds a Reactor to a View. Use this in:
Activity: after setContentView(Int) in fun onCreate(Bundle)
Fragment: fun onViewCreated(View, Bundle)