AccessibilityNodeInfo.RemoveChild Method

Definition

Overloads

RemoveChild(View)

Removes a child.

RemoveChild(View, Int32)

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

RemoveChild(View)

Removes a child.

[Android.Runtime.Register("removeChild", "(Landroid/view/View;)Z", "GetRemoveChild_Landroid_view_View_Handler")]
public virtual bool RemoveChild (Android.Views.View? child);
[<Android.Runtime.Register("removeChild", "(Landroid/view/View;)Z", "GetRemoveChild_Landroid_view_View_Handler")>]
abstract member RemoveChild : Android.Views.View -> bool
override this.RemoveChild : Android.Views.View -> bool

Parameters

child
View

The child.

Returns

true if the child was present

Attributes

Exceptions

If called from an AccessibilityService.

Remarks

Removes a child. If the child was not previously added to the node, calling this method has no effect.

<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.removeChild(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

RemoveChild(View, Int32)

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

[Android.Runtime.Register("removeChild", "(Landroid/view/View;I)Z", "GetRemoveChild_Landroid_view_View_IHandler")]
public virtual bool RemoveChild (Android.Views.View? root, int virtualDescendantId);
[<Android.Runtime.Register("removeChild", "(Landroid/view/View;I)Z", "GetRemoveChild_Landroid_view_View_IHandler")>]
abstract member RemoveChild : Android.Views.View * int -> bool
override this.RemoveChild : Android.Views.View * int -> bool

Parameters

root
View

The root of the virtual subtree.

virtualDescendantId
Int32

The id of the virtual child.

Returns

true if the child was present

Attributes

Remarks

Removes a virtual child which is a descendant of the given root. If the child was not previously added to the node, calling this method has no effect.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.removeChild(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.

See also

  • <xref:Android.Views.Accessibility.AccessibilityNodeInfo.AddChild(Android.Views.View%2c+System.Int32)>

Applies to