Add this in your build.gradle
compile 'io.reactivex.rxjava2:rxjava:2.1.3'
Don't forget to add RxAndroid also
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
I'm also using Retrofit, so add the following
compile 'com.squareup.retrofit2:retrofit:2.3.0'
Interval
—> create an Observable that emits a sequence of integers spaced by a particular time intervalMap
-> transform the items emitted by an Observable by applying a function to each itemFlatMap
-> transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single ObservableConcat
-> emit the emissions from two or more Observables without interleaving themZip
-> combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this functionFilter
-> emit only those items from an Observable that pass a predicate testTake
-> emit only the first n items emitted by an ObservableReduce
-> apply a function to each item emitted by an Observable, sequentially, and emit the final valueSkip
-> suppress the first n items emitted by an ObservableBuffer
-> periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a timeReplay
-> ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting itemsMerge
-> combine multiple Observables into one by merging their emissions
- RxConcatActivity -> Use
Concat
operator combined withRetrofit2
- RxDisposableActivity -> Use
CompositeDisposable
- RxFlatMapActivity -> Use
FlatMap
operator andFrom
operator - RxMapActivity -> Use
Map
operator - RxFlowableActivity -> Use
Flowable
operator