Stay organized with collections
Save and categorize content based on your preferences.
protected
static
interface
ContactsContract.PresenceColumns
android.provider.ContactsContract.PresenceColumns
|
Known indirect subclasses
|
Additional data mixed in with StatusColumns
to link
back to specific ContactsContract.Data._ID
entries.
Summary
Constants
DATA_ID
public static final String DATA_ID
Reference to the Data._ID
entry that owns this presence.
Type: INTEGER
Constant Value:
"presence_data_id"
IM_ACCOUNT
public static final String IM_ACCOUNT
The IM account for the local user that the presence data came from.
Type: TEXT
Constant Value:
"im_account"
IM_HANDLE
public static final String IM_HANDLE
The IM handle the presence item is for. The handle is scoped to
PROTOCOL
.
Type: TEXT
Constant Value:
"im_handle"
PROTOCOL
public static final String PROTOCOL
See CommonDataKinds.Im
for a list of defined protocol constants.
Type: NUMBER
Constant Value:
"protocol"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ContactsContract.PresenceColumns\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \n\nContactsContract.PresenceColumns\n================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/ContactsContract.PresenceColumns \"View this page in Kotlin\") \\|Java\n\n\n`\nprotected\nstatic\n\n\ninterface\nContactsContract.PresenceColumns\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------|\n| android.provider.ContactsContract.PresenceColumns |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [ContactsContract.Presence](/reference/android/provider/ContactsContract.Presence), [ContactsContract.StatusUpdates](/reference/android/provider/ContactsContract.StatusUpdates) |----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ContactsContract.Presence](/reference/android/provider/ContactsContract.Presence) | *This class was deprecated in API level 5. This old name was never meant to be made public. Do not use.* | | [ContactsContract.StatusUpdates](/reference/android/provider/ContactsContract.StatusUpdates) | A status update is linked to a [ContactsContract.Data](/reference/android/provider/ContactsContract.Data) row and captures the user's latest status update via the corresponding source, e.g. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAdditional data mixed in with [StatusColumns](/reference/android/provider/ContactsContract.StatusColumns) to link\nback to specific [ContactsContract.Data._ID](/reference/android/provider/BaseColumns#_ID) entries. \n**See also:**\n\n- [ContactsContract.StatusUpdates](/reference/android/provider/ContactsContract.StatusUpdates)\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [CUSTOM_PROTOCOL](/reference/android/provider/ContactsContract.PresenceColumns#CUSTOM_PROTOCOL) Name of the custom protocol. |\n| [String](/reference/java/lang/String) | [DATA_ID](/reference/android/provider/ContactsContract.PresenceColumns#DATA_ID) Reference to the [Data._ID](/reference/android/provider/BaseColumns#_ID) entry that owns this presence. |\n| [String](/reference/java/lang/String) | [IM_ACCOUNT](/reference/android/provider/ContactsContract.PresenceColumns#IM_ACCOUNT) The IM account for the local user that the presence data came from. |\n| [String](/reference/java/lang/String) | [IM_HANDLE](/reference/android/provider/ContactsContract.PresenceColumns#IM_HANDLE) The IM handle the presence item is for. |\n| [String](/reference/java/lang/String) | [PROTOCOL](/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL) See [CommonDataKinds.Im](/reference/android/provider/ContactsContract.CommonDataKinds.Im) for a list of defined protocol constants. |\n\nConstants\n---------\n\n### CUSTOM_PROTOCOL\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String CUSTOM_PROTOCOL\n```\n\nName of the custom protocol. Should be supplied along with the [PROTOCOL](/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL) value\n[ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM](/reference/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM). Should be null or\nomitted if [PROTOCOL](/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL) value is not\n[ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM](/reference/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM).\n\nType: NUMBER\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"custom_protocol\"\n\n\n### DATA_ID\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String DATA_ID\n```\n\nReference to the [Data._ID](/reference/android/provider/BaseColumns#_ID) entry that owns this presence.\n\nType: INTEGER\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"presence_data_id\"\n\n\n### IM_ACCOUNT\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String IM_ACCOUNT\n```\n\nThe IM account for the local user that the presence data came from.\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"im_account\"\n\n\n### IM_HANDLE\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String IM_HANDLE\n```\n\nThe IM handle the presence item is for. The handle is scoped to\n[PROTOCOL](/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL).\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"im_handle\"\n\n\n### PROTOCOL\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String PROTOCOL\n```\n\nSee [CommonDataKinds.Im](/reference/android/provider/ContactsContract.CommonDataKinds.Im) for a list of defined protocol constants.\n\nType: NUMBER\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"protocol\""]]