Android.Views.Accessibility.AccessibilityNodeInfo.SetParent Method
Sets the parent to be a virtual descendant of the given root.

Syntax

[Android.Runtime.Register("setParent", "(Landroid/view/View;I)V", "GetSetParent_Landroid_view_View_IHandler")]
public virtual void SetParent (Android.Views.View root, int virtualDescendantId)

Parameters

root
The root of the virtual subtree.
virtualDescendantId
The id of the virtual descendant.

Remarks

Sets the parent to be a virtual descendant of the given root. If virtualDescendantId equals to Android.Views.View.NoId the root is set as the parent.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

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

[Android Documentation]

Requirements

Namespace: Android.Views.Accessibility
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16