Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Exposing Network Result Status in MVVM
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ValentineRutto
April 10, 2021
Programming
130
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
74
The D in SOLID Principles
valentinerutto
0
260
Consuming Rest Api with retrofit in Android
valentinerutto
0
270
Complex ui animation with Motion layout
valentinerutto
0
140
Tech Opportunities
valentinerutto
1
120
Network_Security_in_Android.pdf
valentinerutto
0
84
Android paging library
valentinerutto
0
300
Android Room persistence library
valentinerutto
0
200
UI/UX FOR MOBILE
valentinerutto
0
290
Other Decks in Programming
See All in Programming
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
300
AI-Powered Domain-Driven Design
ziobrando
0
220
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
100
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
190
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
890
最近”作らせてる” ローカルAIアプリの話
akit37
0
490
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
410
contenteditable と日本語入力に向き合う
colorful12
0
210
R8 の設定見直しでアプリサイズ削減
andpad
0
220
golang-bob.pdf
iwatsukayura
0
130
Next.js: The final boss of Web Performance
guaca
0
310
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
Featured
See All Featured
The Language of Interfaces
destraynor
162
27k
Claude Code のすすめ
schroneko
67
230k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Paper Plane
katiecoart
PRO
5
54k
HDC tutorial
michielstock
2
970
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
870
The World Runs on Bad Software
bkeepers
PRO
72
12k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
New Earth Scene 8
popppiees
4
2.7k
Believing is Seeing
oripsolob
1
250
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