Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 749 Bytes

File metadata and controls

23 lines (16 loc) · 749 Bytes

FlowBinding RecyclerView

This module provides bindings for the AndroidX RecyclerView library.

Transitive Dependency

androidx.recyclerview:recyclerview

Download

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

Available Bindings

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>