Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#constants) \| [Inherited Methods](https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#inhmethods)

# ContactsContract.Settings.AccountAttributes

*** ** * ** ***


`
public
static
final

class
ContactsContract.Settings.AccountAttributes
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

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

<br />

*** ** * ** ***

## Summary

| ### Constants ||
|---|---|
| `long` | `https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#ATTRIBUTE_DATA_ORIGIN_CLOUD` Indicates that the primary, canonical storage location and authoritative source for contacts associated with this account is a cloud service. |
| `long` | `https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#ATTRIBUTE_DATA_ORIGIN_LOCAL` Indicates that the primary, canonical storage location and authoritative source for contacts associated with this account is the local device. |
| `long` | `https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#ATTRIBUTE_DATA_ORIGIN_SIM` Indicates that contacts associated with this account are stored directly on the SIM card. |
| `long` | `https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#ATTRIBUTE_DATA_TYPE_CUSTOM_DECLARED` Indicates that this account has declared custom or non-standard contact data fields (e.g., those defined via custom MIME types in \`contacts.xml\` or other extensibility mechanisms). |
| `long` | `https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#ATTRIBUTE_SYNC_MODE_DOWN_SYNC` Indicates that contacts associated with this account are synchronized from a cloud account to the device. |
| `long` | `https://developer.android.com/reference/android/provider/ContactsContract.Settings.AccountAttributes#ATTRIBUTE_SYNC_MODE_UP_SYNC` Indicates that contacts associated with this account are synchronized from the device to the cloud. |

| ### 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

### ATTRIBUTE_DATA_ORIGIN_CLOUD

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

```
public static final long ATTRIBUTE_DATA_ORIGIN_CLOUD
```

Indicates that the primary, canonical storage location and authoritative source
for contacts associated with this account is a cloud service. This applies
regardless of whether contacts were initially created on the device and then
synchronized to the cloud, or if they were created directly in the cloud and
downloaded to the device. The cloud serves as the central hub for persistence
and synchronization across devices.
An account can only have one of attributes among `ATTRIBUTE_DATA_ORIGIN_LOCAL`,
`ATTRIBUTE_DATA_ORIGIN_SIM` and `ATTRIBUTE_DATA_ORIGIN_CLOUD`.

<br />

Constant Value:

4
(0x0000000000000004)


### ATTRIBUTE_DATA_ORIGIN_LOCAL

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

```
public static final long ATTRIBUTE_DATA_ORIGIN_LOCAL
```

Indicates that the primary, canonical storage location and authoritative source
for contacts associated with this account is the local device. These contacts
are not synchronized with any external service.
An account can only have one of attributes among `ATTRIBUTE_DATA_ORIGIN_LOCAL`,
`ATTRIBUTE_DATA_ORIGIN_SIM` and `ATTRIBUTE_DATA_ORIGIN_CLOUD`.

<br />

Constant Value:

1
(0x0000000000000001)


### ATTRIBUTE_DATA_ORIGIN_SIM

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

```
public static final long ATTRIBUTE_DATA_ORIGIN_SIM
```

Indicates that contacts associated with this account are stored directly on the SIM
card.
\* An account can only have one of attributes among
`ATTRIBUTE_DATA_ORIGIN_LOCAL`,
\* `ATTRIBUTE_DATA_ORIGIN_SIM` and `ATTRIBUTE_DATA_ORIGIN_CLOUD`.

<br />

Constant Value:

2
(0x0000000000000002)


### ATTRIBUTE_DATA_TYPE_CUSTOM_DECLARED

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

```
public static final long ATTRIBUTE_DATA_TYPE_CUSTOM_DECLARED
```

Indicates that this account has declared custom or non-standard
contact data fields (e.g., those defined via custom MIME types in \`contacts.xml\`
or other extensibility mechanisms). This data often provides supplementary
information and may not be directly user-editable via the standard Contacts app.

<br />

Constant Value:

32
(0x0000000000000020)


### ATTRIBUTE_SYNC_MODE_DOWN_SYNC

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

```
public static final long ATTRIBUTE_SYNC_MODE_DOWN_SYNC
```

Indicates that contacts associated with this account are
synchronized from a cloud account to the device. Local
changes (creations, edits, deletions) are generally not uploaded
to the cloud via this sync mechanism.
A two-way sync account has both `ATTRIBUTE_SYNC_MODE_UP_SYNC` and
`ATTRIBUTE_SYNC_MODE_DOWN_SYNC` attributes.

<br />

Constant Value:

16
(0x0000000000000010)


### ATTRIBUTE_SYNC_MODE_UP_SYNC

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

```
public static final long ATTRIBUTE_SYNC_MODE_UP_SYNC
```

Indicates that contacts associated with this account are synchronized
from the device to the cloud. Local changes (creations, edits, deletions)
are uploaded to the authoritative source.
A two-way sync accounts have both `ATTRIBUTE_SYNC_MODE_UP_SYNC` and
`ATTRIBUTE_SYNC_MODE_DOWN_SYNC` attributes.

<br />

Constant Value:

8
(0x0000000000000008)