Stay organized with collections
Save and categorize content based on your preferences.
Settings
class Settings : BaseColumns, Contacts.SettingsColumns
The settings over all of the people
Summary
Constants |
static String |
The directory twig for this sub-table
|
static String |
The default sort order for this table
|
static String |
A setting that is used to indicate if we should sync down all groups for the specified account.
|
Properties |
static Uri! |
The content:// style URL for this table
|
Constants
SYNC_EVERYTHING
static val SYNC_EVERYTHING: String
Deprecated: see 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
Properties
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,["# Contacts.Settings\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSettings\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/Contacts.Settings \"View this page in Java\") \n\n```\nclass Settings : BaseColumns, Contacts.SettingsColumns\n```\n\n|---|-----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.Contacts.Settings](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 5.**\n|\n| see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)\n\nThe settings over all of the people\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_DIRECTORY](#CONTENT_DIRECTORY:kotlin.String) The directory twig for this sub-table |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_SORT_ORDER](#DEFAULT_SORT_ORDER:kotlin.String) The default sort order for this table |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_EVERYTHING](#SYNC_EVERYTHING:kotlin.String) A setting that is used to indicate if we should sync down all groups for the specified account. |\n\n| Inherited constants ||\n|---|---|\n| From class [SettingsColumns](/reference/kotlin/android/provider/Contacts.SettingsColumns) |----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY](/reference/kotlin/android/provider/Contacts.SettingsColumns#KEY:kotlin.String) The key of this setting. Type: TEXT \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VALUE](/reference/kotlin/android/provider/Contacts.SettingsColumns#VALUE:kotlin.String) The value of this setting. Type: TEXT \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_SYNC_ACCOUNT](/reference/kotlin/android/provider/Contacts.SettingsColumns#_SYNC_ACCOUNT:kotlin.String) The _SYNC_ACCOUNT to which this setting corresponds. This may be null. Type: TEXT \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_SYNC_ACCOUNT_TYPE](/reference/kotlin/android/provider/Contacts.SettingsColumns#_SYNC_ACCOUNT_TYPE:kotlin.String) The _SYNC_ACCOUNT_TYPE to which this setting corresponds. This may be null. Type: TEXT \u003cbr /\u003e | ||\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| Public methods ||\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getSetting](#getSetting(android.content.ContentResolver,%20kotlin.String,%20kotlin.String))`(`cr:` `[ContentResolver](../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)!`)` \u003cbr /\u003e |\n| static [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setSetting](#setSetting(android.content.ContentResolver,%20kotlin.String,%20kotlin.String,%20kotlin.String))`(`cr:` `[ContentResolver](../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)!`)` \u003cbr /\u003e |\n\n| Properties ||\n|---------------------------------|-------------------------------------------------------------------------------------|\n| static [Uri](../net/Uri.html#)! | [CONTENT_URI](#CONTENT_URI:android.net.Uri) The content:// style URL for this table |\n\nConstants\n---------\n\n### CONTENT_DIRECTORY\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_DIRECTORY: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe directory twig for this sub-table \n\n Value: \"settings\"\n\n### DEFAULT_SORT_ORDER\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DEFAULT_SORT_ORDER: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe default sort order for this table \n\n Value: \"key ASC\"\n\n### SYNC_EVERYTHING\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SYNC_EVERYTHING: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nA 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.\n\nThis is a boolean setting. It is true if it is set and it is anything other than the emptry string or \"0\". \n\n Value: \"syncEverything\"\n\nPublic methods\n--------------\n\n### getSetting\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun getSetting(\n cr: ContentResolver!, \n account: String!, \n key: String!\n): String!\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)* \n\n### setSetting\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun setSetting(\n cr: ContentResolver!, \n account: String!, \n key: String!, \n value: String!\n): Unit\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nProperties\n----------\n\n### CONTENT_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_URI: Uri!\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe content:// style URL for this table"]]