public final class TransparencyEnabledCardClip extends SpecGeneratedComponent
CardSpec
when transparencyEnabled(true).
com.facebook.litho.widget.TransparencyEnabledCardClipSpec
Modifier and Type | Class and Description |
---|---|
static class |
TransparencyEnabledCardClip.Builder |
SpecGeneratedComponent.TransitionContainer
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData
Modifier and Type | Method and Description |
---|---|
protected void |
bindDynamicProp(int dynamicPropIndex,
java.lang.Object value,
java.lang.Object mountedContent) |
boolean |
canPreallocate()
This API informs the framework to fill the content pool for this Mountable ahead of time.
|
static TransparencyEnabledCardClip.Builder |
create(ComponentContext context) |
static TransparencyEnabledCardClip.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected DynamicValue[] |
getDynamicProps() |
Component.MountType |
getMountType()
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount . |
boolean |
isEquivalentProps(Component other,
boolean shouldCompareCommonProps)
Determine if this component has equivalent props to a given component.
|
boolean |
isPureRender() |
protected java.lang.Object |
onCreateMountContent(Context c)
Create the object that will be mounted in the
LithoView . |
protected void |
onMount(ComponentContext c,
java.lang.Object cardClipDrawable,
InterStagePropsContainer _2)
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout . |
protected void |
onUnmount(ComponentContext c,
java.lang.Object cardClipDrawable,
InterStagePropsContainer _2)
Unload UI elements associated with this component.
|
int |
poolSize()
This API informs the framework about the size of the content pool.
|
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, 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, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasure, onMeasureBaseline, onPrepare, onUnbind, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainer
canMeasure, clone, createMountContent, dispatchErrorEvent, dispatchOnEvent, dispatchOnEventImpl, equals, excludeFromIncrementalMount, getCommonProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateTransition, onLoadStyle, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, transferState, willRender
public boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
Component
isEquivalentProps
in class Component
other
- the component to compare toprotected DynamicValue[] getDynamicProps()
getDynamicProps
in class Component
protected void bindDynamicProp(int dynamicPropIndex, java.lang.Object value, java.lang.Object mountedContent)
bindDynamicProp
in class SpecGeneratedComponent
protected java.lang.Object onCreateMountContent(Context c)
Component
LithoView
.onCreateMountContent
in class Component
c
- The Context
to be used to create the content.protected void onMount(ComponentContext c, java.lang.Object cardClipDrawable, InterStagePropsContainer _2)
SpecGeneratedComponent
ComponentLayout
. Return either a Drawable
or a View
or null
to be
mounted.onMount
in class SpecGeneratedComponent
c
- The ComponentContext
to mount the component into.protected void onUnmount(ComponentContext c, java.lang.Object cardClipDrawable, InterStagePropsContainer _2)
SpecGeneratedComponent
onUnmount
in class SpecGeneratedComponent
c
- The Context
for this mount operation.cardClipDrawable
- The Drawable
or View
mounted by this component.public Component.MountType getMountType()
Component
Object
that will be returned by com.facebook.litho.Component#mount
.getMountType
in class Component
Component.MountType
public int poolSize()
ContentAllocator
Experimental. Currently for Litho team internal use only.
poolSize
in interface ContentAllocator
poolSize
in class SpecGeneratedComponent
public boolean canPreallocate()
ContentAllocator
false
, i.e. content is not pre-allocated. Pre-allocation of the
content can improve performance in some circumstances where creating the content is expensive.canPreallocate
in interface ContentAllocator
canPreallocate
in class SpecGeneratedComponent
public boolean isPureRender()
isPureRender
in class Component
public static TransparencyEnabledCardClip.Builder create(ComponentContext context)
public static TransparencyEnabledCardClip.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)