mountComponent

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

component

The component builder to mount


open fun mountComponent(component: Component.Builder, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

component

The component builder to mount

incrementalMountEnabled

States whether incremental mount is enabled


open fun mountComponent(context: ComponentContext, component: Component): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

context

A components context

component

The component to mount


open fun mountComponent(context: ComponentContext, component: Component, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

context

A components context

component

The component to mount

incrementalMountEnabled

States whether incremental mount is enabled


open fun mountComponent(context: ComponentContext, component: Component, width: Int, height: Int): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

context

A components context

component

The component to mount

width

The width of the resulting view

height

The height of the resulting view


open fun mountComponent(context: ComponentContext, lithoView: LithoView, component: Component): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

context

A components context

lithoView

The view to mount the component into

component

The component to mount


open fun mountComponent(context: ComponentContext, lithoView: LithoView, component: Component, width: Int, height: Int): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

context

A components context

lithoView

The view to mount the component into

component

The component to mount

width

The width of the resulting view

height

The height of the resulting view


open fun mountComponent(context: ComponentContext, lithoView: LithoView, component: Component, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean, width: Int, height: Int): LithoView

Mount a component into a component view.

Return

A LithoView with the component mounted in it.

Parameters

context

A components context

lithoView

The view to mount the component into

component

The component to mount

incrementalMountEnabled

States whether incremental mount is enabled

width

The width of the resulting view

height

The height of the resulting view


open fun mountComponent(lithoView: LithoView, componentTree: ComponentTree): LithoView

Mount a component tree into a component view.

Return

A LithoView with the component tree mounted in it.

Parameters

lithoView

The view to mount the component tree into

componentTree

The component tree to mount


open fun mountComponent(lithoView: LithoView, componentTree: ComponentTree, component: Component): LithoView

Set a root component to a component tree, and mount it into a component view.

Return

A LithoView with the component tree mounted in it.

Parameters

lithoView

The view to mount the component tree into

componentTree

The component tree to mount

component

The root component


open fun mountComponent(lithoView: LithoView, componentTree: ComponentTree, widthSpec: Int, heightSpec: Int): LithoView

Mount a component tree into a component view.

Return

A LithoView with the component tree mounted in it.

Parameters

lithoView

The view to mount the component tree into

componentTree

The component tree to mount

widthSpec

The width spec used to measure the resulting view

heightSpec

The height spec used to measure the resulting view