次の方法で共有


AccessibilityNodeProvider.AddExtraDataToAccessibilityNodeInfo Method

Definition

Adds extra data to an AccessibilityNodeInfo based on an explicit request for the additional data.

[Android.Runtime.Register("addExtraDataToAccessibilityNodeInfo", "(ILandroid/view/accessibility/AccessibilityNodeInfo;Ljava/lang/String;Landroid/os/Bundle;)V", "GetAddExtraDataToAccessibilityNodeInfo_ILandroid_view_accessibility_AccessibilityNodeInfo_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=26)]
public virtual void AddExtraDataToAccessibilityNodeInfo (int virtualViewId, Android.Views.Accessibility.AccessibilityNodeInfo? info, string? extraDataKey, Android.OS.Bundle? arguments);
[<Android.Runtime.Register("addExtraDataToAccessibilityNodeInfo", "(ILandroid/view/accessibility/AccessibilityNodeInfo;Ljava/lang/String;Landroid/os/Bundle;)V", "GetAddExtraDataToAccessibilityNodeInfo_ILandroid_view_accessibility_AccessibilityNodeInfo_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=26)>]
abstract member AddExtraDataToAccessibilityNodeInfo : int * Android.Views.Accessibility.AccessibilityNodeInfo * string * Android.OS.Bundle -> unit
override this.AddExtraDataToAccessibilityNodeInfo : int * Android.Views.Accessibility.AccessibilityNodeInfo * string * Android.OS.Bundle -> unit

Parameters

virtualViewId
Int32

The virtual view id used to create the node

info
AccessibilityNodeInfo

The info to which to add the extra data

extraDataKey
String

A key specifying the type of extra data to add to the info. The extra data should be added to the Bundle returned by the info's AccessibilityNodeInfo#getExtras method.

arguments
Bundle

A Bundle holding any arguments relevant for this request.

Attributes

Remarks

Adds extra data to an AccessibilityNodeInfo based on an explicit request for the additional data.

This method only needs to be implemented if a virtual view offers to provide additional data.

Java documentation for android.view.accessibility.AccessibilityNodeProvider.addExtraDataToAccessibilityNodeInfo(int, android.view.accessibility.AccessibilityNodeInfo, java.lang.String, android.os.Bundle).

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