AccessibilityNodeProvider.FindAccessibilityNodeInfosByText Method

Definition

Finds AccessibilityNodeInfos by text.

[Android.Runtime.Register("findAccessibilityNodeInfosByText", "(Ljava/lang/String;I)Ljava/util/List;", "GetFindAccessibilityNodeInfosByText_Ljava_lang_String_IHandler")]
public virtual System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityNodeInfo>? FindAccessibilityNodeInfosByText (string? text, int virtualViewId);
[<Android.Runtime.Register("findAccessibilityNodeInfosByText", "(Ljava/lang/String;I)Ljava/util/List;", "GetFindAccessibilityNodeInfosByText_Ljava_lang_String_IHandler")>]
abstract member FindAccessibilityNodeInfosByText : string * int -> System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityNodeInfo>
override this.FindAccessibilityNodeInfosByText : string * int -> System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityNodeInfo>

Parameters

text
String

The searched text.

virtualViewId
Int32

A client defined virtual view id which defined the root of the tree in which to perform the search.

Returns

A list of node info.

Attributes

Remarks

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

Java documentation for android.view.accessibility.AccessibilityNodeProvider.findAccessibilityNodeInfosByText(java.lang.String, int).

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

See also