Skip to content

Instantly share code, notes, and snippets.

Created Jul 19, 2020
What would you like to do?
Pager Sample
fun getItems(): Flow<PagingData<MyModel>> {
return Pager(
config = PagingConfig(pageSize = 20),
pagingSourceFactory = { MyPagingSource(api = api) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment