Builder

open class Builder

A builder class that can be used to create a ComponentTree.

Functions

Link copied to clipboard
open fun build(): ComponentTree
Builds a ComponentTree using the parameters specified in this builder.
Link copied to clipboard
Configures the tree with the specified configuration.
Link copied to clipboard
Link copied to clipboard
open fun layoutThreadHandler(handler: RunnableHandler): ComponentTree.Builder
Specify the looper to use for running layouts on.
Link copied to clipboard
Specify the looper to use for running layouts on.
Link copied to clipboard
Link copied to clipboard
open fun overrideComponentTreeId(overrideComponentTreeId: Int): ComponentTree.Builder
Gives the ability to override the auto-generated ComponentTree id: this is generally not useful in the majority of circumstances, so don't use it unless you really know what you're doing.
Link copied to clipboard
open fun overrideRenderUnitIdMap(renderUnitIdGenerator: RenderUnitIdGenerator, overrideComponentTreeId: Int): ComponentTree.Builder
This should not be used in majority of cases.
Link copied to clipboard
Link copied to clipboard
Specify an initial tree state object that the ComponentTree can use to set the current values for states.
Link copied to clipboard
open fun visibilityBoundsTransformer(@Nullable transformer: VisibilityBoundsTransformer): ComponentTree.Builder
Link copied to clipboard
Specify root for the component tree IMPORTANT: If you do not set this, a default root will be set and you can reset root after build and attach of the component tree