Added in API level 11
Deprecated in API level 30

DrmInfoRequest

open class DrmInfoRequest
kotlin.Any
   ↳ android.drm.DrmInfoRequest

An entity class that is used to pass information to an online DRM server. An instance of this class is passed to the acquireDrmInfo() method to get an instance of a DrmInfo.

Summary

Constants
static String

Key that is used to pass the unique session ID for the account or the user.

static String

Key that is used to pass the unique session ID for the subscription.

static Int

Acquires DRM server registration information.

static Int

Acquires rights information.

static Int

Acquires the progress of the rights acquisition.

static Int

Acquires information for unregistering the DRM server.

Public constructors
DrmInfoRequest(infoType: Int, mimeType: String!)

Creates a DrmInfoRequest object with type and MIME type.

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

Retrieves the value of a given key.

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 DrmInfoRequest object.

open MutableIterator<String!>!

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

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

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

Constants

ACCOUNT_ID

Added in API level 11
static val ACCOUNT_ID: String

Deprecated: Deprecated in Java.

Key that is used to pass the unique session ID for the account or the user.

Value: "account_id"

SUBSCRIPTION_ID

Added in API level 11
static val SUBSCRIPTION_ID: String

Deprecated: Deprecated in Java.

Key that is used to pass the unique session ID for the subscription.

Value: "subscription_id"

TYPE_REGISTRATION_INFO

Added in API level 11
static val TYPE_REGISTRATION_INFO: Int

Deprecated: Deprecated in Java.

Acquires DRM server registration information.

Value: 1

TYPE_RIGHTS_ACQUISITION_INFO

Added in API level 11
static val TYPE_RIGHTS_ACQUISITION_INFO: Int

Deprecated: Deprecated in Java.

Acquires rights information.

Value: 3

TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO

Added in API level 11
static val TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO: Int

Deprecated: Deprecated in Java.

Acquires the progress of the rights acquisition.

Value: 4

TYPE_UNREGISTRATION_INFO

Added in API level 11
static val TYPE_UNREGISTRATION_INFO: Int

Deprecated: Deprecated in Java.

Acquires information for unregistering the DRM server.

Value: 2

Public constructors

DrmInfoRequest

Added in API level 11
DrmInfoRequest(
    infoType: Int,
    mimeType: String!)

Creates a DrmInfoRequest object with type and MIME type.

Parameters
infoType Int: Type of information.
mimeType String!: 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 that is being retrieved. Returns null if the key cannot be found.

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 DrmInfoRequest 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 DrmInfoRequest 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.

Parameters
key String!: The key to add.
value Any!: The value to add.