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
60
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
36
The D in SOLID Principles
valentinerutto
0
210
Consuming Rest Api with retrofit in Android
valentinerutto
0
210
Complex ui animation with Motion layout
valentinerutto
0
87
Tech Opportunities
valentinerutto
1
90
Network_Security_in_Android.pdf
valentinerutto
0
48
Android paging library
valentinerutto
0
250
Android Room persistence library
valentinerutto
0
150
UI/UX FOR MOBILE
valentinerutto
0
250
Other Decks in Programming
See All in Programming
GitHub CopilotでTypeScriptの コード生成するワザップ
starfish719
26
6k
Оптимизируем производительность блока Казначейство
lamodatech
0
960
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
300
Rubyでつくるパケットキャプチャツール
ydah
0
170
return文におけるstd::moveについて
onihusube
1
1.4k
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
190
DMMオンラインサロンアプリのSwift化
hayatan
0
190
歴史と現在から考えるスケーラブルなソフトウェア開発のプラクティス
i10416
0
300
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
630
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
250
functionalなアプローチで動的要素を排除する
ryopeko
1
220
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
For a Future-Friendly Web
brad_frost
176
9.5k
Building an army of robots
kneath
302
45k
Visualization
eitanlees
146
15k
Site-Speed That Sticks
csswizardry
3
270
VelocityConf: Rendering Performance Case Studies
addyosmani
327
24k
Code Review Best Practice
trishagee
65
17k
Mobile First: as difficult as doing things right
swwweet
222
9k
We Have a Design System, Now What?
morganepeng
51
7.3k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
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