@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.TransitionContainer
Component.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, usesLocalStateContainer
clone, 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, willRender
public 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)
Component
isEquivalentProps
in class Component
other
- the component to compare toprotected boolean canMeasure()
Component
Component
is able to measure itself according to
specific size constraints.canMeasure
in class Component
protected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer interStagePropsContainer)
onMeasure
in class SpecGeneratedComponent
protected void onPrepare(ComponentContext c)
onPrepare
in class SpecGeneratedComponent
protected void onBind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onBind
in class SpecGeneratedComponent
protected void onUnbind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onUnbind
in class SpecGeneratedComponent
public Component.MountType getMountType()
Component
Object
that will be returned by com.facebook.litho.Component#mount
.getMountType
in class Component
Component.MountType
public V onCreateMountContent(Context c)
Component
LithoView
.onCreateMountContent
in class Component
c
- The Context
to be used to create the content.public int poolSize()
ContentAllocator
Experimental. Currently for Litho team internal use only.
poolSize
in interface ContentAllocator
poolSize
in class SpecGeneratedComponent