Skip to content

GitEliteNovice/RetrofitWithViewModel

Repository files navigation

RetrofitWithViewModel

How to get data from api using Retrofit through ViewModel

ViewModel

The ViewModel class is designed to store and manage UI-related data so that the data survives configuration changes such as screen rotations.

How to add viewModel

https://developer.android.com/topic/libraries/architecture/adding-components.html

Benifits

*Avoid memory leaks.

*we don't have to save objects when orentation changes.

*don't load data again and on every recreate.

*Help to minimize resources reuse.

About

How to get data from api using Retrofit through ViewModel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy