Stay organized with collections
Save and categorize content based on your preferences.
DrmInfoStatus
open class 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 |
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
static val STATUS_ERROR: Int
Deprecated: Deprecated in Java.
Indicate failed communication.
Value: 2
STATUS_OK
static val STATUS_OK: Int
Deprecated: Deprecated in Java.
Indicate successful communication.
Value: 1
Public 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
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
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
val mimeType: String!
Deprecated: Deprecated in Java.
The MIME type of the content. Must not be null or an empty string.
statusCode
val statusCode: Int
Deprecated: Deprecated in Java.
The status of the communication. 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,["# DrmInfoStatus\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\nDrmInfoStatus\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/drm/DrmInfoStatus \"View this page in Java\") \n\n```\nopen class DrmInfoStatus\n```\n\n|---|--------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.drm.DrmInfoStatus](#) |\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 the result of communication between a device and an online DRM server. Specifically, when the [DrmManagerClient.processDrmInfo()](/reference/kotlin/android/drm/DrmManagerClient#processDrmInfo(android.drm.DrmInfo)) method is called, an instance of `DrmInfoStatus` is returned.\n\nThis class contains the [ProcessedData](/reference/kotlin/android/drm/ProcessedData) object, which can be used to instantiate a [DrmRights](/reference/kotlin/android/drm/DrmRights) object during license acquisition.\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 failed communication. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_OK](#STATUS_OK:kotlin.Int) Indicate successful communication. |\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DrmInfoStatus](#DrmInfoStatus(kotlin.Int,%20kotlin.Int,%20android.drm.ProcessedData,%20kotlin.String))`(`statusCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `infoType:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `data:` `[ProcessedData](/reference/kotlin/android/drm/ProcessedData)!`, `mimeType:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates a `DrmInfoStatus` object with the specified parameters. |\n\n| Properties ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------|\n| [ProcessedData](/reference/kotlin/android/drm/ProcessedData)! | [data](#data:android.drm.ProcessedData) The processed data. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [infoType](#infoType:kotlin.Int) The type of DRM information processed. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [mimeType](#mimeType:kotlin.String) The MIME type of the content. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [statusCode](#statusCode:kotlin.Int) The status of the communication. |\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 failed communication. \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 successful communication. \n\n Value: 1\n\nPublic constructors\n-------------------\n\n### DrmInfoStatus\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDrmInfoStatus(\n statusCode: Int, \n infoType: Int, \n data: ProcessedData!, \n mimeType: String!)\n```\n\nCreates a `DrmInfoStatus` object with the specified parameters.\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `statusCode` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The status of the communication. Must be one of the defined status constants above. |\n| `infoType` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The type of the DRM information processed. Must be a valid type for [DrmInfoRequest](/reference/kotlin/android/drm/DrmInfoRequest). |\n| `data` | [ProcessedData](/reference/kotlin/android/drm/ProcessedData)!: The processed data. |\n| `mimeType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The MIME type. |\n\nProperties\n----------\n\n### data\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval data: ProcessedData!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe processed data. It is optional and thus could be null. When it is null, it indicates that a particular call to [DrmManagerClient.processDrmInfo()](/reference/kotlin/android/drm/DrmManagerClient#processDrmInfo(android.drm.DrmInfo)) does not return any additional useful information except for the status code. \n\n### infoType\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval infoType: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe type of DRM information processed. Must be one of the valid type constants defined in [DrmInfoRequest](/reference/kotlin/android/drm/DrmInfoRequest). \n\n### mimeType\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval mimeType: String!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe MIME type of the content. Must not be null or an empty string. \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\nThe status of the communication. Must be one of the defined status constants above."]]