FlowBinding RecyclerView

This module provides bindings for the AndroidX RecyclerView library.

Transitive Dependency

androidx.recyclerview:recyclerview

Download

1
implementation "io.github.reactivecircus.flowbinding:flowbinding-recyclerview:${flowbinding_version}"

Available Bindings

1
2
3
4
5
fun <T : RecyclerView.Adapter<out RecyclerView.ViewHolder>> T.dataChanges(emitImmediately: Boolean = false): Flow<T>
fun RecyclerView.childAttachStateChangeEvents(): Flow<RecyclerViewChildAttachStateChangeEvent>
fun RecyclerView.flingEvents(handled: (FlingEvent) -> Boolean = { true }): Flow<FlingEvent>
fun RecyclerView.scrollEvents(): Flow<RecyclerViewScrollEvent>
fun RecyclerView.scrollStateChanges(): Flow<Int>