public class SectionContext extends ComponentContext
NULL_LAYOUT| Constructor and Description |
|---|
SectionContext(Context context) |
SectionContext(Context context,
String logTag,
ComponentsLogger logger) |
SectionContext(Context context,
String logTag,
ComponentsLogger logger,
TreeProps treeProps) |
| Modifier and Type | Method and Description |
|---|---|
Section |
getSectionScope() |
protected TreeProps |
getTreeProps() |
<E> EventHandler<E> |
newEventHandler(int id,
Object[] params) |
void |
setTreeProps(TreeProps treeProps) |
void |
updateStateAsync(StateContainer.StateUpdate stateUpdate,
String attribution)
Notify the
SectionTree that it needs to asynchronously perform a state update. |
void |
updateStateLazy(StateContainer.StateUpdate stateUpdate) |
void |
updateStateSync(StateContainer.StateUpdate stateUpdate,
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, getAndroidContext, getApplicationContext, getCachedValue, getColor, getComponentScope, getLayoutStateFuture, getLayoutVersion, getLogger, getLogTag, getMainLooper, getRecyclingMode, getResourceCache, getResourceResolver, getResources, getString, getString, getText, getTreeProp, getTreePropsCopy, isIncrementalMountEnabled, isParentTreePropsCloned, isReconciliationEnabled, isVisibilityProcessingEnabled, obtainStyledAttributes, putCachedValue, setLayoutStateContextForTesting, setParentTreePropsCloned, updateHookStateAsync, updateStateWithTransition, withComponentScope, withComponentTreepublic SectionContext(Context context)
public SectionContext(Context context,
String logTag,
ComponentsLogger logger)
public SectionContext(Context context,
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, String attribution)
SectionTree that it needs to synchronously perform a state update.updateStateSync in class ComponentContextstateUpdate - state update to performpublic void updateStateLazy(StateContainer.StateUpdate stateUpdate)
updateStateLazy in class ComponentContextpublic void updateStateAsync(StateContainer.StateUpdate stateUpdate, String attribution)
SectionTree that it needs to asynchronously perform a state update.updateStateAsync in class ComponentContextstateUpdate - state update to performpublic <E> EventHandler<E> newEventHandler(int id, Object[] params)
newEventHandler in class ComponentContextpublic Section getSectionScope()
public void setTreeProps(TreeProps treeProps)
setTreeProps in class ComponentContextprotected TreeProps getTreeProps()
getTreeProps in class ComponentContext