AccessibilityNodeInfo.FindAccessibilityNodeInfosByText(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds AccessibilityNodeInfo
s by text.
[Android.Runtime.Register("findAccessibilityNodeInfosByText", "(Ljava/lang/String;)Ljava/util/List;", "GetFindAccessibilityNodeInfosByText_Ljava_lang_String_Handler")]
public virtual System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityNodeInfo>? FindAccessibilityNodeInfosByText (string? text);
[<Android.Runtime.Register("findAccessibilityNodeInfosByText", "(Ljava/lang/String;)Ljava/util/List;", "GetFindAccessibilityNodeInfosByText_Ljava_lang_String_Handler")>]
abstract member FindAccessibilityNodeInfosByText : string -> System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityNodeInfo>
override this.FindAccessibilityNodeInfosByText : string -> System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityNodeInfo>
Parameters
- text
- String
The searched text.
Returns
A list of node info.
- Attributes
Remarks
Finds AccessibilityNodeInfo
s by text. The match is case insensitive containment. The search is relative to this info i.e. this info is the root of the traversed tree.
<strong>Note:</strong> If this view hierarchy has a SurfaceView
embedding another view hierarchy via SurfaceView#setChildSurfacePackage
, there is a limitation that this API won't be able to find the node for the view on the embedded view hierarchy. It's because views don't know about the embedded hierarchies. Instead, you could traverse all the children to find the node.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.