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 SchemeInitData to return. | 
          
| Return | |
|---|---|
DrmInitData.SchemeInitData | 
            The SchemeInitData associated with the given index. This value cannot be null. | 
          
| Exceptions | |
|---|---|
java.lang.IndexOutOfBoundsException | 
            If the given index is negative or greater than getSchemeInitDataCount- 1. | 
          
getSchemeInitDataCount
open fun getSchemeInitDataCount(): Int
Returns the number of SchemeInitData elements available through getSchemeInitDataAt.