Constructs a new WebAsyncManagerTask and sets up field observation.
Internal ID used to identify nodes in debugger views. DO NOT USE THIS ID FOR ANYTHING ELSE.
Internal object ID (not used on some platforms).
Private
asyncThe AsyncManager instance responsible for managing async commands and events.
The bound view associated with the node (if any).
Change handler for the node (not implemented).
The child nodes of this node.
Optional
commandThe async command to be processed by the manager.
Optional
controlTask control state
The HTML div element associated with the node (if applicable).
Optional
eventThe async event to be sent or received by the manager.
Indicates whether the node is focusable.
The currently focused child node (if any).
Optional
functionFunction name to execute
A record of field observers, keyed by field names.
Optional
stateCurrent state
Returns the subtype identifier for this task.
Gets the ID of the node.
Sets the ID of the node.
The new ID value.
Adds field to node
Adds multiple fields
Adds or replaces a field with the specified key and value.
The field key.
The field value.
Retrieves the bounding rectangle relative to an ancestor node.
The ancestor node.
The bounding rectangle.
Gets sub-item bounding rect relative to ancestor
Appends fields from another instance.
The instance containing fields to append.
Appends a child node to this node.
The child node to append.
true
if the child was appended successfully, otherwise false
.
Appends multiple child nodes
Gets bounding rect
Clears all fields from the node.
Clones node
Counts the number of fields in the node.
The number of fields.
Creates multiple child nodes
Deletes a field by its key.
The field key to delete.
true
if the field was deleted, otherwise false
.
Checks if a field exists by its key.
The field key to check.
true
if the field exists, otherwise false
.
Gets all child nodes
Gets all child node metadata
Retrieves the number of child nodes.
The number of child nodes.
Gets field value
Gets all fields
Gets field type
Gets all field types
Gets HTTP agent
Gets parent node
Gets root nodes
Gets root node metadata
Gets scene node
Checks if field exists
Checks if node has focus
Inserts multiple child nodes at index
Checks if node is in focus chain
Checks if nodes are same
Checks if node is subtype
Retrieves all field entries as key-value pairs.
An array of key-value pairs.
Retrieves all field keys.
An array of field keys.
Gets local bounding rect
Looks up a field by its key.
The field key to look up.
The field value, or undefined
if the field does not exist.
Looks up a field by its key, ignoring case.
The field key to look up.
The field value, or undefined
if the field does not exist.
Adds an observer to a specific field.
The name of the field to observe.
The message port or function to associate with the observer.
Optional
infoFields: string[]Optional fields to observe for additional information.
true
if the observer was added successfully, otherwise false
.
Observes field changes with scope
Optional
infoFields: string[]Handles changes to the 'control' field, starting the AsyncManager when set to run.
The ROSG node event containing the TaskControl value.
Gets parent subtype
Queues field updates
Removes child node at index
Removes multiple child nodes at index
Removes field
Removes multiple fields
Replaces multiple child nodes at index
Gets scene bounding rect
Sets field value
Sets multiple field values
Sets node focus
Sets HTTP agent
Optional
index: numberSignals beacon
Gets node subtype
Gets thread info
Stops observing field
Stops observing scoped field
Updates node fields
WebAsyncManagerTask is a specialized SGTask for managing async commands and events on the web platform.
Remarks