AccessibilityNodeProvider.FindAccessibilityNodeInfosByText 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;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 AccessibilityNodeInfo
s 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
.
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.