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
150
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
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
KATA
mclloyd
32
14k
Designing for humans not robots
tammielis
253
25k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Code Reviewing Like a Champion
maltzj
525
40k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
20k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
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 . . .