Added in API level 11
Deprecated in API level 30

DrmInfo

open class DrmInfo
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
DrmInfo(infoType: Int, data: ByteArray!, mimeType: String!)

Creates a DrmInfo object with the given parameters.

DrmInfo(infoType: Int, path: String!, mimeType: String!)

Creates a DrmInfo object with the given parameters.

Public methods
open Any!
get(key: String!)

Retrieves the value of a given key.

open ByteArray!

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!>!

Retrieves an iterator object that you can use to iterate over the values associated with this DrmInfo object.

open MutableIterator<String!>!

Retrieves an iterator object that you can use to iterate over the keys associated with this DrmInfo object.

open Unit
put(key: String!, value: Any!)

Adds optional information as key-value pairs to this object.

Public constructors

DrmInfo

Added in API level 11
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

Added in API level 11
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

Added in API level 11
open fun get(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

Added in API level 11
open fun getData(): ByteArray!

Deprecated: Deprecated in Java.

Retrieves the trigger data associated with this object.

Return
ByteArray! The trigger data.

getInfoType

Added in API level 11
open fun getInfoType(): Int

Deprecated: Deprecated in Java.

Retrieves the information type associated with this object.

Return
Int The information type.

getMimeType

Added in API level 11
open fun getMimeType(): String!

Deprecated: Deprecated in Java.

Retrieves the MIME type associated with this object.

Return
String! The MIME type.

iterator

Added in API level 11
open fun iterator(): 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

Added in API level 11
open fun keyIterator(): 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

Added in API level 11
open fun put(
    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.