Recently I started working in Kotlin. I am playing around the Paging Library using BoundaryCallback mechanism. It is working nice when there is no failure in API call but in case of failure there is no way to retry the server call. onItemAtEndLoaded()
never call again.
I've tried all hands including solutions given on different portals. Here below is the PageConfig settings that I am currently using.
val pagedConfig = PagedList.Config.Builder()
.setPageSize(DATABASE_PAGE_SIZE)
.setPrefetchDistance(0)
.setEnablePlaceholders(true)
.build()
I have also tried with ' setEnablePlacehoder
' true and false both but no luck. Please help me out if anybody has good experience with paging library.