public class TestSizeDependentComponent extends TestComponent.TestComponentLifecycle
Modifier and Type | Class and Description |
---|---|
static class |
TestSizeDependentComponent.Builder |
static class |
TestSizeDependentComponent.State |
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Field and Description |
---|---|
static TestSizeDependentComponent |
sInstance |
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) |
static TestSizeDependentComponent |
get() |
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<?>) . |
protected ComponentLayout |
onCreateLayoutWithSizeSpec(ComponentContext c,
int widthSpec,
int heightSpec,
Component _stateObject) |
dispatchOnEvent, getDispatchedEventHandlers
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canAcceptTrigger, canMountIncrementally, canPreallocate, createInitialState, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBind, onBoundsDefined, onCreateLayout, onCreateMountContent, onCreateTransition, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, shouldUpdate, shouldUseDisplayList, transferState
public static TestSizeDependentComponent sInstance
protected ComponentLayout onCreateLayoutWithSizeSpec(ComponentContext c, int widthSpec, int heightSpec, Component _stateObject)
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, com.facebook.litho.Component<?>)
.getMountType
in class ComponentLifecycle
ComponentLifecycle.MountType
public static TestSizeDependentComponent get()
public static TestSizeDependentComponent.Builder create(ComponentContext context)