AccessibilityNodeInfo.FindAccessibilityNodeInfosByText(String) Method

Definition

Finds AccessibilityNodeInfos 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 AccessibilityNodeInfos 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.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.findAccessibilityNodeInfosByText(java.lang.String).

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.

Applies to