Lingua

AccessibilityNodeInfo.RemoveLabeledBy Method

Definition

Overloads

Name Description
RemoveLabeledBy(View)

Removes a label.

RemoveLabeledBy(View, Int32)

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

RemoveLabeledBy(View)

Removes a label.

[Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;)Z", "GetRemoveLabeledBy_Landroid_view_View_Handler", ApiSince=36)]
public virtual bool RemoveLabeledBy(Android.Views.View label);
[<Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;)Z", "GetRemoveLabeledBy_Landroid_view_View_Handler", ApiSince=36)>]
abstract member RemoveLabeledBy : Android.Views.View -> bool
override this.RemoveLabeledBy : Android.Views.View -> bool

Parameters

label
View

The node which serves as this node's label.

Returns

true if the label was present

Attributes

Remarks

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

Note: Cannot be called from an AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

Android reference for android.view.accessibility.AccessibilityNodeInfo.removeLabeledBy.

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

RemoveLabeledBy(View, Int32)

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

[Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;I)Z", "GetRemoveLabeledBy_Landroid_view_View_IHandler", ApiSince=36)]
public virtual bool RemoveLabeledBy(Android.Views.View root, int virtualDescendantId);
[<Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;I)Z", "GetRemoveLabeledBy_Landroid_view_View_IHandler", ApiSince=36)>]
abstract member RemoveLabeledBy : Android.Views.View * int -> bool
override this.RemoveLabeledBy : Android.Views.View * int -> bool

Parameters

root
View

The root of the virtual subtree.

virtualDescendantId
Int32

The id of the virtual node which serves as this node's label.

Returns

true if the label was present

Attributes

Remarks

Removes a label which is a virtual descendant of the given root. If virtualDescendantId is View.NO_ID the root is set as the label. If the label was not previously added to the node, calling this method has no effect.

Android reference for android.view.accessibility.AccessibilityNodeInfo.removeLabeledBy.

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