# ContactsContract.PresenceColumns

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

# PresenceColumns

*** ** * ** ***

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

```
protected interface PresenceColumns
```

|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.provider.ContactsContract.PresenceColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PresenceColumns#) |

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [ContactsContract.StatusUpdates](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates) |----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ContactsContract.StatusUpdates](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusUpdates) | 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. | |

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Indirect 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 /> | |

Additional data mixed in with[StatusColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.StatusColumns)to link back to specific[ContactsContract.Data._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)entries.

## Summary

|                                                                                                                                                                                             Constants                                                                                                                                                                                             ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[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) Name of the custom protocol.                                                                                                                            |
| static[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) Reference to the[Data._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)entry that owns this presence.                 |
| static[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) The IM account for the local user that the presence data came from.                                                                                               |
| static[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) The IM handle the presence item is for.                                                                                                                             |
| static[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) See[CommonDataKinds.Im](https://developer.android.com/reference/kotlin/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.html#ApiLevels)  

```
static val CUSTOM_PROTOCOL: String
```

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  

    Value: "custom_protocol"

### DATA_ID

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

```
static val DATA_ID: String
```

Reference to the[Data._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)entry that owns this presence.

Type: INTEGER  

    Value: "presence_data_id"

### IM_ACCOUNT

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

```
static val IM_ACCOUNT: String
```

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

Type: TEXT  

    Value: "im_account"

### IM_HANDLE

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

```
static val IM_HANDLE: String
```

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  

    Value: "im_handle"

### PROTOCOL

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

```
static val PROTOCOL: String
```

See[CommonDataKinds.Im](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Im)for a list of defined protocol constants.

Type: NUMBER  

    Value: "protocol"