addChild
Adds a child.
Note: Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.
Parameters
child
The child.
Throws
If called from an AccessibilityService.
Adds a virtual child which is a descendant of the given root
. If virtualDescendantId
is NO_ID the root is added as a child.
A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.
Parameters
root
The root of the virtual subtree.
virtualDescendantId
The id of the virtual child.