setSource
Sets the source.
Parameters
The info source.
Sets the source to be a virtual descendant of the given root
. If virtualDescendantId
is NO_ID the root is set as the source.
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 themselves as a tree of virtual views, thus conveying their logical structure.
Note: Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.
This method is not supported on devices running API level <16 since the platform did not support virtual descendants of real views.
Parameters
The root of the virtual subtree.
The id of the virtual descendant.