onScrollStateChanged
open fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int, position: Int, carouselItem: CarouselItem?)
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 {@link #SCROLL_STATE_IDLE}, {@link #SCROLL_STATE_DRAGGING} or {@link #SCROLL_STATE_SETTLING}.
position
Current item position. Check for RecyclerView.NO_POSITION.
carouselItem
Current item. It can be null.