onScrollStateChanged

open fun onScrollStateChanged(@NonNull recyclerView: RecyclerView, newState: Int)(source)

Callback method to be invoked when RecyclerView's scroll state changes.

Parameters

recyclerView

The RecyclerView whose scroll state has changed.

newState

The updated scroll state. One of SCROLL_STATE_IDLE, SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING.