OnScrollListener

abstract class OnScrollListener(source)

An OnScrollListener can be added to a RecyclerView to receive messages when a scrolling event has occurred on that RecyclerView.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onScrolled(@NonNull recyclerView: RecyclerView, dx: Int, dy: Int)
Callback method to be invoked when the RecyclerView has been scrolled.
Link copied to clipboard
open fun onScrollStateChanged(@NonNull recyclerView: RecyclerView, newState: Int)
Callback method to be invoked when RecyclerView's scroll state changes.