Stay organized with collections
Save and categorize content based on your preferences.
DrmConvertedStatus
open class 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 |
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
static val STATUS_ERROR: Int
Deprecated: Deprecated in Java.
Indicate a general failed conversion status.
Value: 3
static val STATUS_INPUTDATA_ERROR: Int
Deprecated: Deprecated in Java.
Indicate a failed conversion status due to input data.
Value: 2
STATUS_OK
static val STATUS_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
val convertedData: ByteArray!
Deprecated: Deprecated in Java.
Converted data. It is optional and thus can be null.
offset
val offset: Int
Deprecated: Deprecated in Java.
Offset value for the body and header signature.
statusCode
val statusCode: Int
Deprecated: Deprecated in Java.
Status code for the conversion. Must be one of the defined status constants above.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DrmConvertedStatus\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDrmConvertedStatus\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/drm/DrmConvertedStatus \"View this page in Java\") \n\n```\nopen class DrmConvertedStatus\n```\n\n|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.drm.DrmConvertedStatus](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 30.**\n|\n| Please use [android.media.MediaDrm](../media/MediaDrm.html#)\n\nAn 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()](/reference/kotlin/android/drm/DrmManagerClient#convertData(kotlin.Int,%20kotlin.ByteArray)) and b) a call to [DrmManagerClient.closeConvertSession()](/reference/kotlin/android/drm/DrmManagerClient#closeConvertSession(kotlin.Int)). An valid offset value is provided only from a success call to [DrmManagerClient.closeConvertSession()](/reference/kotlin/android/drm/DrmManagerClient#closeConvertSession(kotlin.Int)).\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_ERROR](#STATUS_ERROR:kotlin.Int) Indicate a general failed conversion status. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_INPUTDATA_ERROR](#STATUS_INPUTDATA_ERROR:kotlin.Int) Indicate a failed conversion status due to input data. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_OK](#STATUS_OK:kotlin.Int) Indicate the conversion status is successful. |\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DrmConvertedStatus](#DrmConvertedStatus(kotlin.Int,%20kotlin.ByteArray,%20kotlin.Int))`(`statusCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `convertedData:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`, `offset:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Creates a `DrmConvertedStatus` object with the specified parameters. |\n\n| Properties ||\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [convertedData](#convertedData:kotlin.ByteArray) Converted data. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [offset](#offset:kotlin.Int) Offset value for the body and header signature. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [statusCode](#statusCode:kotlin.Int) Status code for the conversion. |\n\nConstants\n---------\n\n### STATUS_ERROR\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS_ERROR: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nIndicate a general failed conversion status. \n\n Value: 3\n\n### STATUS_INPUTDATA_ERROR\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS_INPUTDATA_ERROR: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nIndicate a failed conversion status due to input data. \n\n Value: 2\n\n### STATUS_OK\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS_OK: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nIndicate the conversion status is successful. \n\n Value: 1\n\nPublic constructors\n-------------------\n\n### DrmConvertedStatus\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDrmConvertedStatus(\n statusCode: Int, \n convertedData: ByteArray!, \n offset: Int)\n```\n\nCreates a `DrmConvertedStatus` object with the specified parameters.\n\n| Parameters ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `statusCode` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Conversion status. Must be one of the status code constants defined above. |\n| `convertedData` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!: Converted data. It can be null. |\n| `offset` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Offset value for appending the header and body signature. |\n\nProperties\n----------\n\n### convertedData\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval convertedData: ByteArray!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nConverted data. It is optional and thus can be null. \n\n### offset\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval offset: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nOffset value for the body and header signature. \n\n### statusCode\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval statusCode: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nStatus code for the conversion. Must be one of the defined status constants above."]]