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
ValentineRutto
April 10, 2021
Programming
0
76
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
44
The D in SOLID Principles
valentinerutto
0
220
Consuming Rest Api with retrofit in Android
valentinerutto
0
230
Complex ui animation with Motion layout
valentinerutto
0
94
Tech Opportunities
valentinerutto
1
98
Network_Security_in_Android.pdf
valentinerutto
0
57
Android paging library
valentinerutto
0
250
Android Room persistence library
valentinerutto
0
160
UI/UX FOR MOBILE
valentinerutto
0
260
Other Decks in Programming
See All in Programming
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
0
180
print("Hello, World")
eddie
1
530
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
640
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
2
470
rage against annotate_predecessor
junk0612
0
160
ソフトウェアテスト徹底指南書の紹介
goyoki
1
150
Putting The Genie in the Bottle - A Crash Course on running LLMs on Android
iurysza
0
140
RDoc meets YARD
okuramasafumi
4
170
Rancher と Terraform
fufuhu
2
240
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
510
為你自己學 Python - 冷知識篇
eddie
1
350
はじめてのMaterial3 Expressive
ym223
2
250
Featured
See All Featured
Navigating Team Friction
lara
189
15k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Become a Pro
speakerdeck
PRO
29
5.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Typedesign – Prime Four
hannesfritz
42
2.8k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
4 Signs Your Business is Dying
shpigford
184
22k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
51
5.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
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