UsersPageSource

class UsersPageSource(search: String?, apiService: UsersApiService) : PagingSource<Int, UserModel>

Paging list without room cache PagingSource

Author

Vitaliy Zarubin

See also

Parameters

search

string query to back-end

apiService

query service module

Constructors

UsersPageSource
Link copied to clipboard
fun UsersPageSource(search: String?, apiService: UsersApiService)

Functions

getRefreshKey
Link copied to clipboard
open override fun getRefreshKey(state: PagingState<Int, UserModel>): Int
load
Link copied to clipboard
open suspend override fun load(params: PagingSource.LoadParams<Int>): PagingSource.LoadResult<Int, UserModel>

Properties

apiService
Link copied to clipboard
private val apiService: UsersApiService
search
Link copied to clipboard
private val search: String?