ContactsContract.Settings.AccountAttributes


public static final class ContactsContract.Settings.AccountAttributes
extends Object

java.lang.Object
   ↳ android.provider.ContactsContract.Settings.AccountAttributes


Summary

Constants

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.

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.

long ATTRIBUTE_DATA_ORIGIN_SIM

Indicates that contacts associated with this account are stored directly on the SIM card.

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).

long ATTRIBUTE_SYNC_MODE_DOWN_SYNC

Indicates that contacts associated with this account are synchronized from a cloud account to the device.

long ATTRIBUTE_SYNC_MODE_UP_SYNC

Indicates that contacts associated with this account are synchronized from the device to the cloud.

Inherited methods

Constants

ATTRIBUTE_DATA_ORIGIN_CLOUD

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.

Constant Value: 4 (0x0000000000000004)

ATTRIBUTE_DATA_ORIGIN_LOCAL

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.

Constant Value: 1 (0x0000000000000001)

ATTRIBUTE_DATA_ORIGIN_SIM

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.

Constant Value: 2 (0x0000000000000002)

ATTRIBUTE_DATA_TYPE_CUSTOM_DECLARED

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.

Constant Value: 32 (0x0000000000000020)

ATTRIBUTE_SYNC_MODE_DOWN_SYNC

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.

Constant Value: 16 (0x0000000000000010)

ATTRIBUTE_SYNC_MODE_UP_SYNC

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.

Constant Value: 8 (0x0000000000000008)