In this course, we will learn how to fetch data from a REST API using Retrofit, and how to cache this data for offline use in an SQLite database using the Room persistence library. For this, we will use a NetworkBoundResource implementation based on Kotlin Coroutines and Kotlin Flow.
In this course, we will learn how to fetch data from a REST API using Retrofit, and how to cache this data for offline use in an SQLite database using the Room persistence library. For this, we will use a NetworkBoundResource implementation based on Kotlin Coroutines and Kotlin Flow. The app will follow a simple MVVM architecture with dependency injection, single source of truth principle, and separation of concerns.
In this part, I'll give an overview of the project we will build.
Get the starting code for this project here: https://github.com/codinginflow/SimpleCachingExample
Request a free quote for custom web and mobile apps development, Enterprise solutions, IoT Solutions, AR/VR Development, Blockchain and chatbot services. Feel free to get in touch.
AppClues Infotech is a top Mobile App Development Company in USA building high-quality Android, iOS, and Native apps for Startups, SMBs, & Enterprises. Contact us now!
AppClues Infotech is a top Mobile App Development Company in USA building high-quality Android, iOS, and Native apps for Startups, SMBs, & Enterprises. Contact us now!
AppClues Infotech is a top Mobile App Development Company in USA building high-quality Android, iOS, and Native apps for Startups, SMBs, & Enterprises. Contact us now!
This blog provides quick analysis to decide whether to opt for Kotlin or React Native to build robust and secure mobile application.