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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ValentineRutto
April 10, 2021
Programming
97
0
Share
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
53
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
71
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
OTP を自動で入力する裏技
megabitsenmzq
0
130
ローカルで稼働するAI エージェントを超えて / beyond-local-ai-agents
gawa
1
210
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
180
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
1.2k
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.3k
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1.2k
L’IA au service des devs : Anatomie d'un assistant de Code Review
toham
0
170
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
4k
Java 21/25 Virtual Threads 소개
debop
0
310
ファインチューニングせずメインコンペを解く方法
pokutuna
0
250
Rethinking API Platform Filters
vinceamstoutz
0
4.8k
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
500
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
0
280
Color Theory Basics | Prateek | Gurzu
gurzu
0
270
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
110
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
160
Prompt Engineering for Job Search
mfonobong
0
240
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Music & Morning Musume
bryan
47
7.1k
AI: The stuff that nobody shows you
jnunemaker
PRO
4
500
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
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