DrmInfoRequest
open classDrmInfoRequest
| 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  | |
| Public methods | |
|---|---|
| open Any! | 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!>! | 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. | 
Constants
ACCOUNT_ID
static valACCOUNT_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
static valSUBSCRIPTION_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
static valTYPE_REGISTRATION_INFO: Int
Deprecated: Deprecated in Java.
Acquires DRM server registration information.
Value: 1TYPE_RIGHTS_ACQUISITION_INFO
static valTYPE_RIGHTS_ACQUISITION_INFO: Int
Deprecated: Deprecated in Java.
Acquires rights information.
Value: 3TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO
static valTYPE_RIGHTS_ACQUISITION_PROGRESS_INFO: Int
Deprecated: Deprecated in Java.
Acquires the progress of the rights acquisition.
Value: 4TYPE_UNREGISTRATION_INFO
static valTYPE_UNREGISTRATION_INFO: Int
Deprecated: Deprecated in Java.
Acquires information for unregistering the DRM server.
Value: 2Public constructors
DrmInfoRequest
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
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 that is being retrieved. Returns null if the key cannot be found. | 
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 DrmInfoRequest 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 DrmInfoRequest 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.
| Parameters | |
|---|---|
| key | String!: The key to add. | 
| value | Any!: The value to add. | 
