# ContactsContract.SettingsColumns

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

# SettingsColumns

*** ** * ** ***

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

```
protected interface SettingsColumns
```

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

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [ContactsContract.Settings](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Settings) |------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------| | [ContactsContract.Settings](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Settings) | Contacts-specific settings for various[Account](https://developer.android.com/reference/kotlin/android/accounts/Account.html#)'s. | |

## 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.SettingsColumns#ACCOUNT_NAME:kotlin.String) The name of the account instance to which this row belongs.                                                                                                                                                                                                                                                                                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#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.SettingsColumns#ACCOUNT_NAME:kotlin.String)identifies a specific account.                                                                                                                                 |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ANY_UNSYNCED](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#ANY_UNSYNCED:kotlin.String) Read-only flag indicating if this[SHOULD_SYNC](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#SHOULD_SYNC:kotlin.String)or any[Groups.SHOULD_SYNC](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.GroupsColumns#SHOULD_SYNC:kotlin.String)under this account have been marked as unsynced. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA_SET](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#DATA_SET:kotlin.String) The data set within the account that this row belongs to.                                                                                                                                                                                                                                                                                                                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SHOULD_SYNC](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#SHOULD_SYNC:kotlin.String) Depending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source.                                                                                                                                                                                                                                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UNGROUPED_COUNT](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#UNGROUPED_COUNT:kotlin.String) Read-only count of[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)from a specific source that have no[CommonDataKinds.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership)entries.                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UNGROUPED_VISIBLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#UNGROUPED_VISIBLE:kotlin.String) Flag indicating if contacts without any[CommonDataKinds.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership)entries should be visible in any user interface.                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UNGROUPED_WITH_PHONES](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#UNGROUPED_WITH_PHONES:kotlin.String) Read-only count of[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)from a specific source that have no[CommonDataKinds.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership)entries, and also have phone numbers.           |

## 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.

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.SettingsColumns#ACCOUNT_NAME:kotlin.String)identifies a specific account.

Type: TEXT  

    Value: "account_type"

### ANY_UNSYNCED

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

```
static val ANY_UNSYNCED: String
```

Read-only flag indicating if this[SHOULD_SYNC](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.SettingsColumns#SHOULD_SYNC:kotlin.String)or any[Groups.SHOULD_SYNC](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.GroupsColumns#SHOULD_SYNC:kotlin.String)under this account have been marked as unsynced.  

    Value: "any_unsynced"

### DATA_SET

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

```
static val DATA_SET: String
```

The data set within the account that this row belongs to. This allows multiple sync adapters for the same account type to distinguish between each others' data. This is empty by default, and is completely optional. It only needs to be populated if multiple sync adapters are entering distinct data for the same account type and account name.

Type: TEXT  

    Value: "data_set"

### SHOULD_SYNC

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

```
static val SHOULD_SYNC: String
```

Depending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source.

Type: INTEGER (boolean)  

    Value: "should_sync"

### UNGROUPED_COUNT

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

```
static val UNGROUPED_COUNT: String
```

Read-only count of[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)from a specific source that have no[CommonDataKinds.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership)entries.

Type: INTEGER  

    Value: "summ_count"

### UNGROUPED_VISIBLE

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

```
static val UNGROUPED_VISIBLE: String
```

Flag indicating if contacts without any[CommonDataKinds.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership)entries should be visible in any user interface.

Type: INTEGER (boolean)  

    Value: "ungrouped_visible"

### UNGROUPED_WITH_PHONES

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

```
static val UNGROUPED_WITH_PHONES: String
```

Read-only count of[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)from a specific source that have no[CommonDataKinds.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership)entries, and also have phone numbers.

Type: INTEGER  

    Value: "summ_phones"