VerseRecycledViewPool

An enhanced RecyclerView.RecycledViewPool that supports global sharing and idempotent capacity configuration.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun clear()
Link copied to clipboard
fun getPoolSize(viewType: Int): Int

Returns the configured max size for a view type.

Link copied to clipboard
Link copied to clipboard
open fun getRecycledViewCount(viewType: Int): Int
Link copied to clipboard
Link copied to clipboard
fun setMaxPoolSize(modelClass: Class<*>, size: Int)

Configures the maximum number of view holders to keep in the pool for a specific model class.

Link copied to clipboard
open fun setMaxRecycledViews(viewType: Int, max: Int)
Link copied to clipboard
fun setPoolSize(viewType: Int, size: Int)

Internal helper to set pool size by view type. This operation is thread-safe and idempotent.