Updated 5 July 2017
RxJava is a Java VM implementation of ReactiveX (Reactive Extensions): a library for composing asynchronous and event-based programs by using observable sequences.
The build blocks for RxJava code are the following:
Add dependency for Rx java in build.gradle.
Observable just produces an Observable that emits a single generic instance. For example:
Create an instance of Observer to get the data from the data source (Observable). The data source push data to onNext() method in the observer.
Once the observable instance initialised subscribe the observer.
Some advantages of RxJava are the following:
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.