次の方法で共有


View.OnInitializeAccessibilityNodeInfo(AccessibilityNodeInfo) Method

Definition

Initializes an AccessibilityNodeInfo with information about this view.

[Android.Runtime.Register("onInitializeAccessibilityNodeInfo", "(Landroid/view/accessibility/AccessibilityNodeInfo;)V", "GetOnInitializeAccessibilityNodeInfo_Landroid_view_accessibility_AccessibilityNodeInfo_Handler")]
public virtual void OnInitializeAccessibilityNodeInfo (Android.Views.Accessibility.AccessibilityNodeInfo? info);
[<Android.Runtime.Register("onInitializeAccessibilityNodeInfo", "(Landroid/view/accessibility/AccessibilityNodeInfo;)V", "GetOnInitializeAccessibilityNodeInfo_Landroid_view_accessibility_AccessibilityNodeInfo_Handler")>]
abstract member OnInitializeAccessibilityNodeInfo : Android.Views.Accessibility.AccessibilityNodeInfo -> unit
override this.OnInitializeAccessibilityNodeInfo : Android.Views.Accessibility.AccessibilityNodeInfo -> unit

Parameters

info
AccessibilityNodeInfo

The instance to initialize.

Attributes

Remarks

Initializes an AccessibilityNodeInfo with information about this view. The base implementation sets: <ul> <li>AccessibilityNodeInfo#setParent(View),</li> <li>AccessibilityNodeInfo#setBoundsInParent(Rect),</li> <li>AccessibilityNodeInfo#setBoundsInScreen(Rect),</li> <li>AccessibilityNodeInfo#setPackageName(CharSequence),</li> <li>AccessibilityNodeInfo#setClassName(CharSequence),</li> <li>AccessibilityNodeInfo#setContentDescription(CharSequence),</li> <li>AccessibilityNodeInfo#setEnabled(boolean),</li> <li>AccessibilityNodeInfo#setClickable(boolean),</li> <li>AccessibilityNodeInfo#setFocusable(boolean),</li> <li>AccessibilityNodeInfo#setFocused(boolean),</li> <li>AccessibilityNodeInfo#setLongClickable(boolean),</li> <li>AccessibilityNodeInfo#setSelected(boolean),</li> <li>AccessibilityNodeInfo#setContextClickable(boolean)</li> </ul>

Subclasses should override this method, call the super implementation, and set additional attributes.

If an AccessibilityDelegate has been specified via calling #setAccessibilityDelegate(AccessibilityDelegate) its AccessibilityDelegate#onInitializeAccessibilityNodeInfo(View, AccessibilityNodeInfo) is responsible for handling this call.

Java documentation for android.view.View.onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo).

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