# ContactsContract.SyncColumns

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# SyncColumns

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns "View this page in Java")  

```
protected interface SyncColumns : ContactsContract.BaseSyncColumns
```

|------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.provider.ContactsContract.SyncColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [ContactsContract.Contacts.Entity](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts.Entity),[ContactsContract.Groups](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Groups),[ContactsContract.RawContacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.RawContacts) |--------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ContactsContract.Contacts.Entity](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts.Entity) | A sub-directory of a contact that contains all of its[ContactsContract.RawContacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.RawContacts)as well as[ContactsContract.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data)rows. | | [ContactsContract.Groups](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Groups)                   | Constants for the groups table.                                                                                                                                                                                                                                                                                | | [ContactsContract.RawContacts](https://developer.android.com/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.                                                                                                                                                                                    | |

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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_NAME](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#ACCOUNT_NAME:kotlin.String) The name of the account instance to which this row belongs, which when paired with[ACCOUNT_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#ACCOUNT_TYPE:kotlin.String)identifies a specific account. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#ACCOUNT_TYPE:kotlin.String) The type of account to which this row belongs, which when paired with[ACCOUNT_NAME](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#ACCOUNT_NAME:kotlin.String)identifies a specific account.              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DIRTY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#DIRTY:kotlin.String) Flag indicating that[VERSION](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#VERSION:kotlin.String)has changed, and this row needs to be synchronized by its owning account.                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SOURCE_ID](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#SOURCE_ID:kotlin.String) String that uniquely identifies this row to its source account.                                                                                                                                                                                               |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VERSION](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#VERSION:kotlin.String) Version number that is updated whenever this row or its related data changes.                                                                                                                                                                                     |

| Inherited constants ||
|---|---|
| From class[BaseSyncColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC1](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC1:kotlin.String) <br /> Generic column for use by sync adapters. <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC2](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC2:kotlin.String) <br /> Generic column for use by sync adapters. <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC3](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC3:kotlin.String) <br /> Generic column for use by sync adapters. <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC4](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.BaseSyncColumns#SYNC4:kotlin.String) <br /> Generic column for use by sync adapters. <br /> | ||

## Constants

### ACCOUNT_NAME

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ACCOUNT_NAME: String
```

The name of the account instance to which this row belongs, which when paired with[ACCOUNT_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#ACCOUNT_TYPE:kotlin.String)identifies a specific account.

Type: TEXT  

    Value: "account_name"

### ACCOUNT_TYPE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ACCOUNT_TYPE: String
```

The type of account to which this row belongs, which when paired with[ACCOUNT_NAME](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#ACCOUNT_NAME:kotlin.String)identifies a specific account.

Type: TEXT  

    Value: "account_type"

### DIRTY

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val DIRTY: String
```

Flag indicating that[VERSION](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SyncColumns#VERSION:kotlin.String)has changed, and this row needs to be synchronized by its owning account.

Type: INTEGER (boolean)  

    Value: "dirty"

### SOURCE_ID

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SOURCE_ID: String
```

String that uniquely identifies this row to its source account.

Type: TEXT  

    Value: "sourceid"

### VERSION

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val VERSION: String
```

Version number that is updated whenever this row or its related data changes.

Type: INTEGER  

    Value: "version"