Dev Paging Source

class DevPagingSource<data : Any>(action: (Int) -> Single<List<data>>) : RxPagingSource<Int, data>

Jetpack Paging Implementation using RxJava3

Author

Jimly A.

Since

26-Jul-22

Constructors

Link copied to clipboard
fun <data : Any> DevPagingSource(action: (Int) -> Single<List<data>>)

Functions

Link copied to clipboard
open override fun getRefreshKey(state: PagingState<Int, data>): Int?
Link copied to clipboard
open override fun loadSingle(params: PagingSource.LoadParams<Int>): Single<PagingSource.LoadResult<Int, data>>

Sources

Link copied to clipboard