@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 instance.| 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.TransitionContainer| 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(Context 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). |
boolean |
isEquivalentTo(Component other)
Deprecated.
Compares this component to a different one to check if they are the same
|
protected void |
onMeasure(ComponentContext c,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size)
Deprecated.
|
protected void |
onPrepare(ComponentContext c)
Deprecated.
|
protected int |
poolSize()
Deprecated.
|
bindDynamicProp, canResolve, clearCachedLayout, copyInterStageImpl, getCommonProps, getDynamicProps, getEventDispatcher, getHandle, getId, getKey, getScopedContext, getSimpleName, getSimpleNameDelegate, getStateContainer, hasBackgroundSet, hasClickHandlerSet, makeShallowCopy, measure, measureMightNotCacheInternalNode, recordEventTrigger, registerWorkingRange, retrieveValue, setScopedContext, updateInternalChildState, willRenderacceptTriggerEvent, applyPreviousRenderData, callsShouldUpdateOnMount, canPreallocate, createInitialState, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onDetached, onError, onLoadStyle, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onShouldCreateLayoutWithNewSizeSpec, onUnbind, onUnmount, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate, shouldUseGlobalPool, transferStatepublic static <V extends View> ViewCompatComponent<V> get(ViewCreator<V> viewCreator, String componentName)
public ViewCompatComponent.Builder<V> create(ComponentContext componentContext)
public boolean isEquivalentTo(Component other)
ComponentThis is used to be able to skip rendering a component again. We avoid using the Object.equals(Object) so we can optimize the code better over time since we don't have to
adhere to the contract required for a equals method.
isEquivalentTo in interface Equivalence<Component>isEquivalentTo in class Componentother - the component to compare toprotected boolean canMeasure()
ComponentLifecycleComponentLifecycle is able to measure itself according to specific size
constraints.canMeasure in class ComponentLifecycleprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size)
onMeasure in class ComponentLifecycleprotected void onPrepare(ComponentContext c)
onPrepare in class ComponentLifecyclepublic ComponentLifecycle.MountType getMountType()
ComponentLifecycleObject that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object).getMountType in class ComponentLifecycleComponentLifecycle.MountTypepublic V createMountContent(Context c)
createMountContent in class ComponentLifecycleprotected int poolSize()
poolSize in class ComponentLifecycle