Compartir a través de


ContentResolver.QueryArgSortCollation Field

Definition

Allows client to specify a hint to the provider declaring which collation to use when sorting values.

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

Field Value

Attributes

Remarks

Allows client to specify a hint to the provider declaring which collation to use when sorting values.

Providers may support custom collators. When specifying a custom collator the value is determined by the Provider.

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

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_COLLATION.

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