AccessibilityNodeInfo.SetTraversalBefore Method

Definition

Overloads

SetTraversalBefore(View)

Sets the view before whose node this one should be visited during traversal.

SetTraversalBefore(View, Int32)

Sets the node before which this one is visited during traversal.

SetTraversalBefore(View)

Sets the view before whose node this one should be visited during traversal.

[Android.Runtime.Register("setTraversalBefore", "(Landroid/view/View;)V", "GetSetTraversalBefore_Landroid_view_View_Handler", ApiSince=22)]
public virtual void SetTraversalBefore (Android.Views.View? view);
[<Android.Runtime.Register("setTraversalBefore", "(Landroid/view/View;)V", "GetSetTraversalBefore_Landroid_view_View_Handler", ApiSince=22)>]
abstract member SetTraversalBefore : Android.Views.View -> unit
override this.SetTraversalBefore : Android.Views.View -> unit

Parameters

view
View

The view providing the preceding node.

Attributes

Remarks

Sets the view before whose node this one should be visited during traversal. A screen-reader must visit the content of this node before the content of the one it precedes.

<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.setTraversalBefore(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

SetTraversalBefore(View, Int32)

Sets the node before which this one is visited during traversal.

[Android.Runtime.Register("setTraversalBefore", "(Landroid/view/View;I)V", "GetSetTraversalBefore_Landroid_view_View_IHandler", ApiSince=22)]
public virtual void SetTraversalBefore (Android.Views.View? root, int virtualDescendantId);
[<Android.Runtime.Register("setTraversalBefore", "(Landroid/view/View;I)V", "GetSetTraversalBefore_Landroid_view_View_IHandler", ApiSince=22)>]
abstract member SetTraversalBefore : Android.Views.View * int -> unit
override this.SetTraversalBefore : Android.Views.View * int -> unit

Parameters

root
View

The root of the virtual subtree.

virtualDescendantId
Int32

The id of the virtual descendant.

Attributes

Remarks

Sets the node before which this one is visited during traversal. A screen-reader must visit the content of this node before the content of the one it precedes. The successor is a virtual descendant of the given root. If virtualDescendantId equals to View#NO_ID the root is set as the successor.

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.

<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.setTraversalBefore(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.

Applies to