Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
Contacts.PresenceColumns
android.provider.Contacts.PresenceColumns
|
Known indirect subclasses
|
This interface was deprecated
in API level 5.
see ContactsContract
The IM presence columns with some contacts specific columns mixed in.
Summary
Constants
AVAILABLE
public static final int AVAILABLE
Constant Value:
5
(0x00000005)
AWAY
public static final int AWAY
Constant Value:
2
(0x00000002)
DO_NOT_DISTURB
public static final int DO_NOT_DISTURB
Constant Value:
4
(0x00000004)
IDLE
public static final int IDLE
Constant Value:
3
(0x00000003)
IM_ACCOUNT
public static final String IM_ACCOUNT
This constant is deprecated.
see ContactsContract
The IM account for the local user that the presence data came from.
Type: STRING
Constant Value:
"im_account"
IM_HANDLE
public static final String IM_HANDLE
This constant is deprecated.
see ContactsContract
The IM handle the presence item is for. The handle is scoped to
the IM_PROTOCOL
.
Type: STRING
Constant Value:
"im_handle"
INVISIBLE
public static final int INVISIBLE
Constant Value:
1
(0x00000001)
OFFLINE
public static final int OFFLINE
Presence Status definition
Constant Value:
0
(0x00000000)
PRESENCE_CUSTOM_STATUS
public static final String PRESENCE_CUSTOM_STATUS
The user defined status line.
Type: TEXT
Constant Value:
"status"
PRESENCE_STATUS
public static final String PRESENCE_STATUS
The server defined status.
Type: INTEGER (one of the values below)
Constant Value:
"mode"
PRIORITY
public static final String PRIORITY
The priority, an integer, used by XMPP presence
Type: INTEGER
Constant 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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \n\nContacts.PresenceColumns\n========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/Contacts.PresenceColumns \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nContacts.PresenceColumns\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------|\n| android.provider.Contacts.PresenceColumns |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [Contacts.People](/reference/android/provider/Contacts.People) |----------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------| | [Contacts.People](/reference/android/provider/Contacts.People) | *This class was deprecated in API level 5. see [ContactsContract](/reference/android/provider/ContactsContract)* | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 5.** \n\nsee [ContactsContract](/reference/android/provider/ContactsContract)\n\nThe IM presence columns with some contacts specific columns mixed in.\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [AVAILABLE](/reference/android/provider/Contacts.PresenceColumns#AVAILABLE) |\n| `int` | [AWAY](/reference/android/provider/Contacts.PresenceColumns#AWAY) |\n| `int` | [DO_NOT_DISTURB](/reference/android/provider/Contacts.PresenceColumns#DO_NOT_DISTURB) |\n| `int` | [IDLE](/reference/android/provider/Contacts.PresenceColumns#IDLE) |\n| [String](/reference/java/lang/String) | [IM_ACCOUNT](/reference/android/provider/Contacts.PresenceColumns#IM_ACCOUNT) *This constant is deprecated. see [ContactsContract](/reference/android/provider/ContactsContract)* |\n| [String](/reference/java/lang/String) | [IM_HANDLE](/reference/android/provider/Contacts.PresenceColumns#IM_HANDLE) *This constant is deprecated. see [ContactsContract](/reference/android/provider/ContactsContract)* |\n| [String](/reference/java/lang/String) | [IM_PROTOCOL](/reference/android/provider/Contacts.PresenceColumns#IM_PROTOCOL) *This constant is deprecated. see [ContactsContract](/reference/android/provider/ContactsContract)* |\n| `int` | [INVISIBLE](/reference/android/provider/Contacts.PresenceColumns#INVISIBLE) |\n| `int` | [OFFLINE](/reference/android/provider/Contacts.PresenceColumns#OFFLINE) Presence Status definition |\n| [String](/reference/java/lang/String) | [PRESENCE_CUSTOM_STATUS](/reference/android/provider/Contacts.PresenceColumns#PRESENCE_CUSTOM_STATUS) The user defined status line. |\n| [String](/reference/java/lang/String) | [PRESENCE_STATUS](/reference/android/provider/Contacts.PresenceColumns#PRESENCE_STATUS) The server defined status. |\n| [String](/reference/java/lang/String) | [PRIORITY](/reference/android/provider/Contacts.PresenceColumns#PRIORITY) The priority, an integer, used by XMPP presence Type: INTEGER \u003cbr /\u003e |\n\nConstants\n---------\n\n### AVAILABLE\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int AVAILABLE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n5\n(0x00000005)\n\n\n### AWAY\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int AWAY\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### DO_NOT_DISTURB\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int DO_NOT_DISTURB\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\n### IDLE\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int IDLE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### IM_ACCOUNT\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String IM_ACCOUNT\n```\n\n\n**This constant is deprecated.** \n\nsee [ContactsContract](/reference/android/provider/ContactsContract)\n\nThe IM account for the local user that the presence data came from.\n\nType: STRING\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 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String IM_HANDLE\n```\n\n\n**This constant is deprecated.** \n\nsee [ContactsContract](/reference/android/provider/ContactsContract)\n\nThe IM handle the presence item is for. The handle is scoped to\nthe [IM_PROTOCOL](/reference/android/provider/Contacts.PresenceColumns#IM_PROTOCOL).\n\nType: STRING\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"im_handle\"\n\n\n### IM_PROTOCOL\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String IM_PROTOCOL\n```\n\n\n**This constant is deprecated.** \n\nsee [ContactsContract](/reference/android/provider/ContactsContract)\n\nThe IM service the presence is coming from. Formatted using either\n[Contacts.ContactMethods.encodePredefinedImProtocol](/reference/android/provider/Contacts.ContactMethods#encodePredefinedImProtocol(int)) or\n[Contacts.ContactMethods.encodeCustomImProtocol](/reference/android/provider/Contacts.ContactMethods#encodeCustomImProtocol(java.lang.String)).\n\nType: STRING\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"im_protocol\"\n\n\n### INVISIBLE\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int INVISIBLE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### OFFLINE\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int OFFLINE\n```\n\nPresence Status definition\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### PRESENCE_CUSTOM_STATUS\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String PRESENCE_CUSTOM_STATUS\n```\n\nThe user defined status line.\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"status\"\n\n\n### PRESENCE_STATUS\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String PRESENCE_STATUS\n```\n\nThe server defined status.\n\nType: INTEGER (one of the values below)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"mode\"\n\n\n### PRIORITY\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String PRIORITY\n```\n\nThe priority, an integer, used by XMPP presence\n\nType: INTEGER\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"priority\""]]