# Contacts.Settings

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

# Settings

*** ** * ** ***

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

```
class Settings : BaseColumns, Contacts.SettingsColumns
```

|---|--------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                           ||
| ↳ | [android.provider.Contacts.Settings](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#) |

*** ** * ** ***

| **This class was deprecated in API level 5.**
|
| see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)

The settings over all of the people

## Summary

|                                                                                                                                                         Constants                                                                                                                                                          ||
|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_DIRECTORY](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#CONTENT_DIRECTORY:kotlin.String) The directory twig for this sub-table                                                       |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#DEFAULT_SORT_ORDER:kotlin.String) The default sort order for this table                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_EVERYTHING](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#SYNC_EVERYTHING:kotlin.String) A setting that is used to indicate if we should sync down all groups for the specified account. |

| Inherited constants ||
|---|---|
| From class[SettingsColumns](https://developer.android.com/reference/kotlin/android/provider/Contacts.SettingsColumns) |----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY](https://developer.android.com/reference/kotlin/android/provider/Contacts.SettingsColumns#KEY:kotlin.String) <br /> The key of this setting. Type: TEXT <br />                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VALUE](https://developer.android.com/reference/kotlin/android/provider/Contacts.SettingsColumns#VALUE:kotlin.String) <br /> The value of this setting. Type: TEXT <br />                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_SYNC_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/Contacts.SettingsColumns#_SYNC_ACCOUNT:kotlin.String) <br /> The _SYNC_ACCOUNT to which this setting corresponds. This may be null. Type: TEXT <br />                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_SYNC_ACCOUNT_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.SettingsColumns#_SYNC_ACCOUNT_TYPE:kotlin.String) <br /> The _SYNC_ACCOUNT_TYPE to which this setting corresponds. This may be null. Type: TEXT <br /> | ||
| From class[BaseColumns](https://developer.android.com/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) <br /> The count of rows in a directory. Type: INTEGER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) <br /> The unique ID for a row. Type: INTEGER (long) <br />         | ||

|                                                                                                                                                                                                                                                                                                                                                Public methods                                                                                                                                                                                                                                                                                                                                                ||
|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getSetting](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#getSetting(android.content.ContentResolver,%20kotlin.String,%20kotlin.String))`(`cr:` `[ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!`, `account:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                |
| static[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)      | [setSetting](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#setSetting(android.content.ContentResolver,%20kotlin.String,%20kotlin.String,%20kotlin.String))`(`cr:` `[ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!`, `account:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> |

|                                                                                                                        Properties                                                                                                                        ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.Settings#CONTENT_URI:android.net.Uri) The content:// style URL for this table |

## Constants

### CONTENT_DIRECTORY

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

```
static val CONTENT_DIRECTORY: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The directory twig for this sub-table  

    Value: "settings"

### DEFAULT_SORT_ORDER

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

```
static val DEFAULT_SORT_ORDER: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The default sort order for this table  

    Value: "key ASC"

### SYNC_EVERYTHING

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

```
static val SYNC_EVERYTHING: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

A setting that is used to indicate if we should sync down all groups for the specified account. For this setting the _SYNC_ACCOUNT column must be set. If this isn't set then we will only sync the groups whose SHOULD_SYNC column is set to true.

This is a boolean setting. It is true if it is set and it is anything other than the emptry string or "0".  

    Value: "syncEverything"

## Public methods

### getSetting

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

```
static fun getSetting(
    cr: ContentResolver!, 
    account: String!, 
    key: String!
): String!
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*  

### setSetting

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

```
static fun setSetting(
    cr: ContentResolver!, 
    account: String!, 
    key: String!, 
    value: String!
): Unit
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

## Properties

### CONTENT_URI

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

```
static val CONTENT_URI: Uri!
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The content:// style URL for this table