DrmInitData
abstract class DrmInitData
| kotlin.Any | |
| ↳ | android.media.DrmInitData | 
Encapsulates initialization data required by a MediaDrm instance.
Summary
| Nested classes | |
|---|---|
| Scheme initialization data. | |
| Public methods | |
|---|---|
| abstract DrmInitData.SchemeInitData! | Retrieves initialization data for a given DRM scheme, specified by its UUID. | 
| open DrmInitData.SchemeInitData | getSchemeInitDataAt(index: Int)Returns the  | 
| open Int | Returns the number of  | 
Public methods
get
abstract funget(schemeUuid: UUID!): DrmInitData.SchemeInitData!
Deprecated: Use getSchemeInitDataCount and getSchemeInitDataAt instead.
Retrieves initialization data for a given DRM scheme, specified by its UUID.
| Parameters | |
|---|---|
| schemeUuid | UUID!: The DRM scheme's UUID. | 
| Return | |
|---|---|
| DrmInitData.SchemeInitData! | The initialization data for the scheme, or null if the scheme is not supported. | 
getSchemeInitDataAt
open fun getSchemeInitDataAt(index: Int): DrmInitData.SchemeInitData
Returns the SchemeInitData with the given index.
| Parameters | |
|---|---|
| index | Int: The index of the SchemeInitDatato return. | 
| Return | |
|---|---|
| DrmInitData.SchemeInitData | The SchemeInitDataassociated with the givenindex. This value cannot benull. | 
| Exceptions | |
|---|---|
| java.lang.IndexOutOfBoundsException | If the given indexis negative or greater thangetSchemeInitDataCount- 1. | 
getSchemeInitDataCount
open fun getSchemeInitDataCount(): Int
Returns the number of SchemeInitData elements available through getSchemeInitDataAt.
