setSource
Deprecated
Use setSource directly.
Sets the event source.
Parameters
The source.
Throws
If called from an AccessibilityService.
Deprecated
Use setSource instead.
Sets the source to be a virtual descendant of the given root
. If virtualDescendantId
equals to 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 them selves as a tree of virtual views, thus conveying their logical structure.
Parameters
The root of the virtual subtree.
The id of the virtual descendant.
Deprecated
Call setSource directly.
Sets the source to be a virtual descendant of the given root
. If virtualDescendantId
equals to 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 them selves as a tree of virtual views, thus conveying their logical structure.
Parameters
The AccessibilityRecord instance to use.
The root of the virtual subtree.
The id of the virtual descendant.