Companion

object Companion

Properties

Link copied to clipboard

When true, prints verbose tree lifecycle events to logcat under the ComponentTreeDebug tag.

Link copied to clipboard
const val INVALID_ID: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Creates a root ComponentTree hosted by activity, which is also its context.


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

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.