# ContactsContract.Presence

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Presence

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/ContactsContract.Presence "View this page in Java")  

```
class Presence : ContactsContract.StatusUpdates
```

|---|---|------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                              |||
| ↳ | [android.provider.ContactsContract.StatusUpdates](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates) ||
|   | ↳ | [android.provider.ContactsContract.Presence](https://developer.android.com/reference/kotlin/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.

## Summary

| Inherited constants ||
|---|---|
| From class[StatusColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [AVAILABLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#AVAILABLE:kotlin.Int) <br /> An allowed value of[PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String). <br />                                                                                                                                                                | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [AWAY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#AWAY:kotlin.Int) <br /> An allowed value of[PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String). <br />                                                                                                                                                                          | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAPABILITY_HAS_CAMERA](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CAPABILITY_HAS_CAMERA:kotlin.Int) <br /> An allowed flag of[CHAT_CAPABILITY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CHAT_CAPABILITY:kotlin.String). Indicates that the contact's device has a camera that can be used for video chat (e.g. a front-facing camera on a phone). <br /> | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAPABILITY_HAS_VIDEO](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CAPABILITY_HAS_VIDEO:kotlin.Int) <br /> An allowed flag of[CHAT_CAPABILITY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CHAT_CAPABILITY:kotlin.String). Indicates that the contact's device can display a video feed. <br />                                                               | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAPABILITY_HAS_VOICE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CAPABILITY_HAS_VOICE:kotlin.Int) <br /> An allowed flag of[CHAT_CAPABILITY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CHAT_CAPABILITY:kotlin.String). Indicates audio-chat capability (microphone and speaker) <br />                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CHAT_CAPABILITY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CHAT_CAPABILITY:kotlin.String) <br /> Contact's audio/video chat capability level. Type: INTEGER (one of the values below) <br />                                                                                                                                                                                                                  | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [DO_NOT_DISTURB](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#DO_NOT_DISTURB:kotlin.Int) <br /> An allowed value of[PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String). <br />                                                                                                                                                      | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [IDLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#IDLE:kotlin.Int) <br /> An allowed value of[PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String). <br />                                                                                                                                                                          | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [INVISIBLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#INVISIBLE:kotlin.Int) <br /> An allowed value of[PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String). <br />                                                                                                                                                                | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [OFFLINE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#OFFLINE:kotlin.Int) <br /> An allowed value of[PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String). <br />                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String) <br /> Contact's latest presence level. Type: INTEGER (one of the values below) <br />                                                                                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PRESENCE_CUSTOM_STATUS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE_CUSTOM_STATUS:kotlin.String) <br />                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PRESENCE_STATUS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE_STATUS:kotlin.String) <br />                                                                                                                                                                                                                                                                                                              | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS:kotlin.String) <br /> Contact latest status update. Type: TEXT <br />                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS_ICON](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_ICON:kotlin.String) <br /> The resource ID of the icon for the source of the status update. This resource should be scoped by the[STATUS_RES_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_RES_PACKAGE:kotlin.String). Type: NUMBER <br />                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS_LABEL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_LABEL:kotlin.String) <br /> The resource ID of the label describing the source of the status update, e.g. "Google Talk". This resource should be scoped by the[STATUS_RES_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_RES_PACKAGE:kotlin.String). Type: NUMBER <br />       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS_RES_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_RES_PACKAGE:kotlin.String) <br /> The package containing resources for this status: label and icon. Type: TEXT <br />                                                                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS_TIMESTAMP](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_TIMESTAMP:kotlin.String) <br /> The absolute time in milliseconds when the latest status was inserted/updated. Type: NUMBER <br />                                                                                                                                                                                                         | ||
| From class[StatusUpdates](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates) |----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#CONTENT_ITEM_TYPE:kotlin.String) <br /> The MIME type of a[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#CONTENT_URI:android.net.Uri)subdirectory of a single status update detail. <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#CONTENT_TYPE:kotlin.String) <br /> The MIME type of[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#CONTENT_URI:android.net.Uri)providing a directory of status update details. <br />            | ||
| From class[PresenceColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CUSTOM_PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#CUSTOM_PROTOCOL:kotlin.String) <br /> Name of the custom protocol. Should be supplied along with the[PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String)value[ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM:kotlin.Int). Should be null or omitted if[PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String)value is not[ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM:kotlin.Int). Type: NUMBER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA_ID](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#DATA_ID:kotlin.String) <br /> Reference to the[Data._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)entry that owns this presence. Type: INTEGER <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [IM_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#IM_ACCOUNT:kotlin.String) <br /> The IM account for the local user that the presence data came from. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [IM_HANDLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#IM_HANDLE:kotlin.String) <br /> The IM handle the presence item is for. The handle is scoped to[PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String). Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String) <br /> See[CommonDataKinds.Im](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im)for a list of defined protocol constants. Type: NUMBER <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | ||

|                                                      Public constructors                                                       ||
|-----------------------------------------------------------------------------------------------------------------------------|---|
| [Presence](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Presence#Presence())`()` <br /> |

| Inherited functions ||
|---|---|
| From class[StatusUpdates](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates) |----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPresenceIconResourceId](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#getPresenceIconResourceId(kotlin.Int))`(`status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> Gets the resource ID for the proper presence icon. <br />                               | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPresencePrecedence](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#getPresencePrecedence(kotlin.Int))`(`status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> Returns the precedence of the status code the higher number being the higher precedence. <br /> | ||

| Inherited properties ||
|---|---|
| From class[StatusUpdates](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates) |------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#CONTENT_URI:android.net.Uri) <br /> The content:// style URI for this table <br />                                                  | | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [PROFILE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#PROFILE_CONTENT_URI:android.net.Uri) <br /> The content:// style URI for this table, specific to the user's profile. <br /> | ||

## Public constructors

### Presence

```
Presence()
```