15

Architecture Patterns

This chapter will introduce you to architectural patterns you can use for your Android projects. It covers using the Model-View-ViewModel (MVVM) pattern, adding ViewModels, and using data binding. You will also learn about using the Repository pattern for caching data and WorkManager for scheduling data retrieval and storage.

By the end of the chapter, you will be able to structure your Android project using MVVM and data binding. You will also be able to use the Repository pattern with the Room library to cache data and WorkManager to fetch and save data at a scheduled interval.

In the previous chapter, you learned about using Coroutines and Flow for background operations and data manipulation. Now, you will learn about ...

Get How to Build Android Apps with Kotlin - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.