Created
June 13, 2020 09:48
-
-
Save ekoo/ed5a068407944a24078c854cfffc8907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainRepository { | |
fun getMovie(): Flow<PagingData<ResponseModel.MovieModel>> { | |
val moviePagingConfig = PagingConfig(pageSize = 10) | |
val moviePagingFactory= { MoviePagingSource() } | |
return Pager(config = moviePagingConfig , pagingSourceFactory = moviePagingFactory).flow | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment