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
open class Builder
Link copied to clipboard
annotation class RenderState

Properties

Link copied to clipboard
val ACQUIRE_STATE_HANDLER_ON_RELEASE: String = "acquire_state_handler"
Link copied to clipboard
val PREVENT_RELEASE_TAG: String = "prevent_release"

Functions

Link copied to clipboard
open fun acquireStateAndReleaseTree(acquireTreeStateOnRelease: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun computeLayoutAsync(context: ComponentContext, widthSpec: Int, heightSpec: Int)
open fun computeLayoutAsync(context: ComponentContext, widthSpec: Int, heightSpec: Int, @Nullable measureListener: ComponentTree.MeasureListener)
Link copied to clipboard
open fun computeLayoutSync(context: ComponentContext, widthSpec: Int, heightSpec: Int, @Nullable size: Size)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isInserted(): Boolean
Link copied to clipboard
open fun isTreeValid(): Boolean
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
open fun setInserted(inserted: Boolean)
Set whether this ComponentTreeHolder has been inserted into the adapter.
Link copied to clipboard
open fun setRenderInfo(renderInfo: RenderInfo)
Link copied to clipboard
open fun updateLayoutHandler(@Nullable layoutHandler: RunnableHandler)