# ContactsContract.ProfileSyncState

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

# ProfileSyncState

*** ** * ** ***

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

```
class ProfileSyncState : SyncStateContract.Columns
```

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

A table provided for sync adapters to use for storing private sync state data for the user's personal profile.

## 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/ContactsContract.ProfileSyncState#CONTENT_DIRECTORY:kotlin.String) <br /> |

| Inherited constants ||
|---|---|
| From class [Columns](https://developer.android.com/reference/kotlin/android/provider/SyncStateContract.Columns) |----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_NAME](https://developer.android.com/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 <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](https://developer.android.com/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 <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA](https://developer.android.com/reference/kotlin/android/provider/SyncStateContract.Columns#DATA:kotlin.String) The sync data associated with this account. Type: NONE <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) 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) The unique ID for a row. Type: INTEGER (long) <br />         | ||

|                                                                                                                                                                                                                                                                                                                                                                                                         Public methods                                                                                                                                                                                                                                                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!                                                                                                                                                                  | [get](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProfileSyncState#get(android.content.ContentProviderClient,%20android.accounts.Account))`(`provider:` `[ContentProviderClient](https://developer.android.com/reference/kotlin/android/content/ContentProviderClient.html#)!`, `account:` `[Account](https://developer.android.com/reference/kotlin/android/accounts/Account.html#)!`)` <br />                                                                                                                         |
| static [Pair](https://developer.android.com/reference/kotlin/android/util/Pair.html#)\<[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!, [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\>! | [getWithUri](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProfileSyncState#getWithUri(android.content.ContentProviderClient,%20android.accounts.Account))`(`provider:` `[ContentProviderClient](https://developer.android.com/reference/kotlin/android/content/ContentProviderClient.html#)!`, `account:` `[Account](https://developer.android.com/reference/kotlin/android/accounts/Account.html#)!`)` <br />                                                                                                           |
| static [ContentProviderOperation](https://developer.android.com/reference/kotlin/android/content/ContentProviderOperation.html#)!                                                                                                                                | [newSetOperation](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProfileSyncState#newSetOperation(android.accounts.Account,%20kotlin.ByteArray))`(`account:` `[Account](https://developer.android.com/reference/kotlin/android/accounts/Account.html#)!`, `data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`)` <br />                                                                                                                                                      |
| static [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                              | [set](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProfileSyncState#set(android.content.ContentProviderClient,%20android.accounts.Account,%20kotlin.ByteArray))`(`provider:` `[ContentProviderClient](https://developer.android.com/reference/kotlin/android/content/ContentProviderClient.html#)!`, `account:` `[Account](https://developer.android.com/reference/kotlin/android/accounts/Account.html#)!`, `data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/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/ContactsContract.ProfileSyncState#CONTENT_URI:android.net.Uri) The content:// style URI for this table |

## Constants

### CONTENT_DIRECTORY

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

```
static val CONTENT_DIRECTORY: String
```  

    Value: "syncstate"

## Public methods

### get

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

```
static fun get(
    provider: ContentProviderClient!, 
    account: Account!
): ByteArray!
```  
**See Also**

- [android.provider.SyncStateContract.Helpers#get](https://developer.android.com/reference/kotlin/android/provider/SyncStateContract.Helpers#get(android.content.ContentProviderClient,%20android.net.Uri,%20android.accounts.Account))  

### getWithUri

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

```
static fun getWithUri(
    provider: ContentProviderClient!, 
    account: Account!
): Pair<Uri!, ByteArray!>!
```  
**See Also**

- [android.provider.SyncStateContract.Helpers#get](https://developer.android.com/reference/kotlin/android/provider/SyncStateContract.Helpers#get(android.content.ContentProviderClient,%20android.net.Uri,%20android.accounts.Account))  

### newSetOperation

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

```
static fun newSetOperation(
    account: Account!, 
    data: ByteArray!
): ContentProviderOperation!
```  
**See Also**

- [android.provider.SyncStateContract.Helpers#newSetOperation](https://developer.android.com/reference/kotlin/android/provider/SyncStateContract.Helpers#newSetOperation(android.net.Uri,%20android.accounts.Account,%20kotlin.ByteArray))  

### set

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

```
static fun set(
    provider: ContentProviderClient!, 
    account: Account!, 
    data: ByteArray!
): Unit
```  
**See Also**

- [android.provider.SyncStateContract.Helpers#set](https://developer.android.com/reference/kotlin/android/provider/SyncStateContract.Helpers#set(android.content.ContentProviderClient,%20android.net.Uri,%20android.accounts.Account,%20kotlin.ByteArray))

## Properties

### CONTENT_URI

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

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

The content:// style URI for this table