Android.Views.Accessibility.AccessibilityNodeInfo.AddChild Method
Adds a virtual child which is a descendant of the given root.

Syntax

[Android.Runtime.Register("addChild", "(Landroid/view/View;I)V", "GetAddChild_Landroid_view_View_IHandler")]
public virtual void AddChild (Android.Views.View root, int virtualDescendantId)

Parameters

root
The root of the virtual subtree.
virtualDescendantId
The id of the virtual child.

Remarks

Adds a virtual child which is a descendant of the given root. If virtualDescendantId is Android.Views.View.NoId the root is added as a child.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

[Android Documentation]

Requirements

Namespace: Android.Views.Accessibility
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16