AccessibilityNodeInfo.AddChild Method

Definition

Overloads

AddChild(View)

Adds a child.

AddChild(View, Int32)

Adds a virtual child which is a descendant of the given <code>root</code>.

AddChild(View)

Adds a child.

[Android.Runtime.Register("addChild", "(Landroid/view/View;)V", "GetAddChild_Landroid_view_View_Handler")]
public virtual void AddChild (Android.Views.View? child);
[<Android.Runtime.Register("addChild", "(Landroid/view/View;)V", "GetAddChild_Landroid_view_View_Handler")>]
abstract member AddChild : Android.Views.View -> unit
override this.AddChild : Android.Views.View -> unit

Parameters

child
View

The child.

Attributes

Exceptions

If called from an AccessibilityService.

Remarks

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

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

AddChild(View, Int32)

Adds a virtual child which is a descendant of the given <code>root</code>.

[Android.Runtime.Register("addChild", "(Landroid/view/View;I)V", "GetAddChild_Landroid_view_View_IHandler")]
public virtual void AddChild (Android.Views.View? root, int virtualDescendantId);
[<Android.Runtime.Register("addChild", "(Landroid/view/View;I)V", "GetAddChild_Landroid_view_View_IHandler")>]
abstract member AddChild : Android.Views.View * int -> unit
override this.AddChild : Android.Views.View * int -> unit

Parameters

root
View

The root of the virtual subtree.

virtualDescendantId
Int32

The id of the virtual child.

Attributes

Remarks

Java documentation for android.view.accessibility.AccessibilityNodeInfo.addChild(android.view.View, int).

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