ComponentTreeHolder

@ThreadSafe
open class ComponentTreeHolder

A class used to store the data backing a RecyclerBinder. For each item the ComponentTreeHolder keeps the RenderInfo which contains the original Component and either the ComponentTree or the TreeState depending upon whether the item is within the current working range or not.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion
Link copied to clipboard
annotation class RenderState

Properties

Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun checkWorkingRangeAndDispatch(position: Int, firstVisibleIndex: Int, lastVisibleIndex: Int, firstFullyVisibleIndex: Int, lastFullyVisibleIndex: Int)
Link copied to clipboard
open fun computeLayoutAsync(context: ComponentContext, widthSpec: Int, heightSpec: Int, measureListener: ComponentTree.MeasureListener? = null)
Link copied to clipboard
open fun computeLayoutSync(context: ComponentContext, widthSpec: Int, heightSpec: Int, size: Size?)
Link copied to clipboard
Link copied to clipboard
open fun isTreeValidForSizeSpecs(widthSpec: Int, heightSpec: Int): Boolean
Link copied to clipboard
Link copied to clipboard

We may need to wait until the corresponding view is detached before releasing the tree as the view might need to run an animation

Link copied to clipboard
fun setPoolScope(poolScope: PoolScope)
Link copied to clipboard
Link copied to clipboard
open fun updateLayoutHandler(layoutHandler: RunnableHandler?)