ContactsColumns
protected interface ContactsColumns
android.provider.ContactsContract.ContactsColumns |
Columns of ContactsContract.Contacts
that refer to intrinsic properties of the contact, as opposed to the user-specified options found in ContactOptionsColumns
.
Summary
Constants | |
---|---|
static String |
Timestamp (milliseconds since epoch) of when this contact was last updated. |
static String |
The display name for the contact. |
static String |
An indicator of whether this contact has at least one phone number. |
static String |
Flag that reflects whether the contact exists inside the default directory. |
static String |
Flag that reflects the |
static String |
Flag that reflects whether this contact represents the user's personal profile entry. |
static String |
An opaque value that contains hints on how to find the contact if its row id changed as a result of a sync or aggregation. |
static String |
Reference to the row in the RawContacts table holding the contact name. |
static String |
Photo file ID of the full-size photo. |
static String |
Reference to the row in the data table holding the photo. |
static String |
A URI that can be used to retrieve a thumbnail of the contact's photo. |
static String |
A URI that can be used to retrieve the contact's full-size photo. |
Constants
CONTACT_LAST_UPDATED_TIMESTAMP
static val CONTACT_LAST_UPDATED_TIMESTAMP: String
Timestamp (milliseconds since epoch) of when this contact was last updated. This includes updates to all data associated with this contact including raw contacts. Any modification (including deletes and inserts) of underlying contact data are also reflected in this timestamp.
Value: "contact_last_updated_timestamp"
DISPLAY_NAME
static val DISPLAY_NAME: String
The display name for the contact.
Type: TEXT
Value: "display_name"
HAS_PHONE_NUMBER
static val HAS_PHONE_NUMBER: String
An indicator of whether this contact has at least one phone number. "1" if there is at least one phone number, "0" otherwise.
Type: INTEGER
Value: "has_phone_number"
IN_DEFAULT_DIRECTORY
static val IN_DEFAULT_DIRECTORY: String
Flag that reflects whether the contact exists inside the default directory. Ie, whether the contact is designed to only be visible outside search.
Value: "in_default_directory"
IN_VISIBLE_GROUP
static val IN_VISIBLE_GROUP: String
Flag that reflects the Groups#GROUP_VISIBLE
state of any CommonDataKinds.GroupMembership
for this contact.
Value: "in_visible_group"
IS_USER_PROFILE
static val IS_USER_PROFILE: String
Flag that reflects whether this contact represents the user's personal profile entry.
Value: "is_user_profile"
LOOKUP_KEY
static val LOOKUP_KEY: String
An opaque value that contains hints on how to find the contact if its row id changed as a result of a sync or aggregation.
Value: "lookup"
NAME_RAW_CONTACT_ID
static val NAME_RAW_CONTACT_ID: String
Reference to the row in the RawContacts table holding the contact name.
Type: INTEGER REFERENCES raw_contacts(_id)
Value: "name_raw_contact_id"
PHOTO_FILE_ID
static val PHOTO_FILE_ID: String
Photo file ID of the full-size photo. If present, this will be used to populate PHOTO_URI
. The ID can also be used with ContactsContract.DisplayPhoto#CONTENT_URI
to create a URI to the photo. If this is present, PHOTO_ID
is also guaranteed to be populated.
Type: INTEGER
Value: "photo_file_id"
PHOTO_ID
static val PHOTO_ID: String
Reference to the row in the data table holding the photo. A photo can be referred to either by ID (this field) or by URI (see PHOTO_THUMBNAIL_URI
and PHOTO_URI
). If PHOTO_ID is null, consult PHOTO_URI
or PHOTO_THUMBNAIL_URI
, which is a more generic mechanism for referencing the contact photo, especially for contacts returned by non-local directories (see Directory
).
Type: INTEGER REFERENCES data(_id)
Value: "photo_id"
PHOTO_THUMBNAIL_URI
static val PHOTO_THUMBNAIL_URI: String
A URI that can be used to retrieve a thumbnail of the contact's photo. A photo can be referred to either by a URI (this field or PHOTO_URI
) or by ID (see PHOTO_ID
). If PHOTO_ID is not null, PHOTO_URI and PHOTO_THUMBNAIL_URI shall not be null (but not necessarily vice versa). If the content provider does not differentiate between full-size photos and thumbnail photos, PHOTO_THUMBNAIL_URI and PHOTO_URI
can contain the same value, but either both shall be null or both not null.
Type: TEXT
Value: "photo_thumb_uri"
PHOTO_URI
static val PHOTO_URI: String
A URI that can be used to retrieve the contact's full-size photo. If PHOTO_FILE_ID is not null, this will be populated with a URI based off ContactsContract.DisplayPhoto#CONTENT_URI
. Otherwise, this will be populated with the same value as PHOTO_THUMBNAIL_URI
. A photo can be referred to either by a URI (this field) or by ID (see PHOTO_ID
). If either PHOTO_FILE_ID or PHOTO_ID is not null, PHOTO_URI and PHOTO_THUMBNAIL_URI shall not be null (but not necessarily vice versa). Thus using PHOTO_URI is a more robust method of retrieving contact photos.
Type: TEXT
Value: "photo_uri"