'Android. How to use pagination with clean architecture?
I'm writing application with MVVM and clean architecture. On one of the screens I need to implement RecyclerView with pagination. I am going to use the library Paging3.
Android Developer recommends using PagingSource and RemoteMediator in repository layer. But at the same time, in many sources, I read that the data layer and the domain layer should not know anything about the android framework.
But now I have to use the android library in the data sources of my data layer. Is this correct in the context of a clean architecture?
Please help me figure it out, I don't understand how to implement pagination using clean architecture.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
