Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Reactive Programming in Android
Search
Andromax GITS Indonesia
December 11, 2018
1
140
Reactive Programming in Android
Introduction reactive programming in Android using RxJava and RxAndroid
Andromax GITS Indonesia
December 11, 2018
Tweet
Share
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
116
7.1k
Optimising Largest Contentful Paint
csswizardry
33
3k
A Philosophy of Restraint
colly
203
16k
The Language of Interfaces
destraynor
155
24k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Making Projects Easy
brettharned
116
6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Transcript
Reactive Programming in Android By Teddy S x Irfan Irawan
S | GITS Indonesia
None
“Reactive programming is programming with asynchronous data stream” Andre Stalz
None
None
Marble Diagram
Marble Diagram
Schedulers In RxAndroid • Schedulers.io • AndroidSchedulers.mainThread • Schedulers.computation •
Schedulers.newThread • Schedulers.single • Schedulers.immediate • Schedulers.trampoline • Schedulers.from
RxJava Components 1. Observable 2. Observer 3. Subscription 4. Operator/Transformation
5. Schedulers
Observables & Observers Types • Observable • Single • Maybe
• Flowable • Completable
Operators Types 1. Observable.just() 2. Observable.from() 3. Observable.range() 4. Observable.filter()
5. Observable.map() 6. etc
Observables x Observer Types Observable Observer # of emissions Observable
Observer Multiple or None Single SingleObserver One Maybe MaybeObserver One or None Flowable Observer Multiple or None Completable CompletableObserver None
Example
References - https://www.androidhive.info/RxJava/android-getting-started-with-reactive-programmi ng/#rxjava - https://github.com/amitshekhariitbhu/RxJava2-Android-Samples - https://git.gits.id/RnD/ANDROID/app/android-gits-playground - https://riptutorial.com/Download/rx-java.pdf
Thanks, it’s time for experiments . . .