Added in API level 11
Deprecated in API level 30

DrmConvertedStatus


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

An entity class that wraps converted data, conversion status, and the offset for appending the header and body signature to the converted data. An instance of this class may be created two ways by the drm framework: a) a call to DrmManagerClient.convertData() and b) a call to DrmManagerClient.closeConvertSession(). An valid offset value is provided only from a success call to DrmManagerClient.closeConvertSession().

Summary

Constants
static Int

Indicate a general failed conversion status.

static Int

Indicate a failed conversion status due to input data.

static Int

Indicate the conversion status is successful.

Public constructors
DrmConvertedStatus(statusCode: Int, convertedData: ByteArray!, offset: Int)

Creates a DrmConvertedStatus object with the specified parameters.

Properties
ByteArray!

Converted data.

Int

Offset value for the body and header signature.

Int

Status code for the conversion.

Constants

STATUS_ERROR

Added in API level 11
static val STATUS_ERROR: Int

Deprecated: Deprecated in Java.

Indicate a general failed conversion status.

Value: 3

STATUS_INPUTDATA_ERROR

Added in API level 11
static val STATUS_INPUTDATA_ERROR: Int

Deprecated: Deprecated in Java.

Indicate a failed conversion status due to input data.

Value: 2

STATUS_OK

Added in API level 11
static val STATUS_OK: Int

Deprecated: Deprecated in Java.

Indicate the conversion status is successful.

Value: 1

Public constructors

DrmConvertedStatus

Added in API level 11
DrmConvertedStatus(
    statusCode: Int,
    convertedData: ByteArray!,
    offset: Int)

Creates a DrmConvertedStatus object with the specified parameters.

Parameters
statusCode Int: Conversion status. Must be one of the status code constants defined above.
convertedData ByteArray!: Converted data. It can be null.
offset Int: Offset value for appending the header and body signature.

Properties

convertedData

Added in API level 11
val convertedData: ByteArray!

Deprecated: Deprecated in Java.

Converted data. It is optional and thus can be null.

offset

Added in API level 11
val offset: Int

Deprecated: Deprecated in Java.

Offset value for the body and header signature.

statusCode

Added in API level 11
val statusCode: Int

Deprecated: Deprecated in Java.

Status code for the conversion. Must be one of the defined status constants above.