Class ExoMediaDrm.KeyStatus
- java.lang.Object
- 
- com.google.android.exoplayer2.drm.ExoMediaDrm.KeyStatus
 
- 
- Enclosing interface:
- ExoMediaDrm
 
 public static final class ExoMediaDrm.KeyStatus extends Object Defines the status of a key.- See Also:
- MediaDrm.KeyStatus
 
- 
- 
Constructor SummaryConstructors Constructor Description KeyStatus(int statusCode, byte[] keyId)Creates an instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getKeyId()Returns the ID of the key.intgetStatusCode()Returns the status of the key, as defined byMediaDrm.KeyStatus.getStatusCode().
 
- 
- 
- 
Constructor Detail- 
KeyStatuspublic 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.
 
 
- 
 - 
Method Detail- 
getStatusCodepublic int getStatusCode() Returns the status of the key, as defined byMediaDrm.KeyStatus.getStatusCode().
 - 
getKeyIdpublic byte[] getKeyId() Returns the ID of the key.
 
- 
 
-