DrmInfo
open classDrmInfo
| kotlin.Any | |
| ↳ | android.drm.DrmInfo | 
An entity class that describes the information required to send transactions between a device and an online DRM server. The DRM framework achieves server registration, license acquisition, and any other server-related transactions by passing an instance of this class to DrmManagerClient.processDrmInfo. 
 The caller can retrieve the DrmInfo instance by passing a DrmInfoRequest instance to DrmManagerClient.acquireDrmInfo.
Summary
| Public constructors | |
|---|---|
| Creates a  | |
| Creates a  | |
| Public methods | |
|---|---|
| open Any! | Retrieves the value of a given key. | 
| open ByteArray! | getData()Retrieves the trigger data associated with this object. | 
| open Int | Retrieves the information type associated with this object. | 
| open String! | Retrieves the MIME type associated with this object. | 
| open MutableIterator<Any!>! | iterator()Retrieves an iterator object that you can use to iterate over the values associated with this  | 
| open MutableIterator<String!>! | Retrieves an iterator object that you can use to iterate over the keys associated with this  | 
| open Unit | Adds optional information as key-value pairs to this object. | 
Public constructors
DrmInfo
DrmInfo(
infoType: Int,
data: ByteArray!,
mimeType: String!)
Creates a DrmInfo object with the given parameters.
| Parameters | |
|---|---|
| infoType | Int: The type of information. | 
| data | ByteArray!: The trigger data. | 
| mimeType | String!: The MIME type. | 
DrmInfo
DrmInfo(
infoType: Int,
path: String!,
mimeType: String!)
Creates a DrmInfo object with the given parameters.
| Parameters | |
|---|---|
| infoType | Int: The type of information. | 
| path | String!: The trigger data. | 
| mimeType | String!: The MIME type. | 
Public methods
get
open funget(key: String!): Any!
Deprecated: Deprecated in Java.
Retrieves the value of a given key.
| Parameters | |
|---|---|
| key | String!: The key whose value is being retrieved. | 
| Return | |
|---|---|
| Any! | The value of the key being retrieved. Returns null if the key cannot be found. | 
getData
open fungetData(): ByteArray!
Deprecated: Deprecated in Java.
Retrieves the trigger data associated with this object.
| Return | |
|---|---|
| ByteArray! | The trigger data. | 
getInfoType
open fungetInfoType(): Int
Deprecated: Deprecated in Java.
Retrieves the information type associated with this object.
| Return | |
|---|---|
| Int | The information type. | 
getMimeType
open fungetMimeType(): String!
Deprecated: Deprecated in Java.
Retrieves the MIME type associated with this object.
| Return | |
|---|---|
| String! | The MIME type. | 
iterator
open funiterator(): MutableIterator<Any!>!
Deprecated: Deprecated in Java.
Retrieves an iterator object that you can use to iterate over the values associated with this DrmInfo object.
| Return | |
|---|---|
| MutableIterator<Any!>! | The iterator object. | 
keyIterator
open funkeyIterator(): MutableIterator<String!>!
Deprecated: Deprecated in Java.
Retrieves an iterator object that you can use to iterate over the keys associated with this DrmInfo object.
| Return | |
|---|---|
| MutableIterator<String!>! | The iterator object. | 
put
open funput(
key: String!,
value: Any!
): Unit
Deprecated: Deprecated in Java.
Adds optional information as key-value pairs to this object. To add a custom object to the DrmInfo object, you must override the toString implementation.
| Parameters | |
|---|---|
| key | String!: Key to add. | 
| value | Any!: Value to add. | 
