Stay organized with collections
Save and categorize content based on your preferences.
PresenceColumns
protected interface PresenceColumns
Known Indirect Subclasses
|
Additional data mixed in with StatusColumns
to link back to specific ContactsContract.Data._ID
entries.
Summary
Constants |
static String |
Name of the custom protocol.
|
static String |
Reference to the Data._ID entry that owns this presence.
|
static String |
The IM account for the local user that the presence data came from.
|
static String |
The IM handle the presence item is for.
|
static String |
See CommonDataKinds.Im for a list of defined protocol constants.
|
Constants
DATA_ID
static val DATA_ID: String
Reference to the Data._ID
entry that owns this presence.
Type: INTEGER
Value: "presence_data_id"
IM_ACCOUNT
static val IM_ACCOUNT: String
The IM account for the local user that the presence data came from.
Type: TEXT
Value: "im_account"
IM_HANDLE
static val IM_HANDLE: String
The IM handle the presence item is for. The handle is scoped to PROTOCOL
.
Type: TEXT
Value: "im_handle"
PROTOCOL
static val PROTOCOL: String
See CommonDataKinds.Im
for a list of defined protocol constants.
Type: NUMBER
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ContactsContract.PresenceColumns\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPresenceColumns\n===============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/ContactsContract.PresenceColumns \"View this page in Java\") \n\n```\nprotected interface PresenceColumns\n```\n\n|--------------------------------------------------------|\n| [android.provider.ContactsContract.PresenceColumns](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ContactsContract.StatusUpdates](/reference/kotlin/android/provider/ContactsContract.StatusUpdates) |-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ContactsContract.StatusUpdates](/reference/kotlin/android/provider/ContactsContract.StatusUpdates) | A status update is linked to a [ContactsContract.Data](/reference/kotlin/android/provider/ContactsContract.Data) row and captures the user's latest status update via the corresponding source, e. | |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [ContactsContract.Presence](/reference/kotlin/android/provider/ContactsContract.Presence) |-------------------------------------------------------------------------------------------|--------| | [ContactsContract.Presence](/reference/kotlin/android/provider/ContactsContract.Presence) | \u003cbr /\u003e | |\n\nAdditional data mixed in with [StatusColumns](/reference/kotlin/android/provider/ContactsContract.StatusColumns) to link back to specific [ContactsContract.Data._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) entries.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CUSTOM_PROTOCOL](#CUSTOM_PROTOCOL:kotlin.String) Name of the custom protocol. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA_ID](#DATA_ID:kotlin.String) Reference to the [Data._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) entry that owns this presence. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [IM_ACCOUNT](#IM_ACCOUNT:kotlin.String) The IM account for the local user that the presence data came from. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [IM_HANDLE](#IM_HANDLE:kotlin.String) The IM handle the presence item is for. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PROTOCOL](#PROTOCOL:kotlin.String) See [CommonDataKinds.Im](/reference/kotlin/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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CUSTOM_PROTOCOL: String\n```\n\nName of the custom protocol. Should be supplied along with the [PROTOCOL](#PROTOCOL:kotlin.String) value [ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM:kotlin.Int). Should be null or omitted if [PROTOCOL](#PROTOCOL:kotlin.String) value is not [ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM:kotlin.Int).\n\nType: NUMBER \n\n Value: \"custom_protocol\"\n\n### DATA_ID\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DATA_ID: String\n```\n\nReference to the [Data._ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) entry that owns this presence.\n\nType: INTEGER \n\n Value: \"presence_data_id\"\n\n### IM_ACCOUNT\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IM_ACCOUNT: String\n```\n\nThe IM account for the local user that the presence data came from.\n\nType: TEXT \n\n Value: \"im_account\"\n\n### IM_HANDLE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IM_HANDLE: String\n```\n\nThe IM handle the presence item is for. The handle is scoped to [PROTOCOL](#PROTOCOL:kotlin.String).\n\nType: TEXT \n\n Value: \"im_handle\"\n\n### PROTOCOL\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PROTOCOL: String\n```\n\nSee [CommonDataKinds.Im](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im) for a list of defined protocol constants.\n\nType: NUMBER \n\n Value: \"protocol\""]]