DrmInfoStatus
open classDrmInfoStatus
| kotlin.Any | |
| ↳ | android.drm.DrmInfoStatus |
An entity class that wraps the result of communication between a device and an online DRM server. Specifically, when the DrmManagerClient.processDrmInfo() method is called, an instance of DrmInfoStatus is returned.
This class contains the ProcessedData object, which can be used to instantiate a DrmRights object during license acquisition.
Summary
| Constants | |
|---|---|
| static Int |
Indicate failed communication. |
| static Int |
Indicate successful communication. |
| Public constructors | |
|---|---|
DrmInfoStatus(statusCode: Int, infoType: Int, data: ProcessedData!, mimeType: String!)Creates a |
|
| Properties | |
|---|---|
| ProcessedData! |
The processed data. |
| Int |
The type of DRM information processed. |
| String! |
The MIME type of the content. |
| Int |
The status of the communication. |
Constants
STATUS_ERROR
static valSTATUS_ERROR: Int
Deprecated: Deprecated in Java.
Indicate failed communication.
Value: 2STATUS_OK
static valSTATUS_OK: Int
Deprecated: Deprecated in Java.
Indicate successful communication.
Value: 1Public constructors
DrmInfoStatus
DrmInfoStatus(
statusCode: Int,
infoType: Int,
data: ProcessedData!,
mimeType: String!)
Creates a DrmInfoStatus object with the specified parameters.
| Parameters | |
|---|---|
statusCode |
Int: The status of the communication. Must be one of the defined status constants above. |
infoType |
Int: The type of the DRM information processed. Must be a valid type for DrmInfoRequest. |
data |
ProcessedData!: The processed data. |
mimeType |
String!: The MIME type. |
Properties
data
valdata: ProcessedData!
Deprecated: Deprecated in Java.
The processed data. It is optional and thus could be null. When it is null, it indicates that a particular call to DrmManagerClient.processDrmInfo() does not return any additional useful information except for the status code.
infoType
valinfoType: Int
Deprecated: Deprecated in Java.
The type of DRM information processed. Must be one of the valid type constants defined in DrmInfoRequest.
mimeType
valmimeType: String!
Deprecated: Deprecated in Java.
The MIME type of the content. Must not be null or an empty string.
statusCode
valstatusCode: Int
Deprecated: Deprecated in Java.
The status of the communication. Must be one of the defined status constants above.