# ContactsContract.StatusUpdates

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

# StatusUpdates

*** ** * ** ***

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

```
class StatusUpdates : ContactsContract.PresenceColumns, ContactsContract.StatusColumns
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------|
| [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#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [ContactsContract.Presence](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Presence) |------------------------------------------------------------------------------------------------------------------------|--------| | [ContactsContract.Presence](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Presence) | <br /> | |

A status update is linked to a[ContactsContract.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data)row and captures the user's latest status update via the corresponding source, e.g. "Having lunch" via "Google Talk".

There are two ways a status update can be inserted: by explicitly linking it to a Data row using[DATA_ID](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#DATA_ID:kotlin.String)or indirectly linking it to a data row using a combination of[PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String)(or[CUSTOM_PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#CUSTOM_PROTOCOL:kotlin.String)) and[IM_HANDLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#IM_HANDLE:kotlin.String). There is no difference between insert and update, you can use either.

Inserting or updating a status update for the user's profile requires either using the[DATA_ID](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#DATA_ID:kotlin.String)to identify the data row to attach the update to, or[StatusUpdates.PROFILE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates#PROFILE_CONTENT_URI:android.net.Uri)to ensure that the change is scoped to the profile.

You cannot use android.content.ContentResolver#update to change a status, but android.content.ContentResolver#insert will replace the latests status if it already exists.

Use[ContentResolver.bulkInsert(Uri, ContentValues[])](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#bulkInsert(android.net.Uri,%20kotlin.Array))to insert/update statuses for multiple contacts at once.

### Columns

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                StatusUpdates                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ||||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| long   | [DATA_ID](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#DATA_ID:kotlin.String)                     | read/write | Reference to the[Data._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)entry that owns this presence. If this field is*not* specified, the provider will attempt to find a data row that matches the[PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String)(or[CUSTOM_PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#CUSTOM_PROTOCOL:kotlin.String)) and[IM_HANDLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#IM_HANDLE:kotlin.String)columns.                                                                                                                                                                                                                                                                                                   |
| long   | [PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#PROTOCOL:kotlin.String)                   | read/write | See[CommonDataKinds.Im](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im)for a list of defined protocol constants.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| String | [CUSTOM_PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#CUSTOM_PROTOCOL:kotlin.String)     | read/write | 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).                                                                                                                                                                                                                                    |
| String | [IM_HANDLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#IM_HANDLE:kotlin.String)                 | read/write | 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).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| String | [IM_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#IM_ACCOUNT:kotlin.String)               | read/write | The IM account for the local user that the presence data came from.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| int    | [PRESENCE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#PRESENCE:kotlin.String)                     | read/write | Contact IM presence status. The allowed values are: <br /> - [OFFLINE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#OFFLINE:kotlin.Int) - [INVISIBLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#INVISIBLE:kotlin.Int) - [AWAY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#AWAY:kotlin.Int) - [IDLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#IDLE:kotlin.Int) - [DO_NOT_DISTURB](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#DO_NOT_DISTURB:kotlin.Int) - [AVAILABLE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#AVAILABLE:kotlin.Int) <br /> Since presence status is inherently volatile, the content provider may choose not to store this field in long-term storage. |
| int    | [CHAT_CAPABILITY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CHAT_CAPABILITY:kotlin.String)       | read/write | Contact IM chat compatibility value. The allowed values combinations of the following flags. If None of these flags is set, the device can only do text messaging. <br /> - [CAPABILITY_HAS_VIDEO](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CAPABILITY_HAS_VIDEO:kotlin.Int) - [CAPABILITY_HAS_VOICE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CAPABILITY_HAS_VOICE:kotlin.Int) - [CAPABILITY_HAS_CAMERA](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#CAPABILITY_HAS_CAMERA:kotlin.Int) <br /> Since chat compatibility is inherently volatile as the contact's availability moves from one device to another, the content provider may choose not to store this field in long-term storage.                                                                                                                                       |
| String | [STATUS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS:kotlin.String)                         | read/write | Contact's latest status update, e.g. "having toast for breakfast"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| long   | [STATUS_TIMESTAMP](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_TIMESTAMP:kotlin.String)     | read/write | The absolute time in milliseconds when the status was entered by the user. If this value is not provided, the provider will follow this logic: if there was no prior status update, the value will be left as null. If there was a prior status update, the provider will default this field to the current time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| String | [STATUS_RES_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_RES_PACKAGE:kotlin.String) | read/write | The package containing resources for this status: label and icon.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| long   | [STATUS_LABEL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_LABEL:kotlin.String)             | read/write | The resource ID of the label describing the source of contact status, e.g. "Google Talk". This resource is scoped by the[STATUS_RES_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_RES_PACKAGE:kotlin.String).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| long   | [STATUS_ICON](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_ICON:kotlin.String)               | read/write | The resource ID of the icon for the source of contact status. This resource is scoped by the[STATUS_RES_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns#STATUS_RES_PACKAGE:kotlin.String).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

## Summary

|                                                                                                                                                                                                                       Constants                                                                                                                                                                                                                       ||
|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[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) 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. |
| static[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) 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.            |

| 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[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 methods                                                                                                                                                                                                         ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[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)`)` Gets the resource ID for the proper presence icon.                               |
| static[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)`)` Returns the precedence of the status code the higher number being the higher precedence. |

|                                                                                                                                                       Properties                                                                                                                                                       ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[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) The content:// style URI for this table                                                  |
| static[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) The content:// style URI for this table, specific to the user's profile. |

## Constants

### CONTENT_ITEM_TYPE

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

```
static val CONTENT_ITEM_TYPE: String
```

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.  

    Value: "vnd.android.cursor.item/status-update"

### CONTENT_TYPE

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

```
static val CONTENT_TYPE: String
```

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.  

    Value: "vnd.android.cursor.dir/status-update"

## Public methods

### getPresenceIconResourceId

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

```
static fun getPresenceIconResourceId(status: Int): Int
```

Gets the resource ID for the proper presence icon.

|                                                     Parameters                                                      ||
|----------|-----------------------------------------------------------------------------------------------------------|
| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the status to get the icon for |

|                                                          Return                                                          ||
|----------------------------------------------------------------------------|----------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the resource ID for the proper presence icon |

### getPresencePrecedence

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

```
static fun getPresencePrecedence(status: Int): Int
```

Returns the precedence of the status code the higher number being the higher precedence.

|                                              Parameters                                               ||
|----------|---------------------------------------------------------------------------------------------|
| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The status code. |

|                                                                 Return                                                                  ||
|----------------------------------------------------------------------------|-------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | An integer representing the precedence, 0 being the lowest. |

## Properties

### CONTENT_URI

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

```
static val CONTENT_URI: Uri!
```

The content:// style URI for this table  

### PROFILE_CONTENT_URI

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

```
static val PROFILE_CONTENT_URI: Uri!
```

The content:// style URI for this table, specific to the user's profile.