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, setStateContaineracceptTriggerEvent, 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, viewportChangedpublic boolean isEquivalentProps(Section other, boolean shouldCompareCommonProps)
isEquivalentProps in class Sectionpublic SingleComponentSection makeShallowCopy(boolean deepCopy)
makeShallowCopy in class SectionSection. 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)
SectionLifecycleDiffSectionSpec method annotated with OnDiffgenerateChangeSet in class SectionLifecyclepublic boolean isDiffSectionSpec()
isDiffSectionSpec in class SectionLifecycle