Created
August 2, 2021 22:51
-
-
Save SamueldaCostaAraujoNunes/815f11d1575f32913761043a581ec895 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fun getCharacters(query: String): Flow<PagingData<java.lang.Character>> = Pager( | |
config = PagingConfig( | |
pageSize = 20, | |
enablePlaceholders = false | |
), | |
pagingSourceFactory = { dao.getPagingSource("%$query%") }, | |
remoteMediator = CharacterRemoteMediador(query, dao, service) | |
).flow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment