Sobes.tech
Middle+

What methods should a subclass of PagingSource in the Paging 3 library override?

sobes.tech AI

Answer from AI

override suspend fun load(params: LoadParams<Key>): LoadResult<Key, Value> {
    // Data loading logic
}

override fun getRefreshKey(state: PagingState<Key, Value>): Key? {
    // Logic for obtaining the refresh key
}