public final class CardClip extends ComponentLifecycle
CardSpec
.
com.facebook.litho.widget.CardClipSpec
Modifier and Type | Class and Description |
---|---|
static class |
CardClip.Builder |
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
protected boolean |
canPreallocate() |
static CardClip.Builder |
create(ComponentContext context) |
static CardClip.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
ComponentLifecycle.MountType |
getMountType()
This indicates the type of the
Object that will be returned by
ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object, com.facebook.litho.Component<?>) . |
boolean |
isPureRender() |
protected Object |
onCreateMountContent(ComponentContext c)
Create the object that will be mounted in the
LithoView . |
protected void |
onMount(ComponentContext c,
Object cardClipDrawable,
Component _abstractImpl)
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout . |
protected int |
poolSize() |
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canAcceptTrigger, canMeasure, canMountIncrementally, createInitialState, dispatchOnEvent, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateTransition, onLoadStyle, onMeasure, onMeasureBaseline, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onUnbind, onUnmount, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, shouldUpdate, shouldUseDisplayList, transferState
protected Object onCreateMountContent(ComponentContext c)
ComponentLifecycle
LithoView
.onCreateMountContent
in class ComponentLifecycle
c
- The ComponentContext
to be used to create the content.protected void onMount(ComponentContext c, Object cardClipDrawable, Component _abstractImpl)
ComponentLifecycle
ComponentLayout
. Return either a Drawable
or a View
or
null
to be mounted.onMount
in class ComponentLifecycle
c
- The ComponentContext
to mount the component into._abstractImpl
- The Component
for this component.public ComponentLifecycle.MountType getMountType()
ComponentLifecycle
Object
that will be returned by
ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object, com.facebook.litho.Component<?>)
.getMountType
in class ComponentLifecycle
ComponentLifecycle.MountType
protected int poolSize()
poolSize
in class ComponentLifecycle
protected boolean canPreallocate()
canPreallocate
in class ComponentLifecycle
public boolean isPureRender()
isPureRender
in class ComponentLifecycle
public static CardClip.Builder create(ComponentContext context)
public static CardClip.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)