Rxjava2 Android Samples

RxJava 2 Android Examples - How to use RxJava 2 in Android
Alternatives To Rxjava2 Android Samples
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Rxjava2 Android Samples4,977
2 months ago18apache-2.0Java
RxJava 2 Android Examples - How to use RxJava 2 in Android
Kotlin Tutorials3,711
2 years agoKotlin
【Kotlin 视频教程】国内资料较少,我录制了一套视频作为抛砖引玉~
Intro To Rxjava2,005
3 years ago24Java
An extensive tutorial on RxJava
Effective Rxjava559
6 years ago1cc-by-4.0
Effective RxJava
Avenging280
a year ago6apache-2.0Java
MVP pattern example on Android: no Dagger or RxJava example
Coroutinerecipes253
8 months ago1apache-2.0Kotlin
Playground for Kotlin Coroutines. Basics, Channels, Flows, useful examples & comparison to RxJava.
Rxkotlin Rxjava2 Android Samples66
5 years agon,ullKotlin
Learning RxKotlin2 for Android by Examples - Migration From RxKotlin1/RxJava1 to RxKotlin2/RxJava2 - How to use RxKotlin 2 in Android - RxLogin using RxBinding - Pagination using RxKotlin
Rxandroid2 Retrofit253
6 years ago1Java
Small tutorial to get started with RxAndroid 2 and Retrofit 2
Githubrxjava49
6 years ago3Java
Interacting with the GitHub API using Retrofit + RxJava
Rxjava Codelab34
3 years agoJava
Codelab project for demonstration of RxJava features
Alternatives To Rxjava2 Android Samples
Select To Compare


Alternative Project Comparisons
Readme

Learning RxJava 2 for Android by example

This project is for :

  • who is migrating to RxJava 2
  • or just started with RxJava.

About me

Hi, I am Amit Shekhar, I have mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.

You can connect with me on:

My Personal Blog - amitshekhar.me - High-quality content to learn Android concepts.

Just Build the project and start learning RxJava by examples.

RxJava 2.0 has been completely rewritten from scratch on top of the Reactive-Streams specification. The specification itself has evolved out of RxJava 1.x and provides a common baseline for reactive systems and libraries.

Using RxJava 2.0 Library in your application

Add this in your build.gradle

compile 'io.reactivex.rxjava2:rxjava:X.X.X'

If you are using RxAndroid also, then add the following

compile 'io.reactivex.rxjava2:rxandroid:X.X.X'

RxJava 2 Operators Examples present in this sample project:

  • Map -> transform the items emitted by an Observable by applying a function to each item. Blog: RxJava Operator Map vs FlatMap
  • Zip -> combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this function
  • Filter -> emit only those items from an Observable that pass a predicate test
  • FlatMap -> transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable. Blog: RxJava Operator Map vs FlatMap
  • Take -> emit only the first n items emitted by an Observable. Blog for reference
  • Reduce -> apply a function to each item emitted by an Observable, sequentially, and emit the final value
  • Skip -> suppress the first n items emitted by an Observable
  • Buffer -> periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time
  • Concat -> emit the emissions from two or more Observables without interleaving them. Blog for reference
  • Replay -> ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting items
  • Merge -> combine multiple Observables into one by merging their emissions
  • SwitchMap -> transform the items emitted by an Observable into Observables, and mirror those items emitted by the most-recently transformed Observable

Highlights of the examples :

Find this project useful ? ❤️

  • Support it by clicking the ⭐️ button on the upper right of this page. ✌️

Thanks

Amit Shekhar

You can connect with me on:

Read all of my blogs here.

License

   Copyright (C) 2022 Amit Shekhar

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to RxJava 2 Android Samples

Just make pull request. You are in!

Popular Rxjava Projects
Popular Tutorials Projects
Popular Control Flow Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Tutorial
Migration
Rxjava2
Rxjava
Observable
Rxandroid