Let's get that page with Paging 3
summary
Demo app implements paging for TMDB popular and airing-today endpoints using Retrofit + Room, with a PagingSource for network-only flow and a RemoteMediator that writes pages and remote keys to the DB. Paging 3 runs on Kotlin coroutines/Flow, offers built-in load states with LoadStateAdapter footers, supports cachedIn for orientation, and transform operators like insertSeparators. Migration notes: backward-compatible with Paging 2, preserves retry/refresh and returns mediator result.success or result.error. Tools: Paging 3, RemoteMediator.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 3:13Why Paging 3 was created
- 5:41Paging 3 architecture overview
- 7:08Creating PagingSource class
- 9:36Setting up Pager and config
- 11:27PagingDataAdapter setup
- 12:52Handling loading states
- 13:54LoadStateAdapter for footers
- 15:21Applying data transformations
- 17:47Paging with network and database
- 20:56Migration and compatibility
- 21:39Closing and Q&A
