Package-level declarations

Types

Link copied to clipboard
data class FlingEvent(val view: RecyclerView, val velocityX: Int, val velocityY: Int)
Link copied to clipboard
data class RecyclerViewScrollEvent(val view: RecyclerView, val dx: Int, val dy: Int)

Functions

Link copied to clipboard

Create a Flow of child attach state change events on the RecyclerView instance where the value emitted is one of the 2 event types: RecyclerViewChildAttachStateChangeEvent.Attached, RecyclerViewChildAttachStateChangeEvent.Detached

Link copied to clipboard
Link copied to clipboard
fun RecyclerView.flingEvents(handled: (FlingEvent) -> Boolean = { true }): Flow<FlingEvent>

Create a Flow of fling events on the RecyclerView instance.

Link copied to clipboard

Create a Flow of scroll events on the RecyclerView instance.

Link copied to clipboard

Create a Flow of scroll state change events on the RecyclerView instance where the value emitted can be one of SCROLL_STATE_IDLE, SCROLL_STATE_DRAGGING} or SCROLL_STATE_SETTLING.