Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#constants)

# ContactsContract.PresenceColumns

*** ** * ** ***


`
protected
static


interface
ContactsContract.PresenceColumns
`


`


`

|---|
| android.provider.ContactsContract.PresenceColumns |

|---|
| Known indirect subclasses [ContactsContract.Presence](https://developer.android.com/reference/android/provider/ContactsContract.Presence), [ContactsContract.StatusUpdates](https://developer.android.com/reference/android/provider/ContactsContract.StatusUpdates) |---|---| | [ContactsContract.Presence](https://developer.android.com/reference/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.* | | [ContactsContract.StatusUpdates](https://developer.android.com/reference/android/provider/ContactsContract.StatusUpdates) | A status update is linked to a `https://developer.android.com/reference/android/provider/ContactsContract.Data` row and captures the user's latest status update via the corresponding source, e.g. | |

<br />

*** ** * ** ***

Additional data mixed in with `https://developer.android.com/reference/android/provider/ContactsContract.StatusColumns` to link
back to specific `https://developer.android.com/reference/android/provider/BaseColumns#_ID` entries.
**See also:**

- `https://developer.android.com/reference/android/provider/ContactsContract.StatusUpdates`

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#CUSTOM_PROTOCOL` Name of the custom protocol. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#DATA_ID` Reference to the `https://developer.android.com/reference/android/provider/BaseColumns#_ID` entry that owns this presence. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#IM_ACCOUNT` The IM account for the local user that the presence data came from. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#IM_HANDLE` The IM handle the presence item is for. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL` See `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im` for a list of defined protocol constants. |

## Constants

### CUSTOM_PROTOCOL

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

```
public static final String CUSTOM_PROTOCOL
```

Name of the custom protocol. Should be supplied along with the `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL` value
`https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM`. Should be null or
omitted if `https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL` value is not
`https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im#PROTOCOL_CUSTOM`.

Type: NUMBER

<br />

<br />

Constant Value:

"custom_protocol"


### DATA_ID

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

```
public static final String DATA_ID
```

Reference to the `https://developer.android.com/reference/android/provider/BaseColumns#_ID` entry that owns this presence.

Type: INTEGER

<br />

<br />

Constant Value:

"presence_data_id"


### IM_ACCOUNT

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

```
public static final String IM_ACCOUNT
```

The IM account for the local user that the presence data came from.

Type: TEXT

<br />

<br />

Constant Value:

"im_account"


### IM_HANDLE

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

```
public static final String IM_HANDLE
```

The IM handle the presence item is for. The handle is scoped to
`https://developer.android.com/reference/android/provider/ContactsContract.PresenceColumns#PROTOCOL`.

Type: TEXT

<br />

<br />

Constant Value:

"im_handle"


### PROTOCOL

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

```
public static final String PROTOCOL
```

See `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im` for a list of defined protocol constants.

Type: NUMBER

<br />

<br />

Constant Value:

"protocol"