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
Exposing Network Result Status in MVVM
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ValentineRutto
April 10, 2021
Programming
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Exposing Network Result Status in MVVM
Different ways to handle network result status in mvvm design achitecture
ValentineRutto
April 10, 2021
More Decks by ValentineRutto
See All by ValentineRutto
Kickstarting your tech career
valentinerutto
1
62
The D in SOLID Principles
valentinerutto
0
250
Consuming Rest Api with retrofit in Android
valentinerutto
0
260
Complex ui animation with Motion layout
valentinerutto
0
120
Tech Opportunities
valentinerutto
1
120
Network_Security_in_Android.pdf
valentinerutto
0
78
Android paging library
valentinerutto
0
290
Android Room persistence library
valentinerutto
0
180
UI/UX FOR MOBILE
valentinerutto
0
280
Other Decks in Programming
See All in Programming
FDEが実現するAI駆動経営の現在地
gonta
2
240
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
0
640
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
170
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
230
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
560
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
2.8k
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
150
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
470
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
420
5分で問診!Composer セキュリティ健康診断
codmoninc
0
730
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
210
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
190
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
440
Abbi's Birthday
coloredviolet
3
8.9k
Being A Developer After 40
akosma
91
590k
Optimizing for Happiness
mojombo
378
71k
How to Think Like a Performance Engineer
csswizardry
28
2.7k
Prompt Engineering for Job Search
mfonobong
0
390
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Visualization
eitanlees
152
17k
How to Ace a Technical Interview
jacobian
281
24k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
470
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
340
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
590
Transcript
@ValentineRutto, Android Engineer Exposing Network result state in MVVM
ValentineRutto Android Engineer-@Dlight Twitter | Linkedin | Medium | Github
| Instagram @valentinerutto
• Model - business logic • View - consists of
ui code • Viewmodel- bridge between model and view What is MVVM Architecture?
Structure? Image from blog.mindorks
• Loading • Success • Error :- Server Error, Network
Error, Unknown Error. Network Status?
• Resource Class A class that encapsulate both data and
its state • Using a network response adapter https://haroldadmin.github.io/NetworkResponseAdapter Ways to expose network Status:
Resources Guide to app architecture by developer.android.com Network Response Adapter
libray by harold
Demo Github Code https://github.com/valentineRutto/ricknmorty
Thank You Twitter | Linkedin | Medium | Github @valentinerutto