Further reading
In this chapter, we briefly covered how you can integrate Jetpack Paging into an Android application. However, in the context of pagination and Jetpack Paging, there are a couple of more advanced topics that you might end up wondering about, as outlined here:
- Having both a local and remote source for paginated content—For such a case, you will need a component that manages communication between the two data sources. For this task, you could use the built-in
RemoteMediator
API of the Paging library. You can learn more about it from its official documentation at https://developer.android.com/topic/libraries/architecture/paging/v3-network-db#implement-remotemediator. - Adding support for content refresh or invalidation—If you're looking to support pull-to-refresh functionality, or you're interested in making sure that the user is returned to the appropriate page upon various system events that could restart the paginated content, you need...