public class SectionContext extends ComponentContext
mTreeProps
Constructor and Description |
---|
SectionContext(Context context) |
Modifier and Type | Method and Description |
---|---|
Section |
getSectionScope() |
protected TreeProps |
getTreeProps() |
protected void |
setTreeProps(TreeProps treeProps) |
void |
updateState(SectionLifecycle.StateUpdate stateUpdate)
Notify the
SectionTree that it needs to synchronously perform a state update. |
void |
updateStateAsync(SectionLifecycle.StateUpdate stateUpdate)
Notify the
SectionTree that it needs to asynchronously perform a state update. |
void |
updateStateLazy(SectionLifecycle.StateUpdate stateUpdate) |
static SectionContext |
withScope(SectionContext context,
Section scope) |
static SectionContext |
withSectionTree(SectionContext context,
SectionTree sectionTree) |
enterNoStateUpdatesMethod, exitNoStateUpdatesMethod, getComponentScope, getLogger, getLogTag, getResourceCache, obtainStyledAttributes, registerTrigger, unregisterTrigger, updateState, updateStateAsync, updateStateLazy, withComponentScope
public static SectionContext withSectionTree(SectionContext context, SectionTree sectionTree)
public static SectionContext withScope(SectionContext context, Section scope)
public void updateState(SectionLifecycle.StateUpdate stateUpdate)
SectionTree
that it needs to synchronously perform a state update.stateUpdate
- state update to performpublic void updateStateLazy(SectionLifecycle.StateUpdate stateUpdate)
public void updateStateAsync(SectionLifecycle.StateUpdate stateUpdate)
SectionTree
that it needs to asynchronously perform a state update.stateUpdate
- state update to performpublic Section getSectionScope()
protected void setTreeProps(TreeProps treeProps)
setTreeProps
in class ComponentContext
@Nullable protected TreeProps getTreeProps()
getTreeProps
in class ComponentContext