findAccessibilityNodeInfosByText
open fun findAccessibilityNodeInfosByText(@NonNull text: String, virtualViewId: Int): List<AccessibilityNodeInfoCompat>(source)
Finds AccessibilityNodeInfoCompats by text. The match is case insensitive containment. The search is relative to the virtual view, i.e. a descendant of the host View, with the given virtualViewId
or the host View itself virtualViewId
equals to HOST_VIEW_ID.
Return
A list of node info.
Parameters
virtualViewId
A client defined virtual view id which defined the root of the tree in which to perform the search.
text
The searched text.