Stay organized with collections
Save and categorize content based on your preferences.
SyncColumns
protected interface SyncColumns : ContactsContract.BaseSyncColumns
Columns that appear when each row of a table belongs to a specific account, including sync information that an account may need.
Summary
Constants |
static String |
The name of the account instance to which this row belongs, which when paired with ACCOUNT_TYPE identifies a specific account.
|
static String |
The type of account to which this row belongs, which when paired with ACCOUNT_NAME identifies a specific account.
|
static String |
Flag indicating that VERSION has changed, and this row needs to be synchronized by its owning account.
|
static String |
String that uniquely identifies this row to its source account.
|
static String |
Version number that is updated whenever this row or its related data changes.
|
Constants
ACCOUNT_NAME
static val ACCOUNT_NAME: String
The name of the account instance to which this row belongs, which when paired with ACCOUNT_TYPE
identifies a specific account.
Type: TEXT
Value: "account_name"
ACCOUNT_TYPE
static val ACCOUNT_TYPE: String
The type of account to which this row belongs, which when paired with ACCOUNT_NAME
identifies a specific account.
Type: TEXT
Value: "account_type"
DIRTY
static val DIRTY: String
Flag indicating that VERSION
has changed, and this row needs to be synchronized by its owning account.
Type: INTEGER (boolean)
Value: "dirty"
SOURCE_ID
static val SOURCE_ID: String
String that uniquely identifies this row to its source account.
Type: TEXT
Value: "sourceid"
VERSION
static val VERSION: String
Version number that is updated whenever this row or its related data changes.
Type: INTEGER
Value: "version"
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.SyncColumns\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSyncColumns\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/ContactsContract.SyncColumns \"View this page in Java\") \n\n```\nprotected interface SyncColumns : ContactsContract.BaseSyncColumns\n```\n\n|----------------------------------------------------|\n| [android.provider.ContactsContract.SyncColumns](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ContactsContract.Contacts.Entity](/reference/kotlin/android/provider/ContactsContract.Contacts.Entity), [ContactsContract.Groups](/reference/kotlin/android/provider/ContactsContract.Groups), [ContactsContract.RawContacts](/reference/kotlin/android/provider/ContactsContract.RawContacts) |---------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ContactsContract.Contacts.Entity](/reference/kotlin/android/provider/ContactsContract.Contacts.Entity) | A sub-directory of a contact that contains all of its [ContactsContract.RawContacts](/reference/kotlin/android/provider/ContactsContract.RawContacts) as well as [ContactsContract.Data](/reference/kotlin/android/provider/ContactsContract.Data) rows. | | [ContactsContract.Groups](/reference/kotlin/android/provider/ContactsContract.Groups) | Constants for the groups table. | | [ContactsContract.RawContacts](/reference/kotlin/android/provider/ContactsContract.RawContacts) | Constants for the raw contacts table, which contains one row of contact information for each person in each synced account. | |\n\nColumns that appear when each row of a table belongs to a specific account, including sync information that an account may need.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_NAME](#ACCOUNT_NAME:kotlin.String) The name of the account instance to which this row belongs, which when paired with [ACCOUNT_TYPE](#ACCOUNT_TYPE:kotlin.String) identifies a specific account. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](#ACCOUNT_TYPE:kotlin.String) The type of account to which this row belongs, which when paired with [ACCOUNT_NAME](#ACCOUNT_NAME:kotlin.String) identifies a specific account. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DIRTY](#DIRTY:kotlin.String) Flag indicating that [VERSION](#VERSION:kotlin.String) has changed, and this row needs to be synchronized by its owning account. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SOURCE_ID](#SOURCE_ID:kotlin.String) String that uniquely identifies this row to its source account. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VERSION](#VERSION:kotlin.String) Version number that is updated whenever this row or its related data changes. |\n\n| Inherited constants ||\n|---|---|\n| From class [BaseSyncColumns](/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC1](/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC1:kotlin.String) Generic column for use by sync adapters. \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC2](/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC2:kotlin.String) Generic column for use by sync adapters. \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC3](/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC3:kotlin.String) Generic column for use by sync adapters. \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC4](/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC4:kotlin.String) Generic column for use by sync adapters. \u003cbr /\u003e | ||\n\nConstants\n---------\n\n### ACCOUNT_NAME\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ACCOUNT_NAME: String\n```\n\nThe name of the account instance to which this row belongs, which when paired with [ACCOUNT_TYPE](#ACCOUNT_TYPE:kotlin.String) identifies a specific account.\n\nType: TEXT \n\n Value: \"account_name\"\n\n### ACCOUNT_TYPE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ACCOUNT_TYPE: String\n```\n\nThe type of account to which this row belongs, which when paired with [ACCOUNT_NAME](#ACCOUNT_NAME:kotlin.String) identifies a specific account.\n\nType: TEXT \n\n Value: \"account_type\"\n\n### DIRTY\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DIRTY: String\n```\n\nFlag indicating that [VERSION](#VERSION:kotlin.String) has changed, and this row needs to be synchronized by its owning account.\n\nType: INTEGER (boolean) \n\n Value: \"dirty\"\n\n### SOURCE_ID\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SOURCE_ID: String\n```\n\nString that uniquely identifies this row to its source account.\n\nType: TEXT \n\n Value: \"sourceid\"\n\n### VERSION\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val VERSION: String\n```\n\nVersion number that is updated whenever this row or its related data changes.\n\nType: INTEGER \n\n Value: \"version\""]]