public class TestSizeDependentComponent extends Component
Modifier and Type | Class and Description |
---|---|
static class |
TestSizeDependentComponent.Builder |
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
protected boolean |
canMeasure()
Whether this
ComponentLifecycle is able to measure itself according
to specific size constraints. |
static TestSizeDependentComponent.Builder |
create(ComponentContext context) |
boolean |
equals(Object other) |
ComponentLifecycle.MountType |
getMountType()
This indicates the type of the
Object that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object) . |
String |
getSimpleName()
Mostly used by logging to provide more readable messages.
|
protected Component |
onCreateLayoutWithSizeSpec(ComponentContext c,
int widthSpec,
int heightSpec) |
clearCachedLayout, copyInterStageImpl, getEventDispatcher, getId, getScopedContext, getStateContainer, isEquivalentTo, makeShallowCopy, measure, recordEventTrigger, releaseCachedLayout, setScopedContext, updateInternalChildState, willRender
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canMountIncrementally, canPreallocate, createInitialState, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEvent, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBind, onBoundsDefined, onCreateLayout, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, resolve, shouldUpdate, shouldUseDisplayList, transferState
protected Component onCreateLayoutWithSizeSpec(ComponentContext c, int widthSpec, int heightSpec)
onCreateLayoutWithSizeSpec
in class ComponentLifecycle
protected boolean canMeasure()
ComponentLifecycle
ComponentLifecycle
is able to measure itself according
to specific size constraints.canMeasure
in class ComponentLifecycle
public ComponentLifecycle.MountType getMountType()
ComponentLifecycle
Object
that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object)
.getMountType
in class ComponentLifecycle
ComponentLifecycle.MountType
public static TestSizeDependentComponent.Builder create(ComponentContext context)
public String getSimpleName()
Component
getSimpleName
in class Component