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/DrmConvertedStatus#constants) \| [Fields](https://developer.android.com/reference/android/drm/DrmConvertedStatus#lfields) \| [Ctors](https://developer.android.com/reference/android/drm/DrmConvertedStatus#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/drm/DrmConvertedStatus#inhmethods)

# DrmConvertedStatus

*** ** * ** ***

` public class DrmConvertedStatus `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

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

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 30.**   

Please use `https://developer.android.com/reference/android/media/MediaDrm`

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 `https://developer.android.com/reference/android/drm/DrmManagerClient#convertData(int,%20byte[])` and b) a call to `https://developer.android.com/reference/android/drm/DrmManagerClient#closeConvertSession(int)`. An valid offset value is provided only from a success call to `https://developer.android.com/reference/android/drm/DrmManagerClient#closeConvertSession(int)`.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/drm/DrmConvertedStatus#STATUS_ERROR` Indicate a general failed conversion status. |
| `int` | `https://developer.android.com/reference/android/drm/DrmConvertedStatus#STATUS_INPUTDATA_ERROR` Indicate a failed conversion status due to input data. |
| `int` | `https://developer.android.com/reference/android/drm/DrmConvertedStatus#STATUS_OK` Indicate the conversion status is successful. |

| ### Fields ||
|---|---|
| ` public final byte[]` | `https://developer.android.com/reference/android/drm/DrmConvertedStatus#convertedData` Converted data. |
| ` public final int` | `https://developer.android.com/reference/android/drm/DrmConvertedStatus#offset` Offset value for the body and header signature. |
| ` public final int` | `https://developer.android.com/reference/android/drm/DrmConvertedStatus#statusCode` Status code for the conversion. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/drm/DrmConvertedStatus#DrmConvertedStatus(int,%20byte[],%20int)(int statusCode, byte[] convertedData, int offset) ` Creates a `DrmConvertedStatus` object with the specified parameters. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` 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 https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` 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` ` 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` ` 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 a general failed conversion status.

<br />

Constant Value: 3 (0x00000003)

### STATUS_INPUTDATA_ERROR

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

```
public static final int STATUS_INPUTDATA_ERROR
```

Indicate a failed conversion status due to input data.

<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 the conversion status is successful.

<br />

Constant Value: 1 (0x00000001)

## Fields

### convertedData

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

```
public final byte[] convertedData
```

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

<br />

### offset

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

```
public final int offset
```

Offset value for the body and header signature.

<br />

### statusCode

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

```
public final int statusCode
```

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

<br />

## Public constructors

### DrmConvertedStatus

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

```
public DrmConvertedStatus (int statusCode, 
                byte[] convertedData, 
                int offset)
```

Creates a `DrmConvertedStatus` object with the specified parameters.

<br />

| Parameters ||
|---|---|
| `statusCode` | `int`: Conversion status. Must be one of the status code constants defined above. <br /> |
| `convertedData` | `byte`: Converted data. It can be null. <br /> |
| `offset` | `int`: Offset value for appending the header and body signature. <br /> |