public final class ViewPagerHelperSection<T> extends Section
com.facebook.litho.sections.widget.ViewPagerHelperSectionSpec
Modifier and Type | Class and Description |
---|---|
static class |
ViewPagerHelperSection.Builder<T> |
Modifier and Type | Method and Description |
---|---|
static <T> ViewPagerHelperSection.Builder<T> |
create(SectionContext context) |
protected Children |
createChildren(SectionContext c)
This methods will delegate to the
GroupSectionSpec method annotated with OnCreateChildren |
protected void |
createInitialState(SectionContext c) |
protected com.facebook.litho.sections.widget.ViewPagerHelperSection.ViewPagerHelperSectionStateContainer |
createStateContainer() |
protected void |
dataBound(SectionContext c)
This method will delegate to the
Section Spec method annotated with OnDataBound |
boolean |
isEquivalentTo(Section other)
Compares this section to a different one to check if they are the same
|
protected static void |
lazyUpdateCurrentPageIndex(SectionContext c,
int lazyUpdateValue) |
protected void |
transferState(StateContainer _prevStateContainer,
StateContainer _nextStateContainer)
|
protected void |
viewportChanged(SectionContext c,
int firstVisiblePosition,
int lastVisiblePosition,
int totalCount,
int firstFullyVisibleIndex,
int lastFullyVisibleIndex) |
generateUniqueGlobalKeyForChild, getChildren, getEventDispatcher, getGlobalKey, getLogTag, getParent, getScopedContext, getSimpleName, getStateContainer, getStateContainer, makeShallowCopy, makeShallowCopy, recordEventTrigger, setChildren, setCount, setGlobalKey, setKey, setScopedContext, setStateContainer
acceptTriggerEvent, acceptTriggerEventImpl, bindService, createService, dataRendered, dispatchLoadingEvent, dispatchOnEvent, dispatchOnEventImpl, generateChangeSet, getEventTrigger, getEventTrigger, getLoadingEventHandler, getService, getTreePropsForChildren, isDiffSectionSpec, isSectionIndexValid, newEventHandler, newEventHandler, newEventTrigger, newEventTrigger, populateTreeProps, refresh, requestFocus, requestFocus, requestFocus, requestFocusWithOffset, requestFocusWithOffset, requestFocusWithOffset, requestSmoothFocus, requestSmoothFocus, requestSmoothFocus, shouldUpdate, transferService, unbindService
protected com.facebook.litho.sections.widget.ViewPagerHelperSection.ViewPagerHelperSectionStateContainer createStateContainer()
createStateContainer
in class Section
public boolean isEquivalentTo(Section other)
Section
This is used to be able to skip rendering a section 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<Section>
isEquivalentTo
in class Section
other
- the component to compare topublic static <T> ViewPagerHelperSection.Builder<T> create(SectionContext context)
protected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
SectionLifecycle
transferState
in class SectionLifecycle
protected static void lazyUpdateCurrentPageIndex(SectionContext c, int lazyUpdateValue)
protected void createInitialState(SectionContext c)
createInitialState
in class SectionLifecycle
protected Children createChildren(SectionContext c)
SectionLifecycle
GroupSectionSpec
method annotated with OnCreateChildren
createChildren
in class SectionLifecycle
protected void dataBound(SectionContext c)
SectionLifecycle
Section
Spec method annotated with OnDataBound
dataBound
in class SectionLifecycle
protected void viewportChanged(SectionContext c, int firstVisiblePosition, int lastVisiblePosition, int totalCount, int firstFullyVisibleIndex, int lastFullyVisibleIndex)
viewportChanged
in class SectionLifecycle