Stay organized with collections
Save and categorize content based on your preferences.
AggregationExceptions
class AggregationExceptions : BaseColumns
Constants for the contact aggregation exceptions table, which contains aggregation rules overriding those used by automatic aggregation. This type only supports query and update. Neither insert nor delete are supported.
Columns
Summary
Constants |
static String |
The MIME type of a CONTENT_URI subdirectory of an aggregation exception
|
static String |
The MIME type of CONTENT_URI providing a directory of data.
|
static String |
A reference to the RawContacts._ID of the raw contact that the rule applies to.
|
static String |
A reference to the other RawContacts._ID of the raw contact that the rule applies to.
|
static String |
The type of exception: TYPE_KEEP_TOGETHER , TYPE_KEEP_SEPARATE or TYPE_AUTOMATIC .
|
static Int |
Allows the provider to automatically decide whether the specified raw contacts should be included in the same aggregate contact or not.
|
static Int |
Makes sure that the specified raw contacts are NOT included in the same aggregate contact.
|
static Int |
Makes sure that the specified raw contacts are included in the same aggregate contact.
|
Properties |
static Uri! |
The content:// style URI for this table
|
Constants
CONTENT_ITEM_TYPE
static val CONTENT_ITEM_TYPE: String
The MIME type of a CONTENT_URI
subdirectory of an aggregation exception
Value: "vnd.android.cursor.item/aggregation_exception"
CONTENT_TYPE
static val CONTENT_TYPE: String
The MIME type of CONTENT_URI
providing a directory of data.
Value: "vnd.android.cursor.dir/aggregation_exception"
static val RAW_CONTACT_ID1: String
A reference to the RawContacts._ID
of the raw contact that the rule applies to.
Value: "raw_contact_id1"
static val RAW_CONTACT_ID2: String
A reference to the other RawContacts._ID
of the raw contact that the rule applies to.
Value: "raw_contact_id2"
TYPE_AUTOMATIC
static val TYPE_AUTOMATIC: Int
Allows the provider to automatically decide whether the specified raw contacts should be included in the same aggregate contact or not.
Value: 0
TYPE_KEEP_SEPARATE
static val TYPE_KEEP_SEPARATE: Int
Makes sure that the specified raw contacts are NOT included in the same aggregate contact.
Value: 2
TYPE_KEEP_TOGETHER
static val TYPE_KEEP_TOGETHER: Int
Makes sure that the specified raw contacts are included in the same aggregate contact.
Value: 1
Properties
CONTENT_URI
static val CONTENT_URI: Uri!
The content:// style URI for this table
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ContactsContract.AggregationExceptions\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAggregationExceptions\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/ContactsContract.AggregationExceptions \"View this page in Java\") \n\n```\nclass AggregationExceptions : BaseColumns\n```\n\n|---|--------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.ContactsContract.AggregationExceptions](#) |\n\nConstants for the contact aggregation exceptions table, which contains aggregation rules overriding those used by automatic aggregation. This type only supports query and update. Neither insert nor delete are supported.\n\nColumns\n-------\n\n| AggregationExceptions ||||\n|------|---------------------------------------------------|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [TYPE](#TYPE:kotlin.String) | read/write | The type of exception: [TYPE_KEEP_TOGETHER](#TYPE_KEEP_TOGETHER:kotlin.Int), [TYPE_KEEP_SEPARATE](#TYPE_KEEP_SEPARATE:kotlin.Int) or [TYPE_AUTOMATIC](#TYPE_AUTOMATIC:kotlin.Int). |\n| long | [RAW_CONTACT_ID1](#RAW_CONTACT_ID1:kotlin.String) | read/write | A reference to the [RawContacts._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) of the raw contact that the rule applies to. |\n| long | [RAW_CONTACT_ID2](#RAW_CONTACT_ID2:kotlin.String) | read/write | A reference to the other [RawContacts._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) of the raw contact that the rule applies to. |\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_ITEM_TYPE](#CONTENT_ITEM_TYPE:kotlin.String) The MIME type of a [CONTENT_URI](#CONTENT_URI:android.net.Uri) subdirectory of an aggregation exception |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](#CONTENT_TYPE:kotlin.String) The MIME type of [CONTENT_URI](#CONTENT_URI:android.net.Uri) providing a directory of data. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [RAW_CONTACT_ID1](#RAW_CONTACT_ID1:kotlin.String) A reference to the [RawContacts._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) of the raw contact that the rule applies to. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [RAW_CONTACT_ID2](#RAW_CONTACT_ID2:kotlin.String) A reference to the other [RawContacts._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) of the raw contact that the rule applies to. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TYPE](#TYPE:kotlin.String) The type of exception: [TYPE_KEEP_TOGETHER](#TYPE_KEEP_TOGETHER:kotlin.Int), [TYPE_KEEP_SEPARATE](#TYPE_KEEP_SEPARATE:kotlin.Int) or [TYPE_AUTOMATIC](#TYPE_AUTOMATIC:kotlin.Int). |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_AUTOMATIC](#TYPE_AUTOMATIC:kotlin.Int) Allows the provider to automatically decide whether the specified raw contacts should be included in the same aggregate contact or not. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_KEEP_SEPARATE](#TYPE_KEEP_SEPARATE:kotlin.Int) Makes sure that the specified raw contacts are NOT included in the same aggregate contact. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_KEEP_TOGETHER](#TYPE_KEEP_TOGETHER:kotlin.Int) Makes sure that the specified raw contacts are included in the same aggregate contact. |\n\n| Inherited constants ||\n|---|---|\n| From class [BaseColumns](/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) The count of rows in a directory. Type: INTEGER \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) The unique ID for a row. Type: INTEGER (long) \u003cbr /\u003e | ||\n\n| Properties ||\n|---------------------------------|-------------------------------------------------------------------------------------|\n| static [Uri](../net/Uri.html#)! | [CONTENT_URI](#CONTENT_URI:android.net.Uri) The content:// style URI for this table |\n\nConstants\n---------\n\n### CONTENT_ITEM_TYPE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_ITEM_TYPE: String\n```\n\nThe MIME type of a [CONTENT_URI](#CONTENT_URI:android.net.Uri) subdirectory of an aggregation exception \n\n Value: \"vnd.android.cursor.item/aggregation_exception\"\n\n### CONTENT_TYPE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_TYPE: String\n```\n\nThe MIME type of [CONTENT_URI](#CONTENT_URI:android.net.Uri) providing a directory of data. \n\n Value: \"vnd.android.cursor.dir/aggregation_exception\"\n\n### RAW_CONTACT_ID1\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val RAW_CONTACT_ID1: String\n```\n\nA reference to the [RawContacts._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) of the raw contact that the rule applies to. \n\n Value: \"raw_contact_id1\"\n\n### RAW_CONTACT_ID2\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val RAW_CONTACT_ID2: String\n```\n\nA reference to the other [RawContacts._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) of the raw contact that the rule applies to. \n\n Value: \"raw_contact_id2\"\n\n### TYPE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE: String\n```\n\nThe type of exception: [TYPE_KEEP_TOGETHER](#TYPE_KEEP_TOGETHER:kotlin.Int), [TYPE_KEEP_SEPARATE](#TYPE_KEEP_SEPARATE:kotlin.Int) or [TYPE_AUTOMATIC](#TYPE_AUTOMATIC:kotlin.Int).\n\nType: INTEGER \n\n Value: \"type\"\n\n### TYPE_AUTOMATIC\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE_AUTOMATIC: Int\n```\n\nAllows the provider to automatically decide whether the specified raw contacts should be included in the same aggregate contact or not. \n\n Value: 0\n\n### TYPE_KEEP_SEPARATE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE_KEEP_SEPARATE: Int\n```\n\nMakes sure that the specified raw contacts are NOT included in the same aggregate contact. \n\n Value: 2\n\n### TYPE_KEEP_TOGETHER\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE_KEEP_TOGETHER: Int\n```\n\nMakes sure that the specified raw contacts are included in the same aggregate contact. \n\n Value: 1\n\nProperties\n----------\n\n### CONTENT_URI\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_URI: Uri!\n```\n\nThe content:// style URI for this table"]]