public final class SingleComponentSection extends Section
final Section loadingSection = SingleComponentSection.create(c)
.component(MyComponent.create(c).build())
.isFullSpan(true)
.build();
com.facebook.litho.sections.common.SingleComponentSectionSpec
Modifier and Type | Class and Description |
---|---|
static class |
SingleComponentSection.Builder |
Modifier and Type | Method and Description |
---|---|
static SingleComponentSection.Builder |
create(SectionContext context) |
protected void |
generateChangeSet(SectionContext context,
ChangeSet changeSet,
SectionContext _prevScopedContext,
Section _prevAbstractImpl,
SectionContext _nextScopedContext,
Section _nextAbstractImpl)
This method will delegate to the
DiffSectionSpec method annotated with OnDiff |
boolean |
isDiffSectionSpec() |
boolean |
isEquivalentProps(Section other,
boolean shouldCompareCommonProps) |
SingleComponentSection |
makeShallowCopy(boolean deepCopy) |
createStateContainer, generateUniqueGlobalKeyForChild, getChildren, getEventDispatcher, getGlobalKey, getLogTag, getParent, getScopedContext, getSimpleName, getStateContainer, getStateContainer, isEquivalentTo, makeShallowCopy, recordEventTrigger, setChildren, setCount, setGlobalKey, setKey, setScopedContext, setStateContainer
acceptTriggerEvent, acceptTriggerEventImpl, bindService, createChildren, createInitialState, createService, dataBound, dataRendered, dispatchLoadingEvent, dispatchOnEvent, dispatchOnEventImpl, getEventTrigger, getEventTrigger, getLoadingEventHandler, getService, getTreePropsForChildren, isSectionIndexValid, newEventHandler, newEventTrigger, newEventTrigger, populateTreeProps, refresh, requestFocus, requestFocus, requestFocus, requestFocusWithOffset, requestFocusWithOffset, requestFocusWithOffset, requestSmoothFocus, requestSmoothFocus, requestSmoothFocus, shouldUpdate, transferService, transferState, unbindService, verifyChangeSet, viewportChanged
public boolean isEquivalentProps(Section other, boolean shouldCompareCommonProps)
isEquivalentProps
in class Section
public SingleComponentSection makeShallowCopy(boolean deepCopy)
makeShallowCopy
in class Section
Section
. if deepCopy is false the clone won't contain any
children or count as it will be returned in a pre - ChangeSet generation state.public static SingleComponentSection.Builder create(SectionContext context)
protected void generateChangeSet(SectionContext context, ChangeSet changeSet, SectionContext _prevScopedContext, Section _prevAbstractImpl, SectionContext _nextScopedContext, Section _nextAbstractImpl)
SectionLifecycle
DiffSectionSpec
method annotated with OnDiff
generateChangeSet
in class SectionLifecycle
public boolean isDiffSectionSpec()
isDiffSectionSpec
in class SectionLifecycle