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