@Deprecated public class ViewCompatComponent<V extends View> extends Component
ViewBinder
class to bind the view and a ViewCreator
to create the mount contents. This component will have a different recycle pool per
ViewCreator
.Modifier and Type | Class and Description |
---|---|
static class |
ViewCompatComponent.Builder<V extends View>
Deprecated.
|
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
protected boolean |
canMeasure()
Deprecated.
Whether this
ComponentLifecycle is able to measure itself according
to specific size constraints. |
ViewCompatComponent.Builder<V> |
create(ComponentContext componentContext)
Deprecated.
|
V |
createMountContent(ComponentContext c)
Deprecated.
|
static <V extends View> |
get(ViewCreator<V> viewCreator,
String componentName)
Deprecated.
|
ComponentLifecycle.MountType |
getMountType()
Deprecated.
This indicates the type of the
Object that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object) . |
String |
getSimpleName()
Deprecated.
Mostly used by logging to provide more readable messages.
|
protected void |
onMeasure(ComponentContext c,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size)
Deprecated.
|
protected void |
onPrepare(ComponentContext c)
Deprecated.
|
clearCachedLayout, copyInterStageImpl, getEventDispatcher, getId, getScopedContext, getStateContainer, isEquivalentTo, makeShallowCopy, measure, recordEventTrigger, releaseCachedLayout, setScopedContext, updateInternalChildState, willRender
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canMountIncrementally, canPreallocate, createInitialState, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEvent, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onError, onLoadStyle, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, resolve, shouldUpdate, shouldUseDisplayList, transferState
public static <V extends View> ViewCompatComponent<V> get(ViewCreator<V> viewCreator, String componentName)
public ViewCompatComponent.Builder<V> create(ComponentContext componentContext)
protected boolean canMeasure()
ComponentLifecycle
ComponentLifecycle
is able to measure itself according
to specific size constraints.canMeasure
in class ComponentLifecycle
protected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size)
onMeasure
in class ComponentLifecycle
protected void onPrepare(ComponentContext c)
onPrepare
in class ComponentLifecycle
public ComponentLifecycle.MountType getMountType()
ComponentLifecycle
Object
that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object)
.getMountType
in class ComponentLifecycle
ComponentLifecycle.MountType
public String getSimpleName()
Component
getSimpleName
in class Component
public V createMountContent(ComponentContext c)
createMountContent
in class ComponentLifecycle