# ExoMediaDrm.KeyStatus

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/drm/ExoMediaDrm.java+class:androidx.media3.exoplayer.drm.ExoMediaDrm.KeyStatus)

*** ** * ** ***

<br />

```
class ExoMediaDrm.KeyStatus
```

<br />

*** ** * ** ***

Defines the status of a key.

| See also |
|---|---|
| `https://developer.android.com/reference/android/media/MediaDrm.KeyStatus.html` |   |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm.KeyStatus#KeyStatus(int,byte[])(statusCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, keyId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!)` Creates an instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm.KeyStatus#keyId()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm.KeyStatus#statusCode()` |

## Public constructors

### KeyStatus

```
KeyStatus(statusCode: Int, keyId: ByteArray<Byte>!)
```

Creates an instance.

| Parameters |
|---|---|
| `statusCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The status code of the key, as defined by `https://developer.android.com/reference/android/media/MediaDrm.KeyStatus.html#getStatusCode()`. |
| `keyId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!` | The ID of the key. |

## Public properties

### keyId

```
val keyId: Array<Byte>!
```

### statusCode

```
val statusCode: Int
```