-
-
Save MuhammadjonDeveloper/42af4b8015007c1fc74822db6758b9cf 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
recyclerView.addOnScrollListener(object : RecyclerViewPaginator(recyclerView) { | |
override val isLastPage: Boolean | |
get() = viewModel.isLastPage() | |
override fun loadMore(page: Long) { | |
viewModel.loadData(page) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment