$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Exposing Network Result Status in MVVM
Search
ValentineRutto
April 10, 2021
Programming
0
82
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
48
The D in SOLID Principles
valentinerutto
0
220
Consuming Rest Api with retrofit in Android
valentinerutto
0
240
Complex ui animation with Motion layout
valentinerutto
0
99
Tech Opportunities
valentinerutto
1
99
Network_Security_in_Android.pdf
valentinerutto
0
65
Android paging library
valentinerutto
0
260
Android Room persistence library
valentinerutto
0
160
UI/UX FOR MOBILE
valentinerutto
0
260
Other Decks in Programming
See All in Programming
Python札幌 LT資料
t3tra
6
990
公共交通オープンデータ × モバイルUX 複雑な運行情報を 『直感』に変換する技術
tinykitten
PRO
0
160
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
790
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
110
Jetpack XR SDKから紐解くAndroid XR開発と技術選定のヒント / about-androidxr-and-jetpack-xr-sdk
drumath2237
1
160
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
7
2.3k
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
200
AIエージェントの設計で注意するべきポイント6選
har1101
5
1.6k
ゆくKotlin くるRust
exoego
1
130
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
240
TUIライブラリつくってみた / i-just-make-TUI-library
kazto
1
410
AIコーディングエージェント(Gemini)
kondai24
0
250
Featured
See All Featured
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
1.9k
KATA
mclloyd
PRO
33
15k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
12
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
180
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.4k
A designer walks into a library…
pauljervisheath
210
24k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
0
98
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.4k
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