public static final class ContactsContract.CommonDataKinds.Im extends Object implements ContactsContract.DataColumnsWithJoins, ContactsContract.CommonDataKinds.CommonColumns
A data kind representing an IM address
You can use all columns defined for ContactsContract.Data
as
well as the following aliases.
Type | Alias | Data column | |
---|---|---|---|
String | ContactsContract.CommonDataKinds.CommonColumns.DATA |
ContactsContract.DataColumns.DATA1 |
|
int | ContactsContract.CommonDataKinds.CommonColumns.TYPE |
ContactsContract.DataColumns.DATA2 |
Allowed values are:
|
String | ContactsContract.CommonDataKinds.CommonColumns.LABEL |
ContactsContract.DataColumns.DATA3 |
|
String | PROTOCOL |
ContactsContract.DataColumns.DATA5 |
Allowed values:
|
String | CUSTOM_PROTOCOL |
ContactsContract.DataColumns.DATA6 |
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_ITEM_TYPE
MIME type used when storing this in data table.
|
static String |
CUSTOM_PROTOCOL |
static String |
PROTOCOL
This column should be populated with one of the defined
constants, e.g.
|
static int |
PROTOCOL_AIM |
static int |
PROTOCOL_CUSTOM |
static int |
PROTOCOL_GOOGLE_TALK |
static int |
PROTOCOL_ICQ |
static int |
PROTOCOL_JABBER |
static int |
PROTOCOL_MSN |
static int |
PROTOCOL_NETMEETING |
static int |
PROTOCOL_QQ |
static int |
PROTOCOL_SKYPE |
static int |
PROTOCOL_YAHOO |
static int |
TYPE_HOME |
static int |
TYPE_OTHER |
static int |
TYPE_WORK |
_COUNT, _ID
DATA_VERSION, DATA1, DATA10, DATA11, DATA12, DATA13, DATA14, DATA15, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, DATA8, DATA9, IS_PRIMARY, IS_READ_ONLY, IS_SUPER_PRIMARY, MIMETYPE, RAW_CONTACT_ID, RES_PACKAGE, SYNC1, SYNC2, SYNC3, SYNC4
AVAILABLE, AWAY, CAPABILITY_HAS_CAMERA, CAPABILITY_HAS_VIDEO, CAPABILITY_HAS_VOICE, CHAT_CAPABILITY, DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, PRESENCE, PRESENCE_CUSTOM_STATUS, PRESENCE_STATUS, STATUS, STATUS_ICON, STATUS_LABEL, STATUS_RES_PACKAGE, STATUS_TIMESTAMP
ACCOUNT_TYPE_AND_DATA_SET, AGGREGATION_MODE, CONTACT_ID, DATA_SET, DELETED, NAME_VERIFIED, RAW_CONTACT_IS_READ_ONLY, RAW_CONTACT_IS_USER_PROFILE
DISPLAY_NAME, HAS_PHONE_NUMBER, IN_VISIBLE_GROUP, IS_USER_PROFILE, LOOKUP_KEY, NAME_RAW_CONTACT_ID, PHOTO_FILE_ID, PHOTO_ID, PHOTO_THUMBNAIL_URI, PHOTO_URI
DISPLAY_NAME_ALTERNATIVE, DISPLAY_NAME_PRIMARY, DISPLAY_NAME_SOURCE, PHONETIC_NAME, PHONETIC_NAME_STYLE, SORT_KEY_ALTERNATIVE, SORT_KEY_PRIMARY
CUSTOM_RINGTONE, LAST_TIME_CONTACTED, SEND_TO_VOICEMAIL, STARRED, TIMES_CONTACTED
CONTACT_CHAT_CAPABILITY, CONTACT_PRESENCE, CONTACT_STATUS, CONTACT_STATUS_ICON, CONTACT_STATUS_LABEL, CONTACT_STATUS_RES_PACKAGE, CONTACT_STATUS_TIMESTAMP
DATA, LABEL, TYPE
TYPE_CUSTOM
Modifier and Type | Method and Description |
---|---|
static CharSequence |
getProtocolLabel(Resources res,
int type,
CharSequence label)
Return a
CharSequence that best describes the given
protocol, possibly substituting the given
CUSTOM_PROTOCOL value for PROTOCOL_CUSTOM . |
static int |
getProtocolLabelResource(int type)
Return the string resource that best describes the given
PROTOCOL . |
static CharSequence |
getTypeLabel(Resources res,
int type,
CharSequence label)
Return a
CharSequence that best describes the given type,
possibly substituting the given ContactsContract.CommonDataKinds.CommonColumns.LABEL value
for ContactsContract.CommonDataKinds.BaseTypes.TYPE_CUSTOM . |
static int |
getTypeLabelResource(int type)
Return the string resource that best describes the given
ContactsContract.CommonDataKinds.CommonColumns.TYPE . |
public static final String CONTENT_ITEM_TYPE
public static final int TYPE_HOME
public static final int TYPE_WORK
public static final int TYPE_OTHER
public static final String PROTOCOL
PROTOCOL_YAHOO
. If the value of this
column is PROTOCOL_CUSTOM
, the CUSTOM_PROTOCOL
should contain the name of the custom protocol.public static final String CUSTOM_PROTOCOL
public static final int PROTOCOL_CUSTOM
public static final int PROTOCOL_AIM
public static final int PROTOCOL_MSN
public static final int PROTOCOL_YAHOO
public static final int PROTOCOL_SKYPE
public static final int PROTOCOL_QQ
public static final int PROTOCOL_GOOGLE_TALK
public static final int PROTOCOL_ICQ
public static final int PROTOCOL_JABBER
public static final int PROTOCOL_NETMEETING
public static final int getTypeLabelResource(int type)
ContactsContract.CommonDataKinds.CommonColumns.TYPE
. Will always return a valid resource.public static final CharSequence getTypeLabel(Resources res, int type, CharSequence label)
CharSequence
that best describes the given type,
possibly substituting the given ContactsContract.CommonDataKinds.CommonColumns.LABEL
value
for ContactsContract.CommonDataKinds.BaseTypes.TYPE_CUSTOM
.public static final int getProtocolLabelResource(int type)
PROTOCOL
. Will always return a valid resource.public static final CharSequence getProtocolLabel(Resources res, int type, CharSequence label)
CharSequence
that best describes the given
protocol, possibly substituting the given
CUSTOM_PROTOCOL
value for PROTOCOL_CUSTOM
.