2021年4月10日星期六

Is there a way to implement a cursor based pagination with Paging Library 3.0 in Android?

I am consuming a rest API that uses cursor based pagination to show some results. I am wondering if I can use Paging Library 3.0 to paginate it. I have been looking through some mediums and docs and can't seem to find a way to implement it. If any of you has come around any solution, I would be so happy to hear from it!

The api response pagination looks like this:

"paging": {      "previous": false,      "next": "https://api.acelerala.com/v1/orders/?store_id=4&after=xyz",      "cursors": {          "before": false,          "after": "xyz"      }  }  
https://stackoverflow.com/questions/66979100/is-there-a-way-to-implement-a-cursor-based-pagination-with-paging-library-3-0-in April 07, 2021 at 11:16AM

没有评论:

发表评论