Added in API level 11
Deprecated in API level 30

DrmInfoStatus


open class DrmInfoStatus
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 DrmInfoStatus object with the specified parameters.

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

Added in API level 11
static val STATUS_ERROR: Int

Deprecated: Deprecated in Java.

Indicate failed communication.

Value: 2

STATUS_OK

Added in API level 11
static val STATUS_OK: Int

Deprecated: Deprecated in Java.

Indicate successful communication.

Value: 1

Public constructors

DrmInfoStatus

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

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

Added in API level 11
val infoType: Int

Deprecated: Deprecated in Java.

The type of DRM information processed. Must be one of the valid type constants defined in DrmInfoRequest.

mimeType

Added in API level 11
val mimeType: String!

Deprecated: Deprecated in Java.

The MIME type of the content. Must not be null or an empty string.

statusCode

Added in API level 11
val statusCode: Int

Deprecated: Deprecated in Java.

The status of the communication. Must be one of the defined status constants above.