public class SectionContext extends ComponentContext
Constructor and Description |
---|
SectionContext(Context context) |
SectionContext(Context context,
java.lang.String logTag,
ComponentsLogger logger) |
SectionContext(Context context,
java.lang.String logTag,
ComponentsLogger logger,
TreeProps treeProps) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGlobalKey() |
Section |
getSectionScope() |
TreeProps |
getTreeProps() |
<E> EventHandler<E> |
newEventHandler(int id,
java.lang.Object[] params) |
void |
setTreeProps(TreeProps treeProps) |
void |
updateStateAsync(StateContainer.StateUpdate stateUpdate,
java.lang.String attribution)
Notify the
SectionTree that it needs to asynchronously perform a state update. |
void |
updateStateLazy(StateContainer.StateUpdate stateUpdate) |
void |
updateStateSync(StateContainer.StateUpdate stateUpdate,
java.lang.String attribution)
Notify the
SectionTree that it needs to synchronously perform a state update. |
static SectionContext |
withScope(SectionContext context,
Section scope) |
static SectionContext |
withSectionTree(SectionContext context,
SectionTree sectionTree) |
applyLazyStateUpdatesForContainer, calculateLayoutOutputId, clearCalculationStateContext, clone, findViewWithTag, getAndroidContext, getApplicationContext, getCachedValue, getColor, getComponentScope, getErrorEventHandler, getLayoutStateContext, getLayoutStateFuture, getLayoutVersion, getLogger, getLogTag, getMainLooper, getMountContentPreallocationHandler, getParentTreeProp, getParentTreeProps, getRenderStateContext, getResourceCache, getResourceResolver, getResources, getScopedComponentInfo, getString, getString, getText, getTreeProp, getTreePropsCopy, isIncrementalMountEnabled, isParentTreePropsCloned, isReconciliationEnabled, isVisibilityProcessingEnabled, makeCopyForNestedTree, obtainStyledAttributes, putCachedValue, setLayoutStateContext, setLayoutStateContextForTesting, setParentTreeProps, setParentTreePropsCloned, setRenderStateContext, setRenderStateContextForTests, updateStateWithTransition, withComponentScope, withComponentTree
public SectionContext(Context context)
public SectionContext(Context context, java.lang.String logTag, ComponentsLogger logger)
public SectionContext(Context context, java.lang.String logTag, ComponentsLogger logger, TreeProps treeProps)
public static SectionContext withSectionTree(SectionContext context, SectionTree sectionTree)
public static SectionContext withScope(SectionContext context, Section scope)
public void updateStateSync(StateContainer.StateUpdate stateUpdate, java.lang.String attribution)
SectionTree
that it needs to synchronously perform a state update.updateStateSync
in class ComponentContext
stateUpdate
- state update to performpublic void updateStateLazy(StateContainer.StateUpdate stateUpdate)
updateStateLazy
in class ComponentContext
public void updateStateAsync(StateContainer.StateUpdate stateUpdate, java.lang.String attribution)
SectionTree
that it needs to asynchronously perform a state update.updateStateAsync
in class ComponentContext
stateUpdate
- state update to performpublic <E> EventHandler<E> newEventHandler(int id, java.lang.Object[] params)
newEventHandler
in class ComponentContext
public java.lang.String getGlobalKey()
getGlobalKey
in class ComponentContext
public Section getSectionScope()
public void setTreeProps(TreeProps treeProps)
setTreeProps
in class ComponentContext
public TreeProps getTreeProps()
getTreeProps
in class ComponentContext