ContentResolver.QueryArgGroupColumns Field
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.
Specifies the list of columns (stored as a String[]
) against
which to group results.
[Android.Runtime.Register("QUERY_ARG_GROUP_COLUMNS", ApiSince=30)]
public const string QueryArgGroupColumns;
[<Android.Runtime.Register("QUERY_ARG_GROUP_COLUMNS", ApiSince=30)>]
val mutable QueryArgGroupColumns : string
Field Value
- Attributes
Remarks
Specifies the list of columns (stored as a String[]
) against which to group results. When column values are identical, multiple records are collapsed together into a single record.
Columns present in this list must also be included in the projection supplied to ContentResolver#query(Uri, String[], Bundle, CancellationSignal)
.
Apps targeting android.os.Build.VERSION_CODES#R
or higher: <li>ContentProvider
implementations: When preparing data in ContentProvider#query(Uri, String[], Bundle, CancellationSignal)
, if group columns is reflected in the returned Cursor, it is strongly recommended that #QUERY_ARG_SORT_COLUMNS
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 an QUERY_ARG_SQL* argument using the corresponding QUERY_ARG_SORT* values.
Java documentation for android.content.ContentResolver.QUERY_ARG_GROUP_COLUMNS
.
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.