Language

AccessibilityNodeInfo.CollectionItemInfo.Builder.SetSortDirection Method

Definition

Sets the sort direction for this item.

[Android.Runtime.Register("setSortDirection", "(I)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo$Builder;", "", ApiSince=36)]
public Android.Views.Accessibility.AccessibilityNodeInfo.CollectionItemInfo.Builder SetSortDirection(int sortDirection);
[<Android.Runtime.Register("setSortDirection", "(I)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo$Builder;", "", ApiSince=36)>]
member this.SetSortDirection : int -> Android.Views.Accessibility.AccessibilityNodeInfo.CollectionItemInfo.Builder

Parameters

sortDirection
Int32

the sort direction of this collection item info. Value is one of the following: AccessibilityNodeInfo.CollectionItemInfo.SORT_DIRECTION_NONE; AccessibilityNodeInfo.CollectionItemInfo.SORT_DIRECTION_ASCENDING; AccessibilityNodeInfo.CollectionItemInfo.SORT_DIRECTION_DESCENDING; AccessibilityNodeInfo.CollectionItemInfo.SORT_DIRECTION_OTHER

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the sort direction for this item.

Valid only if AccessibilityNodeInfo.isHeading() returns true. Indicates that collection content associated with this heading is presented in the indicated sort direction. It should only be called by accessibility providers. For accessibility services, see AccessibilityNodeInfo.CollectionItemInfo.getSortDirection() to query the current state.

Android reference for android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo.Builder.setSortDirection.

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