Package dev.inmo.micro_utils.android.recyclerview

Types

Link copied to clipboard
abstract class AbstractStandardViewHolder<T>(    inflater: LayoutInflater,     container: ViewGroup?,     viewId: Int,     onViewInflated: (View) -> Unit? = null) : AbstractViewHolder<T>
Link copied to clipboard
abstract class AbstractViewHolder<in T>(view: View) : RecyclerView.ViewHolder
Link copied to clipboard
abstract class RecyclerViewAdapter<T> : RecyclerView.Adapter<AbstractViewHolder<T>>
Link copied to clipboard
abstract class StateFlowBasedRecyclerViewAdapter<T>(listeningScope: CoroutineScope, dataState: StateFlow<List<T>>) : RecyclerViewAdapter<T>

Functions

Link copied to clipboard
fun RecyclerView.lastVisibleItemFlow(completingScope: CoroutineScope): Flow<Int>
Link copied to clipboard
inline fun Flow<Int>.mapLeftItems(crossinline countGetter: () -> Int): Flow<Int>
Link copied to clipboard
inline fun Flow<Int>.mapRequireFilling(minimalLeftItems: Int, crossinline countGetter: () -> Int): Flow<Int>
inline fun RecyclerView.mapRequireFilling(    minimalLeftItems: Int,     completingScope: CoroutineScope,     crossinline countGetter: () -> Int): Flow<Int>
Link copied to clipboard
fun <T> RecyclerViewAdapter(data: List<T>, onCreateViewHolder: (parent: ViewGroup, viewType: Int) -> AbstractViewHolder<T>): RecyclerViewAdapter<T>

Properties

Link copied to clipboard