Skip to content

robelseyoum/-REST-API-with-MVVM-and-Retrofit2

Repository files navigation

Local Database Cache with REST API with MVVM and Retrofit2

  • Caching data for when the network goes offline

  • Reading cached data when the network is down

  • Custom SQLite queries using Room

  • Customizing the cache (how long data will live in the cache)

  • How Retrofit caching works

  • Why SQLite and Room is better for caching than Retrofit

  • How to design a database cache

  • There is no "one size fits all"

  • Retrofit is better for some things but room is better for others

  • How Glide caching works

  • Glide RecyclerView Preloader (Customizing how many list items get cached)

  • Dealing with Network Errors and slow network speeds

  • OkHttp Network Timeouts

  • Converting Retrofit Calls to LiveData (Call Adapters)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages