# DrmInfoStatus

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/drm/DrmInfoStatus#constants)\|[Fields](https://developer.android.com/reference/android/drm/DrmInfoStatus#lfields)\|[Ctors](https://developer.android.com/reference/android/drm/DrmInfoStatus#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/drm/DrmInfoStatus#inhmethods)  

# DrmInfoStatus

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/drm/DrmInfoStatus "View this page in Kotlin")\|Java

`
public


class
DrmInfoStatus
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|---------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.drm.DrmInfoStatus |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 30.**   
Please use[MediaDrm](https://developer.android.com/reference/android/media/MediaDrm)

An entity class that wraps the result of communication between a device and an online DRM server. Specifically, when the[DrmManagerClient.processDrmInfo()](https://developer.android.com/reference/android/drm/DrmManagerClient#processDrmInfo(android.drm.DrmInfo))method is called, an instance of`DrmInfoStatus`is returned.

This class contains the[ProcessedData](https://developer.android.com/reference/android/drm/ProcessedData)object, which can be used to instantiate a[DrmRights](https://developer.android.com/reference/android/drm/DrmRights)object during license acquisition.

## Summary

|                                                            ### Constants                                                             ||
|-------|-------------------------------------------------------------------------------------------------------------------------------|
| `int` | [STATUS_ERROR](https://developer.android.com/reference/android/drm/DrmInfoStatus#STATUS_ERROR) Indicate failed communication. |
| `int` | [STATUS_OK](https://developer.android.com/reference/android/drm/DrmInfoStatus#STATUS_OK) Indicate successful communication.   |

|                                                                                                            ### Fields                                                                                                             ||
|----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| ` public final `[ProcessedData](https://developer.android.com/reference/android/drm/ProcessedData) | [data](https://developer.android.com/reference/android/drm/DrmInfoStatus#data) The processed data.                            |
| ` public final int`                                                                                | [infoType](https://developer.android.com/reference/android/drm/DrmInfoStatus#infoType) The type of DRM information processed. |
| ` public final `[String](https://developer.android.com/reference/java/lang/String)                 | [mimeType](https://developer.android.com/reference/android/drm/DrmInfoStatus#mimeType) The MIME type of the content.          |
| ` public final int`                                                                                | [statusCode](https://developer.android.com/reference/android/drm/DrmInfoStatus#statusCode) The status of the communication.   |

|                                                                                                                                                                                                           ### Public constructors                                                                                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[DrmInfoStatus](https://developer.android.com/reference/android/drm/DrmInfoStatus#DrmInfoStatus(int,%20int,%20android.drm.ProcessedData,%20java.lang.String))`(int statusCode, int infoType, `[ProcessedData](https://developer.android.com/reference/android/drm/ProcessedData)` data, `[String](https://developer.android.com/reference/java/lang/String)` mimeType) ` Creates a`DrmInfoStatus`object with the specified parameters. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### STATUS_ERROR

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int STATUS_ERROR
```

Indicate failed communication.

<br />

Constant Value: 2 (0x00000002)  

### STATUS_OK

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int STATUS_OK
```

Indicate successful communication.

<br />

Constant Value: 1 (0x00000001)

## Fields

### data

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public final ProcessedData data
```

The processed data. It is optional and thus could be null. When it is null, it indicates that a particular call to[DrmManagerClient.processDrmInfo()](https://developer.android.com/reference/android/drm/DrmManagerClient#processDrmInfo(android.drm.DrmInfo))does not return any additional useful information except for the status code.

<br />

### infoType

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public final int infoType
```

The type of DRM information processed. Must be one of the valid type constants defined in[DrmInfoRequest](https://developer.android.com/reference/android/drm/DrmInfoRequest).

<br />

### mimeType

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public final String mimeType
```

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

<br />

### statusCode

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public final int statusCode
```

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

<br />

## Public constructors

### DrmInfoStatus

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public DrmInfoStatus (int statusCode, 
                int infoType, 
                ProcessedData data, 
                String mimeType)
```

Creates a`DrmInfoStatus`object with the specified parameters.

<br />

|                                                                                      Parameters                                                                                      ||
|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `statusCode` | `int`: The status of the communication. Must be one of the defined status constants above. <br />                                                                      |
| `infoType`   | `int`: The type of the DRM information processed. Must be a valid type for[DrmInfoRequest](https://developer.android.com/reference/android/drm/DrmInfoRequest). <br /> |
| `data`       | `ProcessedData`: The processed data. <br />                                                                                                                            |
| `mimeType`   | `String`: The MIME type. <br />                                                                                                                                        |