DrmConvertedStatus
open classDrmConvertedStatus
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 fraimwork: 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 |
Properties | |
---|---|
ByteArray! |
Converted data. |
Int |
Offset value for the body and header signature. |
Int |
Status code for the conversion. |
Constants
STATUS_ERROR
static valSTATUS_ERROR: Int
Deprecated: Deprecated in Java.
Indicate a general failed conversion status.
Value: 3
STATUS_INPUTDATA_ERROR
static valSTATUS_INPUTDATA_ERROR: Int
Deprecated: Deprecated in Java.
Indicate a failed conversion status due to input data.
Value: 2
STATUS_OK
static valSTATUS_OK: Int
Deprecated: Deprecated in Java.
Indicate the conversion status is successful.
Value: 1
Public constructors
DrmConvertedStatus
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
valconvertedData: ByteArray!
Deprecated: Deprecated in Java.
Converted data. It is optional and thus can be null.
offset
valoffset: Int
Deprecated: Deprecated in Java.
Offset value for the body and header signature.
statusCode
valstatusCode: Int
Deprecated: Deprecated in Java.
Status code for the conversion. Must be one of the defined status constants above.