protected static interface ContactsContract.ContactsColumns
ContactsContract.Contacts
that refer to intrinsic
properties of the contact, as opposed to the user-specified options
found in ContactsContract.ContactOptionsColumns
.Modifier and Type | Field and Description |
---|---|
static String |
DISPLAY_NAME
The display name for the contact.
|
static String |
HAS_PHONE_NUMBER
An indicator of whether this contact has at least one phone number.
|
static String |
IN_VISIBLE_GROUP
Flag that reflects the
ContactsContract.GroupsColumns.GROUP_VISIBLE state of any
ContactsContract.CommonDataKinds.GroupMembership for this contact. |
static String |
IS_USER_PROFILE
Flag that reflects whether this contact represents the user's
personal profile entry.
|
static String |
LOOKUP_KEY
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 |
NAME_RAW_CONTACT_ID
Reference to the row in the RawContacts table holding the contact name.
|
static String |
PHOTO_FILE_ID
Photo file ID of the full-size photo.
|
static String |
PHOTO_ID
Reference to the row in the data table holding the photo.
|
static String |
PHOTO_THUMBNAIL_URI
A URI that can be used to retrieve a thumbnail of the contact's photo.
|
static String |
PHOTO_URI
A URI that can be used to retrieve the contact's full-size photo.
|
static final String DISPLAY_NAME
Type: TEXT
static final String NAME_RAW_CONTACT_ID
Type: INTEGER REFERENCES raw_contacts(_id)
static final String PHOTO_ID
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 ContactsContract.Directory
).
Type: INTEGER REFERENCES data(_id)
static final String PHOTO_FILE_ID
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
static final String PHOTO_URI
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
static final String PHOTO_THUMBNAIL_URI
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
static final String IN_VISIBLE_GROUP
ContactsContract.GroupsColumns.GROUP_VISIBLE
state of any
ContactsContract.CommonDataKinds.GroupMembership
for this contact.static final String IS_USER_PROFILE
static final String HAS_PHONE_NUMBER
Type: INTEGER
static final String LOOKUP_KEY