ContentResolver.QueryArgSortLocale Field

Definition

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

[Android.Runtime.Register("QUERY_ARG_SORT_LOCALE", ApiSince=30)]
public const string QueryArgSortLocale;
[<Android.Runtime.Register("QUERY_ARG_SORT_LOCALE", ApiSince=30)>]
val mutable QueryArgSortLocale : string

Field Value

Attributes

Remarks

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

The value is defined as a RFC 3066 locale ID followed by an optional keyword list, which is the locale format used to configure ICU through classes like android.icu.util.ULocale. This supports requesting advanced sorting options, such as de@collation=phonebook, zh@collation=pinyin, etc.

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

Java documentation for android.content.ContentResolver.QUERY_ARG_SORT_LOCALE.

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