AccessibilityNodeInfo.SetParent AccessibilityNodeInfo.SetParent Method

Definition

Overloads

SetParent(View) SetParent(View)

Sets the parent.

SetParent(View, Int32) SetParent(View, Int32)

Sets the parent to be a virtual descendant of the given root.

SetParent(View) SetParent(View)

Sets the parent.

[Android.Runtime.Register("setParent", "(Landroid/view/View;)V", "GetSetParent_Landroid_view_View_Handler")]
public virtual void SetParent (Android.Views.View parent);
abstract member SetParent : Android.Views.View -> unit
override this.SetParent : Android.Views.View -> unit

Parameters

parent
View View

The parent.

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.

SetParent(View, Int32) SetParent(View, Int32)

Sets the parent to be a virtual descendant of the given root.

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

Parameters

root
View View

The root of the virtual subtree.

virtualDescendantId
Int32 Int32

The id of the virtual descendant.

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