public static class SectionTree.Builder
extends java.lang.Object
SectionTree
.Modifier and Type | Method and Description |
---|---|
SectionTree.Builder |
asyncPropUpdates(boolean asyncPropUpdates)
If enabled, any prop updates done with setRoot will be on a background thread.
|
SectionTree.Builder |
asyncStateUpdates(boolean asyncStateUpdates)
If enabled, all state updates will be performed on a background thread.
|
SectionTree |
build() |
SectionTree.Builder |
changeSetThreadHandler(RunnableHandler changeSetThreadHandler)
An optional Handler where
ChangeSet calculation should happen. |
SectionTree.Builder |
forceSyncStateUpdates(boolean forceSyncStateUpdates)
If enabled, all state updates will be performed on the main thread.
|
SectionTree.Builder |
postToFrontOfQueueForFirstChangeset(boolean postToFrontOfQueueForFirstChangeset) |
SectionTree.Builder |
tag(java.lang.String tag)
If enabled, a tag will define the section tree being built
|
public SectionTree.Builder changeSetThreadHandler(RunnableHandler changeSetThreadHandler)
ChangeSet
calculation should happen. If not provided the
framework will use its default background thread.public SectionTree.Builder asyncStateUpdates(boolean asyncStateUpdates)
public SectionTree.Builder forceSyncStateUpdates(boolean forceSyncStateUpdates)
NB: This may come at significant performance cost.
public SectionTree.Builder asyncPropUpdates(boolean asyncPropUpdates)
public SectionTree.Builder tag(java.lang.String tag)
tag
- tag that labels the section treepublic SectionTree.Builder postToFrontOfQueueForFirstChangeset(boolean postToFrontOfQueueForFirstChangeset)
public SectionTree build()
SectionTree
.