ContentResolver.QueryArgSortDirection Field

Definition

Specifies desired sort order.

[Android.Runtime.Register("QUERY_ARG_SORT_DIRECTION", ApiSince=26)]
public const string QueryArgSortDirection;
[<Android.Runtime.Register("QUERY_ARG_SORT_DIRECTION", ApiSince=26)>]
val mutable QueryArgSortDirection : string

Field Value

Attributes

Remarks

Specifies desired sort order. When unspecified a provider may provide a default sort direction, or choose to return unsorted results.

Apps targeting android.os.Build.VERSION_CODES#O or higher:

<li>ContentProvider implementations: When preparing data in ContentProvider#query(Uri, String[], Bundle, CancellationSignal), if sort direction is reflected in the returned Cursor, it is strongly recommended that #QUERY_ARG_SORT_DIRECTION then be included in the array of honored arguments reflected in Cursor extras Bundle under #EXTRA_HONORED_ARGS.

<li>When querying a provider, where no QUERY_ARG_SQL* otherwise exists in the arguments Bundle, the Content framework will attempt to synthesize a QUERY_ARG_SQL* argument using the corresponding QUERY_ARG_SORT* values.

Java documentation for android.content.ContentResolver.QUERY_ARG_SORT_DIRECTION.

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