Companion
object Companion
Properties
Functions
Link copied to clipboard
Creates a root ComponentTree hosted by activity, which is also its context.
fun create(context: Context, host: SavedStateRegistryOwner, root: Component.Builder<*>): ComponentTree.Builder
fun create(context: Context, host: SavedStateRegistryOwner, root: Component?): ComponentTree.Builder
fun create(context: ComponentContext, host: SavedStateRegistryOwner, root: Component.Builder<*>): ComponentTree.Builder
fun create(context: ComponentContext, host: SavedStateRegistryOwner, root: Component?): ComponentTree.Builder
Creates a root ComponentTree hosted by host, the Fragment or Activity that creates it.
Like create(Context, SavedStateRegistryOwner), keeping the Litho configuration and TreeProps already installed on context.
Link copied to clipboard
fun createNestedComponentTree(parentContext: ComponentContext, component: Component?): ComponentTree.Builder
Creates a ComponentTree nested inside the ComponentTree of the provided parentContext. If the parent ComponentTree is subscribed to a LithoVisibilityEventsController, the nested ComponentTree will also subscribe to a SimpleNestedTreeVisibilityEventsController hooked with the parent's visibility events controller.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard