0PricingLogin
Jetpack Compose Academy · Lesson

The Repository Pattern

Mediate between data sources cleanly.

Hide the Data Details

Your ViewModel should not know about DAOs or networks. A repository hides those details behind a clean, simple interface.

A Single Doorway to Data

The repository is the one place the rest of the app asks for data, whether it comes from Room, the network, or memory.

All lessons in this course

  1. Entities, DAOs & the Database
  2. Reactive Queries Returning Flow
  3. The Repository Pattern
  4. Offline-First Caching Strategy
← Back to Jetpack Compose Academy