@Deprecated public class ViewCompatComponent<V extends View> extends SpecGeneratedComponent
ViewBinder class to bind the view and a ViewCreator to create the mount contents. This component will have a different recycle pool per
ViewCreator instance.| Modifier and Type | Class and Description |
|---|---|
static class |
ViewCompatComponent.Builder<V extends View>
Deprecated.
|
SpecGeneratedComponent.TransitionContainerComponent.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMeasure()
Deprecated.
Whether this
Component is able to measure itself according to
specific size constraints. |
ViewCompatComponent.Builder<V> |
create(ComponentContext componentContext)
Deprecated.
|
static <V extends View> |
get(ViewCreator<V> viewCreator,
java.lang.String componentName)
Deprecated.
|
Component.MountType |
getMountType()
Deprecated.
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount. |
boolean |
isEquivalentProps(Component other,
boolean shouldCompareCommonProps)
Deprecated.
Determine if this component has equivalent props to a given component.
|
protected void |
onBind(ComponentContext c,
java.lang.Object mountedContent,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
|
V |
onCreateMountContent(Context c)
Deprecated.
Create the object that will be mounted in the
LithoView. |
protected void |
onMeasure(ComponentContext c,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
|
protected void |
onPrepare(ComponentContext c)
Deprecated.
|
protected void |
onUnbind(ComponentContext c,
java.lang.Object mountedContent,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
|
int |
poolSize()
Deprecated.
This API informs the framework about the size of the content pool.
|
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, canPreallocate, copyInterStageImpl, copyPrepareInterStageImpl, createContent, createInitialState, createInterStagePropsContainer, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, createStateContainer, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getSimpleNameDelegate, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isRecyclingDisabled, needsPreviousRenderData, onAttached, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasureBaseline, onMount, onUnmount, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainerclone, createMountContent, dispatchErrorEvent, dispatchOnEvent, dispatchOnEventImpl, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, isPureRender, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateTransition, onLoadStyle, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, transferState, willRenderpublic static <V extends View> ViewCompatComponent<V> get(ViewCreator<V> viewCreator, java.lang.String componentName)
public ViewCompatComponent.Builder<V> create(ComponentContext componentContext)
public boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
ComponentisEquivalentProps in class Componentother - the component to compare toprotected boolean canMeasure()
ComponentComponent is able to measure itself according to
specific size constraints.canMeasure in class Componentprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer interStagePropsContainer)
onMeasure in class SpecGeneratedComponentprotected void onPrepare(ComponentContext c)
onPrepare in class SpecGeneratedComponentprotected void onBind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onBind in class SpecGeneratedComponentprotected void onUnbind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onUnbind in class SpecGeneratedComponentpublic Component.MountType getMountType()
ComponentObject that will be returned by com.facebook.litho.Component#mount.getMountType in class ComponentComponent.MountTypepublic V onCreateMountContent(Context c)
ComponentLithoView.onCreateMountContent in class Componentc - The Context to be used to create the content.public int poolSize()
ContentAllocatorExperimental. Currently for Litho team internal use only.
poolSize in interface ContentAllocatorpoolSize in class SpecGeneratedComponent