Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#lfields) \| [Methods](https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#inhmethods)

# ContactsContract.ProfileSyncState

*** ** * ** ***

` public static final class ContactsContract.ProfileSyncState `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/provider/SyncStateContract.Columns `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.ContactsContract.ProfileSyncState |

<br />

*** ** * ** ***

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

- `https://developer.android.com/reference/android/provider/SyncStateContract`

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#CONTENT_DIRECTORY` <br /> |

### Inherited constants

From interface `https://developer.android.com/reference/android/provider/SyncStateContract.Columns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_NAME`

A reference to the name of the account to which this data belongs

Type: STRING

<br />

`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE`

A reference to the type of the account to which this data belongs

Type: STRING

<br />

`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/SyncStateContract.Columns#DATA`

The sync data associated with this account.
From interface `https://developer.android.com/reference/android/provider/BaseColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_COUNT`

The count of rows in a directory.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_ID`

The unique ID for a row.

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#CONTENT_URI` The content:// style URI for this table |

| ### Public methods ||
|---|---|
| ` static byte[]` | ` https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#get(android.content.ContentProviderClient,%20android.accounts.Account)(https://developer.android.com/reference/android/content/ContentProviderClient provider, https://developer.android.com/reference/android/accounts/Account account) ` |
| ` static https://developer.android.com/reference/android/util/Pair<https://developer.android.com/reference/android/net/Uri, byte[]>` | ` https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#getWithUri(android.content.ContentProviderClient,%20android.accounts.Account)(https://developer.android.com/reference/android/content/ContentProviderClient provider, https://developer.android.com/reference/android/accounts/Account account) ` |
| ` static https://developer.android.com/reference/android/content/ContentProviderOperation` | ` https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#newSetOperation(android.accounts.Account,%20byte[])(https://developer.android.com/reference/android/accounts/Account account, byte[] data) ` |
| ` static void` | ` https://developer.android.com/reference/android/provider/ContactsContract.ProfileSyncState#set(android.content.ContentProviderClient,%20android.accounts.Account,%20byte[])(https://developer.android.com/reference/android/content/ContentProviderClient provider, https://developer.android.com/reference/android/accounts/Account account, byte[] data) ` |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### CONTENT_DIRECTORY

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

```
public static final String CONTENT_DIRECTORY
```

<br />

<br />

Constant Value: "syncstate"

## Fields

### CONTENT_URI

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

```
public static final Uri CONTENT_URI
```

The content:// style URI for this table

<br />

## Public methods

### get

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

```
public static byte[] get (ContentProviderClient provider, 
                Account account)
```

<br />

<br />

| Parameters ||
|---|---|
| `provider` | `ContentProviderClient` <br /> |
| `account` | `Account` <br /> |

| Returns ||
|---|---|
| `byte[]` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/os/RemoteException` |   |

**See also:**

- `https://developer.android.com/reference/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#ApiLevels)

```
public static Pair<Uri, byte[]> getWithUri (ContentProviderClient provider, 
                Account account)
```

<br />

<br />

| Parameters ||
|---|---|
| `provider` | `ContentProviderClient` <br /> |
| `account` | `Account` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/util/Pair<https://developer.android.com/reference/android/net/Uri, byte[]>` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/os/RemoteException` |   |

**See also:**

- `https://developer.android.com/reference/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#ApiLevels)

```
public static ContentProviderOperation newSetOperation (Account account, 
                byte[] data)
```

<br />

<br />

| Parameters ||
|---|---|
| `account` | `Account` <br /> |
| `data` | `byte` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/ContentProviderOperation` | <br /> |

**See also:**

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

### set

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

```
public static void set (ContentProviderClient provider, 
                Account account, 
                byte[] data)
```

<br />

<br />

| Parameters ||
|---|---|
| `provider` | `ContentProviderClient` <br /> |
| `account` | `Account` <br /> |
| `data` | `byte` <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/os/RemoteException` |   |

**See also:**

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