Questions tagged [android-paging-3]

The Paging library helps you load and display pages of data from a larger dataset from local storage or over network.The latest stable release is Paging 3.0.1

324 questions
3
votes
1 answer

Manually refresh paging data in jetpack compose

I'm using paging-compose library to load paginated data from server using remote mediator (backed by local room database). Is there any way to manually refresh mediator data in case of swipe to refresh?
3
votes
0 answers

Paginate ROOM entity with one to many relation (@Embedded and @Relation)

I have a one to many relation of two entities. Is there a way to paginate ROOM database response using jetpacks Paging 3 library. Dao's return type would be PagingSource> data class TaskWithAttachmets( @Embedded …
lmiskovic
  • 109
  • 1
  • 10
3
votes
1 answer

Android: NetworkBoundRsource vs RemoteMediator

What are the differences between NetworkBoundResource and RemoteMediator (Paging 3)?
Smirky
  • 187
  • 2
  • 9
3
votes
1 answer

How to filter data Paging 3 Android?

I would like to filter data from the current response in Paging 3 using PagingRx. I have tried as mention in Paging Documentation Used Libraries def paging_version = "3.0.1" //Paging implementation…
3
votes
1 answer

How to use PagingSource and Room with fields annotated by Embedded

I want to use Paging 3 Library for pagination with db as SSO and I have some data classes which use Embedded annotation (one to many, relation) sample ↓ data class PojoEmbended( @Embedded var messageEntity: MessageEntity, @Relation( …
3
votes
0 answers

Facebook Shimmer library with Paging 3 library

In my app I load data from API which is using paginating so I have to use paging 3 library and I use facebook shimmer library to show shimmer effect when items are being loaded but the problem is always shimmer effect is shown even when items are…
amir215909
  • 139
  • 8
3
votes
0 answers

Migrate from android paging library 2 to paging 3

I am building chat app where i am using Room,ViewModel,PagedListAdapter and it's works perfectly but now i want to upgrade my app to Paging Library 3 which caused real pain. I tried to follow official guide of Android but still not able to migrate…
Ritu
  • 518
  • 2
  • 12
  • 35
3
votes
1 answer

Extract Throwable from LoadResult.Error of PagingSource

My PagingSource load some data. Documentation recomended catch exceptions like this, for some processing LoadResult.Error in future. override suspend fun load(params: LoadParams): LoadResult { return try { …
iddqdpwn
  • 222
  • 2
  • 8
3
votes
3 answers

Using recyclerview selection with paging 3

I'm trying to use Selection ( https://developer.android.com/reference/androidx/recyclerview/selection/package-summary ) with the new paging library ( so paging 3 ) With Paging 2 that was doable because we were using PagedListAdapter and that was…
3
votes
0 answers

Android - PagingDataAdapter collapse/expand

I'm facing a problem in my app, this is requirement: Display a long list, load from large database. Data in each item is combined from many tables, many queries. → So, I think I can use Paging 3, to increase performance and observe for data…
PhongBM
  • 799
  • 10
  • 23
3
votes
2 answers

getting runtime error when updating paging library from 3.0.0-alpha10 to 3.0.0-alpha12

i created my pagingSource class with paging 3.0.0-alpha10 and it worked but when i changed the version to 3.0.0-alpha12, i got this error this is the runtime exception: java.lang.AbstractMethodError: abstract method "java.lang.Object…
nima
  • 55
  • 1
  • 9
3
votes
0 answers

Paging 3 - Does Room drop pages even if maxSize is MAX_SIZE_UNBOUNDED?

I'm using Paging 3 with Room and RemoteMediator. I haven't set a maxSize in the PagingConfig which means that we shouldn't drop pages no matter how far we scroll. fun getSearchResults(query: String): Flow> = Pager( …
3
votes
1 answer

Android: Paging3 create remotemediator with cloud-firestore

I am trying to create a RemoteMediator with Paging3, where I cache my local results in order to save network traffic, cloud-firestore document access and to count the amount of items per query, to show placeholders. I've already successfully…
3
votes
1 answer

Android Paging 3 library - for paging data from Room database, flow becomes empty on data change

I am trying to use android Paging 3 (version 3.0.0-SNAPSHOT) for paging data from Room database(no remote data source). Initially the page loads data successfully , but when a new "Entry" is added to database and I return to this page,collectLatest…
Nabzi
  • 1,823
  • 1
  • 16
  • 26
2
votes
0 answers

Paging 3 doesn't request more data on scroll

I'm using Paging 3 for the first time in a project and I'm not getting new pages appended after page 2. I'm using the TMDB API discover endpoint to get a list of movies and request more on scroll as expected. Using Retrofit for network, Gson for…
Judah
  • 31
  • 4