public class SectionContext extends ComponentContext
mTreeProps
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(SectionLifecycle.StateUpdate stateUpdate,
String attribution)
Notify the
SectionTree that it needs to asynchronously perform a state update. |
void |
updateStateLazy(SectionLifecycle.StateUpdate stateUpdate) |
void |
updateStateSync(SectionLifecycle.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) |
getComponentScope, getLogger, getLogTag, getResourceCache, getSplitLayoutTag, getTreePropsCopy, isIncrementalMountEnabled, obtainStyledAttributes, updateStateAsync, updateStateLazy, updateStateSync, updateStateWithTransition, withComponentScope
public SectionContext(Context context)
public SectionContext(Context context, String logTag, ComponentsLogger logger)
public SectionContext(Context context, String logTag, ComponentsLogger logger, @Nullable TreeProps treeProps)
public static SectionContext withSectionTree(SectionContext context, SectionTree sectionTree)
public static SectionContext withScope(SectionContext context, Section scope)
public void updateStateSync(SectionLifecycle.StateUpdate stateUpdate, String attribution)
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, String attribution)
SectionTree
that it needs to asynchronously perform a state update.stateUpdate
- state update to performpublic <E> EventHandler<E> newEventHandler(int id, Object[] params)
newEventHandler
in class ComponentContext
public Section getSectionScope()
public void setTreeProps(TreeProps treeProps)
setTreeProps
in class ComponentContext
@Nullable protected TreeProps getTreeProps()
getTreeProps
in class ComponentContext