Please enable JavaScript.
Coggle requires JavaScript to display documents.
RX Java - Coggle Diagram
RX Java
Observable
It emits data
It can do data transformations :pencil2:
Filter data :funeral_urn:
It has ability to have concurrent api request :spider_web:
Data manipuations can be dione using operators
Flatmap
map
filter
just
zip
Things must for writting rx java
Observer
Observable
Operator
Subscription
Schedulers
Steps for writting rx code
Create yoor observer object from observer class
OnNext
OnCompete
OnError
:arrow_backward:Observer
OnSubscribe
Create Observable
Operators :warning:
Zip
map
flatmap
filter
just
Have static class Observer and call any operator :arrow_backward: Observer Object
make observer to subscribe for observable
observable object
:heavy_plus_sign: .observeOn(Schedulers.io())
rx java builder
:heavy_plus_sign: .subscribeOn(AndroidSchedulers.mainThread())
:heavy_plus_sign: .subscribe(animalsObserver);
Observer
Listens for data from observer