L
- public abstract class TestComponent extends Component
Component.Builder<T extends Component.Builder<T>>, Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.TransitionContainer
Modifier and Type | Field and Description |
---|---|
protected boolean |
mIsUnique |
Modifier | Constructor and Description |
---|---|
protected |
TestComponent() |
protected |
TestComponent(String simpleName) |
Modifier and Type | Method and Description |
---|---|
Object |
dispatchOnEvent(EventHandler eventHandler,
Object eventState) |
boolean |
equals(Object o) |
Set<EventHandler<?>> |
getDispatchedEventHandlers() |
Object |
getEventState(EventHandler eventHandler) |
int |
hashCode() |
boolean |
isBound() |
boolean |
isEquivalentTo(Component other)
Compares this component to a different one to check if they are the same
|
boolean |
isEquivalentToCalled() |
boolean |
isMounted() |
void |
resetInteractions()
Reset the tracking of which methods have been called on this component.
|
boolean |
wasMeasureCalled() |
boolean |
wasOnAttachedCalled() |
boolean |
wasOnBindCalled() |
boolean |
wasOnBoundsDefinedCalled() |
boolean |
wasOnDetachedCalled() |
boolean |
wasOnMountCalled() |
boolean |
wasOnUnbindCalled() |
boolean |
wasOnUnmountCalled() |
bindDynamicProp, canResolve, clearCachedLayout, copyInterStageImpl, getCommonProps, getDynamicProps, getEventDispatcher, getHandle, getId, getKey, getScopedContext, getSimpleName, getSimpleNameDelegate, getStateContainer, hasBackgroundSet, hasClickHandlerSet, makeShallowCopy, measure, measureMightNotCacheInternalNode, recordEventTrigger, registerWorkingRange, retrieveValue, setScopedContext, updateInternalChildState, willRender
acceptTriggerEvent, applyPreviousRenderData, callsShouldUpdateOnMount, canMeasure, canPreallocate, createInitialState, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getMountType, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onDetached, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onShouldCreateLayoutWithNewSizeSpec, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate, shouldUseGlobalPool, transferState
protected TestComponent(String simpleName)
protected TestComponent()
public boolean wasOnMountCalled()
public boolean isMounted()
public boolean wasOnUnmountCalled()
public boolean wasOnBoundsDefinedCalled()
public boolean wasOnBindCalled()
public boolean isBound()
public boolean wasOnUnbindCalled()
public boolean wasMeasureCalled()
public boolean wasOnAttachedCalled()
public boolean wasOnDetachedCalled()
public boolean isEquivalentTo(Component other)
Component
This 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 Component
other
- the component to compare topublic void resetInteractions()
public Object dispatchOnEvent(EventHandler eventHandler, Object eventState)
dispatchOnEvent
in interface EventDispatcher
dispatchOnEvent
in class ComponentLifecycle
public Set<EventHandler<?>> getDispatchedEventHandlers()
public Object getEventState(EventHandler eventHandler)
public boolean isEquivalentToCalled()