The combination of LiveData, LiveData Transformations, and Interfaces, allows you to abstract your Realm domain model and database in a way that was not previously possible. This lesson will teach you how to use LiveData with Transformations and Realm effectively, so that you can abstract your Realm data models entirely from your Activities and Fragments.
Summary of Content (what you will learn):
- How to expose
LiveData<List<? extends Model>>from your DAOs, where
- A Read Only view of your data.
- Database Agnostic - No ties to Realm or your underlying data model entities.
- An interface that can easily be mocked for testing.