最新消息:请大家多多支持

Local Database Cache with REST API

其他教程 dsgsd 229浏览 0评论

MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English | Duration: 32 Lessons (4h 48m) | Size: 1.11 GB

In this course you’ll learn how to build a local database cache with SQLite and Room. The cache retrieves data from a REST API using Retrofit2. Architecture is MVVM.

The app used to retrieve the data from Food2Fork.com, but that website has been shutdown. A Codingwithmitch.com community member stripped the data and published to this heroku app: recipesapi.herokuapp.com. Special thanks to Simran doing this!

Example request: http://recipesapi.herokuapp.com/api/search?q=chicken

Here’s the specifics of what you will see in the course:

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)
And much more…

Local Database Cache with REST API

Password/解压密码0daydown

Download rapidgator
https://rg.to/file/6f8179c4dd927145e4f3e7cdbab82b2f/Local_Database_Cache_with_REST_API.part1.rar.html
https://rg.to/file/cded4b1b724c71c552707ee4c044e5bd/Local_Database_Cache_with_REST_API.part2.rar.html

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » Local Database Cache with REST API

您必须 登录 才能发表评论!