다음을 통해 공유


View.AccessibilityDelegate.AddExtraDataToAccessibilityNodeInfo Method

Definition

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

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

Parameters

host
View
info
AccessibilityNodeInfo

The info to which to add the extra data. Never null.

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. Never null.

arguments
Bundle

A Bundle holding any arguments relevant for this request. May be null if the if the service provided no arguments.

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 the View offers to provide additional data.

The default implementation behaves as View#addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo, String, Bundle) for the case where no accessibility delegate is set. </p>

@param host The View hosting the delegate. Never {@code null.

Java documentation for android.view.View.AccessibilityDelegate.addExtraDataToAccessibilityNodeInfo(android.view.View, 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