View.OnInitializeAccessibilityNodeInfo(AccessibilityNodeInfo) 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.
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
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.
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.