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

# Capability

*** ** * ** ***

```
class Capability
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.provider.PeopleContract.Capability](https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#) |

Bitmask flags indicating the types of communication reached or supported by a user identity in a People Directory.

**For People Directory applications:** People Directory applications should evaluate user capabilities and combine appropriate reachability flags via bitwise OR when populating the `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Persons#CAPABILITY:kotlin.String` column.

**For client applications:** Clients inspect these bitmask flags on returned person records to determine which interaction types (such as audio calling, video calling, or messaging) are supported before presenting communication actions or calling `https://developer.android.com/reference/kotlin/android/provider/PeopleContract#createPeopleInteractionRequest(android.content.ContentResolver,%20kotlin.String,%20android.os.Bundle)`:

- `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#TEXT_REACHABILITY:kotlin.Int` indicates support for `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Intents#PEOPLE_INTERACTION_TYPE_MESSAGE:kotlin.String`.
- `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#VOICE_REACHABILITY:kotlin.Int` indicates support for `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Intents#PEOPLE_INTERACTION_TYPE_VOICE:kotlin.String`.
- `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#VIDEO_REACHABILITY:kotlin.Int` indicates support for `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Intents#PEOPLE_INTERACTION_TYPE_VIDEO:kotlin.String`.

## Summary

| Constants ||
|---|---|
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#TEXT_REACHABILITY:kotlin.Int` Flag indicating that the person supports text communication (such as instant messaging). |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#VIDEO_REACHABILITY:kotlin.Int` Flag indicating that the person supports video communication (such as video calling). |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/provider/PeopleContract.Capability#VOICE_REACHABILITY:kotlin.Int` Flag indicating that the person supports voice communication (such as audio calling). |

## Constants

### TEXT_REACHABILITY

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

```
static val TEXT_REACHABILITY: Int
```

Flag indicating that the person supports text communication (such as instant messaging).

    Value: 4

### VIDEO_REACHABILITY

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

```
static val VIDEO_REACHABILITY: Int
```

Flag indicating that the person supports video communication (such as video calling).

    Value: 2

### VOICE_REACHABILITY

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

```
static val VOICE_REACHABILITY: Int
```

Flag indicating that the person supports voice communication (such as audio calling).

    Value: 1