docs/doc/reference/com/google/android/exoplayer2/drm/ExoMediaDrm.KeyStatus.html
Package com.google.android.exoplayer2.drm
Enclosing interface:ExoMediaDrm
public static final classExoMediaDrm.KeyStatusextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Defines the status of a key.
See Also:MediaDrm.KeyStatus
Constructors | Constructor | Description |
| --- | --- |
| KeyStatus(int statusCode, byte[] keyId) |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| byte[] | getKeyId() |
Returns the ID of the key.
|
| int | getStatusCode() |
Returns the status of the key, as defined by MediaDrm.KeyStatus.getStatusCode().
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public KeyStatus(int statusCode,
byte[] keyId)
Creates an instance.
Parameters:statusCode - The status code of the key, as defined by MediaDrm.KeyStatus.getStatusCode().keyId - The ID of the key.
-
public int getStatusCode()
Returns the status of the key, as defined by MediaDrm.KeyStatus.getStatusCode().
-
public byte[] getKeyId()
Returns the ID of the key.