AccessibilityNodeInfo.SetTraversalAfter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetTraversalAfter(View, Int32) |
Sets the node after which this one is visited in accessibility traversal. |
SetTraversalAfter(View) |
Sets the view whose node is visited after this one in accessibility traversal. |
SetTraversalAfter(View, Int32)
Sets the node after which this one is visited in accessibility traversal.
[Android.Runtime.Register("setTraversalAfter", "(Landroid/view/View;I)V", "GetSetTraversalAfter_Landroid_view_View_IHandler", ApiSince=22)]
public virtual void SetTraversalAfter (Android.Views.View? root, int virtualDescendantId);
[<Android.Runtime.Register("setTraversalAfter", "(Landroid/view/View;I)V", "GetSetTraversalAfter_Landroid_view_View_IHandler", ApiSince=22)>]
abstract member SetTraversalAfter : Android.Views.View * int -> unit
override this.SetTraversalAfter : 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 after which this one is visited in accessibility traversal. A screen-reader must visit the content of the other node before the content of this one. If virtualDescendantId
equals to View#NO_ID
the root is set as the predecessor.
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.
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
SetTraversalAfter(View)
Sets the view whose node is visited after this one in accessibility traversal.
[Android.Runtime.Register("setTraversalAfter", "(Landroid/view/View;)V", "GetSetTraversalAfter_Landroid_view_View_Handler", ApiSince=22)]
public virtual void SetTraversalAfter (Android.Views.View? view);
[<Android.Runtime.Register("setTraversalAfter", "(Landroid/view/View;)V", "GetSetTraversalAfter_Landroid_view_View_Handler", ApiSince=22)>]
abstract member SetTraversalAfter : Android.Views.View -> unit
override this.SetTraversalAfter : Android.Views.View -> unit
Parameters
- view
- View
The previous view.
- Attributes
Remarks
Sets the view whose node is visited after this one in accessibility traversal. A screen-reader must visit the content of the other node before the content of this one.
<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService
. This class is made immutable before being delivered to an AccessibilityService.
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.