Stay organized with collections
Save and categorize content based on your preferences.
SyncState
class SyncState : SyncStateContract.Columns
A table provided for sync adapters to use for storing private sync state data for contacts.
Summary
Inherited constants |
From class Columns
String |
ACCOUNT_NAME
A reference to the name of the account to which this data belongs
Type: STRING
|
String |
ACCOUNT_TYPE
A reference to the type of the account to which this data belongs
Type: STRING
|
String |
DATA
The sync data associated with this account.
Type: NONE
|
|
|
Properties |
static Uri! |
The content:// style URI for this table
|
Constants
CONTENT_DIRECTORY
static val CONTENT_DIRECTORY: String
Value: "syncstate"
Public methods
Properties
CONTENT_URI
static val CONTENT_URI: Uri!
The content:// style URI for this table
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ContactsContract.SyncState\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSyncState\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/ContactsContract.SyncState \"View this page in Java\") \n\n```\nclass SyncState : SyncStateContract.Columns\n```\n\n|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.ContactsContract.SyncState](#) |\n\nA table provided for sync adapters to use for storing private sync state data for contacts.\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) \u003cbr /\u003e |\n\n| Inherited constants ||\n|---|---|\n| From class [Columns](/reference/kotlin/android/provider/SyncStateContract.Columns) |----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_NAME](/reference/kotlin/android/provider/SyncStateContract.Columns#ACCOUNT_NAME:kotlin.String) A reference to the name of the account to which this data belongs Type: STRING \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](/reference/kotlin/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE:kotlin.String) A reference to the type of the account to which this data belongs Type: STRING \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA](/reference/kotlin/android/provider/SyncStateContract.Columns#DATA:kotlin.String) The sync data associated with this account. Type: NONE \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 [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [get](#get(android.content.ContentProviderClient,%20android.accounts.Account))`(`provider:` `[ContentProviderClient](../content/ContentProviderClient.html#)!`, `account:` `[Account](../accounts/Account.html#)!`)` \u003cbr /\u003e |\n| static [Pair](../util/Pair.html#)\\\u003c[Uri](../net/Uri.html#)!, [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\\\u003e! | [getWithUri](#getWithUri(android.content.ContentProviderClient,%20android.accounts.Account))`(`provider:` `[ContentProviderClient](../content/ContentProviderClient.html#)!`, `account:` `[Account](../accounts/Account.html#)!`)` \u003cbr /\u003e |\n| static [ContentProviderOperation](../content/ContentProviderOperation.html#)! | [newSetOperation](#newSetOperation(android.accounts.Account,%20kotlin.ByteArray))`(`account:` `[Account](../accounts/Account.html#)!`, `data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`)` \u003cbr /\u003e |\n| static [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [set](#set(android.content.ContentProviderClient,%20android.accounts.Account,%20kotlin.ByteArray))`(`provider:` `[ContentProviderClient](../content/ContentProviderClient.html#)!`, `account:` `[Account](../accounts/Account.html#)!`, `data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`)` \u003cbr /\u003e |\n\n| Properties ||\n|---------------------------------|-------------------------------------------------------------------------------------|\n| static [Uri](../net/Uri.html#)! | [CONTENT_URI](#CONTENT_URI:android.net.Uri) The content:// style URI for this table |\n\nConstants\n---------\n\n### CONTENT_DIRECTORY\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_DIRECTORY: String\n``` \n\n Value: \"syncstate\"\n\nPublic methods\n--------------\n\n### get\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun get(\n provider: ContentProviderClient!, \n account: Account!\n): ByteArray!\n``` \n**See Also**\n\n- [android.provider.SyncStateContract.Helpers#get](/reference/kotlin/android/provider/SyncStateContract.Helpers#get(android.content.ContentProviderClient,%20android.net.Uri,%20android.accounts.Account)) \n\n### getWithUri\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun getWithUri(\n provider: ContentProviderClient!, \n account: Account!\n): Pair\u003cUri!, ByteArray!\u003e!\n``` \n**See Also**\n\n- [android.provider.SyncStateContract.Helpers#get](/reference/kotlin/android/provider/SyncStateContract.Helpers#get(android.content.ContentProviderClient,%20android.net.Uri,%20android.accounts.Account)) \n\n### newSetOperation\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun newSetOperation(\n account: Account!, \n data: ByteArray!\n): ContentProviderOperation!\n``` \n**See Also**\n\n- [android.provider.SyncStateContract.Helpers#newSetOperation](/reference/kotlin/android/provider/SyncStateContract.Helpers#newSetOperation(android.net.Uri,%20android.accounts.Account,%20kotlin.ByteArray)) \n\n### set\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun set(\n provider: ContentProviderClient!, \n account: Account!, \n data: ByteArray!\n): Unit\n``` \n**See Also**\n\n- [android.provider.SyncStateContract.Helpers#set](/reference/kotlin/android/provider/SyncStateContract.Helpers#set(android.content.ContentProviderClient,%20android.net.Uri,%20android.accounts.Account,%20kotlin.ByteArray))\n\nProperties\n----------\n\n### CONTENT_URI\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_URI: Uri!\n```\n\nThe content:// style URI for this table"]]