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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
ValentineRutto
April 10, 2021
Programming
0
93
Exposing Network Result Status in MVVM
Different ways to handle network result status in mvvm design achitecture
ValentineRutto
April 10, 2021
Tweet
Share
More Decks by ValentineRutto
See All by ValentineRutto
Kickstarting your tech career
valentinerutto
1
51
The D in SOLID Principles
valentinerutto
0
230
Consuming Rest Api with retrofit in Android
valentinerutto
0
240
Complex ui animation with Motion layout
valentinerutto
0
110
Tech Opportunities
valentinerutto
1
100
Network_Security_in_Android.pdf
valentinerutto
0
68
Android paging library
valentinerutto
0
270
Android Room persistence library
valentinerutto
0
170
UI/UX FOR MOBILE
valentinerutto
0
270
Other Decks in Programming
See All in Programming
The free-lunch guide to idea circularity
hollycummins
0
270
Symfony + NelmioApiDocBundle を使った スキーマ駆動開発 / Schema Driven Development with NelmioApiDocBundle
okashoi
0
170
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
150
モックわからないマン卒業記 ~振る舞いを起点に見直した、フロントエンドテストにおけるモックの使いどころ~
tasukuwatanabe
3
400
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
480
SourceGeneratorのマーカー属性問題について
htkym
0
200
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
160
AI活用のコスパを最大化する方法
ochtum
0
230
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
160
Angular-Apps smarter machen mit Gen AI: Lokal und offlinefähig - Hands-on Workshop!
christianliebel
PRO
0
120
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
8.2k
AHC061解説
shun_pi
0
400
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Navigating Weather and Climate Data
rabernat
0
140
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
560
Why Our Code Smells
bkeepers
PRO
340
58k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
90
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
200
Google's AI Overviews - The New Search
badams
0
930
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
BBQ
matthewcrist
89
10k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
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