Stay organized with collections
Save and categorize content based on your preferences.
PresenceColumns
interface PresenceColumns
The IM presence columns with some contacts specific columns mixed in.
Summary
Constants |
static Int |
|
static Int |
|
static Int |
|
static Int |
|
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 |
The IM service the presence is coming from.
|
static Int |
|
static Int |
Presence Status definition
|
static String |
The user defined status line.
|
static String |
The server defined status.
|
static String |
The priority, an integer, used by XMPP presence
|
Constants
AVAILABLE
static val AVAILABLE: Int
Deprecated: Deprecated in Java.
Value: 5
AWAY
static val AWAY: Int
Deprecated: Deprecated in Java.
Value: 2
DO_NOT_DISTURB
static val DO_NOT_DISTURB: Int
Deprecated: Deprecated in Java.
Value: 4
IDLE
static val IDLE: Int
Deprecated: Deprecated in Java.
Value: 3
INVISIBLE
static val INVISIBLE: Int
Deprecated: Deprecated in Java.
Value: 1
OFFLINE
static val OFFLINE: Int
Deprecated: Deprecated in Java.
Presence Status definition
Value: 0
PRESENCE_CUSTOM_STATUS
static val PRESENCE_CUSTOM_STATUS: String
Deprecated: Deprecated in Java.
The user defined status line.
Type: TEXT
Value: "status"
PRESENCE_STATUS
static val PRESENCE_STATUS: String
Deprecated: Deprecated in Java.
The server defined status.
Type: INTEGER (one of the values below)
Value: "mode"
PRIORITY
static val PRIORITY: String
Deprecated: Deprecated in Java.
The priority, an integer, used by XMPP presence
Type: INTEGER
Value: "priority"
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,["# Contacts.PresenceColumns\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated 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/Contacts.PresenceColumns \"View this page in Java\") \n\n```\ninterface PresenceColumns\n```\n\n|------------------------------------------------|\n| [android.provider.Contacts.PresenceColumns](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Contacts.People](/reference/kotlin/android/provider/Contacts.People) |-----------------------------------------------------------------------|-----------------------------| | [Contacts.People](/reference/kotlin/android/provider/Contacts.People) | This table contains people. | |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 5.**\n|\n| see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)\n\nThe IM presence columns with some contacts specific columns mixed in.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [AVAILABLE](#AVAILABLE:kotlin.Int) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [AWAY](#AWAY:kotlin.Int) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [DO_NOT_DISTURB](#DO_NOT_DISTURB:kotlin.Int) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [IDLE](#IDLE:kotlin.Int) \u003cbr /\u003e |\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) | [IM_PROTOCOL](#IM_PROTOCOL:kotlin.String) The IM service the presence is coming from. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INVISIBLE](#INVISIBLE:kotlin.Int) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OFFLINE](#OFFLINE:kotlin.Int) Presence Status definition |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PRESENCE_CUSTOM_STATUS](#PRESENCE_CUSTOM_STATUS:kotlin.String) The user defined status line. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PRESENCE_STATUS](#PRESENCE_STATUS:kotlin.String) The server defined status. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PRIORITY](#PRIORITY:kotlin.String) The priority, an integer, used by XMPP presence |\n\nConstants\n---------\n\n### AVAILABLE\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val AVAILABLE: Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n Value: 5\n\n### AWAY\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val AWAY: Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n Value: 2\n\n### DO_NOT_DISTURB\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DO_NOT_DISTURB: Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n Value: 4\n\n### IDLE\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IDLE: Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n Value: 3\n\n### IM_ACCOUNT\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IM_ACCOUNT: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe IM account for the local user that the presence data came from.\n\nType: STRING \n\n Value: \"im_account\"\n\n### IM_HANDLE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IM_HANDLE: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe IM handle the presence item is for. The handle is scoped to the [IM_PROTOCOL](#IM_PROTOCOL:kotlin.String).\n\nType: STRING \n\n Value: \"im_handle\"\n\n### IM_PROTOCOL\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IM_PROTOCOL: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe IM service the presence is coming from. Formatted using either [Contacts.ContactMethods.encodePredefinedImProtocol](/reference/kotlin/android/provider/Contacts.ContactMethods#encodePredefinedImProtocol(kotlin.Int)) or [Contacts.ContactMethods.encodeCustomImProtocol](/reference/kotlin/android/provider/Contacts.ContactMethods#encodeCustomImProtocol(kotlin.String)).\n\nType: STRING \n\n Value: \"im_protocol\"\n\n### INVISIBLE\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val INVISIBLE: Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n Value: 1\n\n### OFFLINE\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val OFFLINE: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nPresence Status definition \n\n Value: 0\n\n### PRESENCE_CUSTOM_STATUS\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PRESENCE_CUSTOM_STATUS: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe user defined status line.\n\nType: TEXT \n\n Value: \"status\"\n\n### PRESENCE_STATUS\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PRESENCE_STATUS: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe server defined status.\n\nType: INTEGER (one of the values below) \n\n Value: \"mode\"\n\n### PRIORITY\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PRIORITY: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe priority, an integer, used by XMPP presence\n\nType: INTEGER \n\n Value: \"priority\""]]