RxJava3-Android-Examples - Learn RxJava3 for Android by Examples
My Personal Blog - amitshekhar.me - High-quality content to learn Android concepts.
This project is for:
- who is migrating to RxJava 3 from RxJava 2
- who is just getting started with RxJava
Just Build the project and start learning RxJava 3 by examples.
RxJava 3 Operators Examples present in this sample project
Map
-> transform the items emitted by an Observable by applying a function to each itemZip
-> 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 testConcat
-> emit the emissions from two or more Observables without interleaving themMerge
-> combine multiple Observables into one by merging their emissionsSwitchMap
-> transform the items emitted by an Observable into Observables, and mirror those items emitted by the most-recently transformed Observabletimer
-> do something after a span of time that we specifydelay
-> shift the emissions from an Observable forward in time by a particular amountdebounce
-> only emit an item from an Observable if a particular timespan has passed without it emitting another itemdistinctUntilChanged
-> suppress duplicate items emitted by an Observable
β€οΈ by putting a β on this project βοΈ
If this project helps you in anyway, show your love You can connect with me on:
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 3 Android Examples
Just make pull request. You are in!