Compartir a través de


AccessibilityNodeInfo.ViewIdResourceName Property

Definition

Gets the fully qualified resource name of the source view's id. -or- Sets the fully qualified resource name of the source view's id.

public virtual string? ViewIdResourceName { [Android.Runtime.Register("getViewIdResourceName", "()Ljava/lang/String;", "GetGetViewIdResourceNameHandler")] get; [Android.Runtime.Register("setViewIdResourceName", "(Ljava/lang/String;)V", "GetSetViewIdResourceName_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getViewIdResourceName", "()Ljava/lang/String;", "GetGetViewIdResourceNameHandler")>]
[<set: Android.Runtime.Register("setViewIdResourceName", "(Ljava/lang/String;)V", "GetSetViewIdResourceName_Ljava_lang_String_Handler")>]
member this.ViewIdResourceName : string with get, set

Property Value

The id resource name.

Attributes

Remarks

Property getter documentation:

Gets the fully qualified resource name of the source view's id.

<strong>Note:</strong> The primary usage of this API is for UI test automation and in order to report the source view id of an AccessibilityNodeInfo the client has to set the AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS flag when configuring the android.accessibilityservice.AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.getViewIdResourceName().

Property setter documentation:

Sets the fully qualified resource name of the source view's id.

<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.setViewIdResourceName(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