AccessibilityNodeInfo.AddChild AccessibilityNodeInfo.AddChild Method

Definition

Overloads

AddChild(View) AddChild(View)

Adds a child.

AddChild(View, Int32) AddChild(View, Int32)

Adds a virtual child which is a descendant of the given root.

AddChild(View) 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);
abstract member AddChild : Android.Views.View -> unit
override this.AddChild : Android.Views.View -> unit

Parameters

child
View View

The child.

Exceptions

If called from an AccessibilityService.

Remarks

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.

AddChild(View, Int32) AddChild(View, Int32)

Adds a virtual child which is a descendant of the given root.

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

Parameters

root
View View

The root of the virtual subtree.

virtualDescendantId
Int32 Int32

The id of the virtual child.

Remarks

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