AccountAttributes
class AccountAttributes
| kotlin.Any | |
| ↳ | android.provider.ContactsContract.Settings.AccountAttributes |
Summary
| Constants | |
|---|---|
| static Long |
Indicates that the primary, canonical storage location and authoritative source for contacts associated with this account is a cloud service. |
| static Long |
Indicates that the primary, canonical storage location and authoritative source for contacts associated with this account is the local device. |
| static Long |
Indicates that contacts associated with this account are stored directly on the SIM card. |
| static Long |
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). |
| static Long |
Indicates that contacts associated with this account are synchronized from a cloud account to the device. |
| static Long |
Indicates that contacts associated with this account are synchronized from the device to the cloud. |
Constants
ATTRIBUTE_DATA_ORIGIN_CLOUD
static val ATTRIBUTE_DATA_ORIGIN_CLOUD: Long
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.
Value: 4LATTRIBUTE_DATA_ORIGIN_LOCAL
static val ATTRIBUTE_DATA_ORIGIN_LOCAL: Long
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.
Value: 1LATTRIBUTE_DATA_ORIGIN_SIM
static val ATTRIBUTE_DATA_ORIGIN_SIM: Long
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.
Value: 2LATTRIBUTE_DATA_TYPE_CUSTOM_DECLARED
static val ATTRIBUTE_DATA_TYPE_CUSTOM_DECLARED: Long
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.
Value: 32LATTRIBUTE_SYNC_MODE_DOWN_SYNC
static val ATTRIBUTE_SYNC_MODE_DOWN_SYNC: Long
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.
Value: 16LATTRIBUTE_SYNC_MODE_UP_SYNC
static val ATTRIBUTE_SYNC_MODE_UP_SYNC: Long
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.
Value: 8L