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

# DrmInfoEvent

*** ** * ** ***

` public class DrmInfoEvent `   
` ` ` extends https://developer.android.com/reference/android/drm/DrmEvent ` ` `

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

<br />

*** ** * ** ***

<br />

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

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

An entity class that is passed to the `https://developer.android.com/reference/android/drm/DrmManagerClient.OnInfoListener#onInfo(android.drm.DrmManagerClient,%20android.drm.DrmInfoEvent)` callback.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/drm/DrmInfoEvent#TYPE_ACCOUNT_ALREADY_REGISTERED` The registration has already been done for the given account. |
| `int` | `https://developer.android.com/reference/android/drm/DrmInfoEvent#TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT` The registration has already been done by another account ID. |
| `int` | `https://developer.android.com/reference/android/drm/DrmInfoEvent#TYPE_REMOVE_RIGHTS` The rights need to be removed completely. |
| `int` | `https://developer.android.com/reference/android/drm/DrmInfoEvent#TYPE_RIGHTS_INSTALLED` The rights have been successfully downloaded and installed. |
| `int` | `https://developer.android.com/reference/android/drm/DrmInfoEvent#TYPE_RIGHTS_REMOVED` The rights have been removed. |
| `int` | `https://developer.android.com/reference/android/drm/DrmInfoEvent#TYPE_WAIT_FOR_RIGHTS` The rights object is being delivered to the device. |

### Inherited constants

From class `https://developer.android.com/reference/android/drm/DrmEvent` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/drm/DrmEvent#DRM_INFO_OBJECT`

The key that is used in the `attributes` HashMap to pass the `https://developer.android.com/reference/android/drm/DrmInfo` object.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/drm/DrmEvent#DRM_INFO_STATUS_OBJECT`

The key that is used in the `attributes` HashMap to pass the return status.
`int` `https://developer.android.com/reference/android/drm/DrmEvent#TYPE_ALL_RIGHTS_REMOVED`

All of the rights information associated with all DRM schemes have been successfully removed.
`int` `https://developer.android.com/reference/android/drm/DrmEvent#TYPE_DRM_INFO_PROCESSED`

The given DRM information has been successfully processed.

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/drm/DrmInfoEvent#DrmInfoEvent(int,%20int,%20java.lang.String)(int uniqueId, int type, https://developer.android.com/reference/java/lang/String message) ` Creates a `DrmInfoEvent` object with the specified parameters. |
| ` https://developer.android.com/reference/android/drm/DrmInfoEvent#DrmInfoEvent(int,%20int,%20java.lang.String,%20java.util.HashMap<java.lang.String,java.lang.Object>)(int uniqueId, int type, https://developer.android.com/reference/java/lang/String message, https://developer.android.com/reference/java/util/HashMap<https://developer.android.com/reference/java/lang/String, https://developer.android.com/reference/java/lang/Object> attributes) ` Creates a `DrmInfoEvent` object with the specified parameters. |

### Inherited methods

From class ` https://developer.android.com/reference/android/drm/DrmEvent ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/android/drm/DrmEvent#getAttribute(java.lang.String)(https://developer.android.com/reference/java/lang/String key) `

Retrieves the attribute associated with the specified key.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/drm/DrmEvent#getMessage()() `

Retrieves the message description associated with this object.
` int` ` https://developer.android.com/reference/android/drm/DrmEvent#getType()() `

Retrieves the type of information that is associated with this object.
` int` ` https://developer.android.com/reference/android/drm/DrmEvent#getUniqueId()() `

Retrieves the unique session identifier associated with this object.
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

### TYPE_ACCOUNT_ALREADY_REGISTERED

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

```
public static final int TYPE_ACCOUNT_ALREADY_REGISTERED
```

The registration has already been done for the given account.

<br />

Constant Value: 5 (0x00000005)

### TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

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

```
public static final int TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT
```

The registration has already been done by another account ID.

<br />

Constant Value: 1 (0x00000001)

### TYPE_REMOVE_RIGHTS

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

```
public static final int TYPE_REMOVE_RIGHTS
```

The rights need to be removed completely.

<br />

Constant Value: 2 (0x00000002)

### TYPE_RIGHTS_INSTALLED

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

```
public static final int TYPE_RIGHTS_INSTALLED
```

The rights have been successfully downloaded and installed.

<br />

Constant Value: 3 (0x00000003)

### TYPE_RIGHTS_REMOVED

Added in [API level 12](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)

```
public static final int TYPE_RIGHTS_REMOVED
```

The rights have been removed.

<br />

Constant Value: 6 (0x00000006)

### TYPE_WAIT_FOR_RIGHTS

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

```
public static final int TYPE_WAIT_FOR_RIGHTS
```

The rights object is being delivered to the device. You must wait before calling `https://developer.android.com/reference/android/drm/DrmManagerClient#acquireRights(android.drm.DrmInfoRequest)` again.

<br />

Constant Value: 4 (0x00000004)

## Public constructors

### DrmInfoEvent

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

```
public DrmInfoEvent (int uniqueId, 
                int type, 
                String message)
```

Creates a `DrmInfoEvent` object with the specified parameters.

<br />

| Parameters ||
|---|---|
| `uniqueId` | `int`: Unique session identifier. <br /> |
| `type` | `int`: Type of the event. Must be any of the event types defined above, or the constants defined in `https://developer.android.com/reference/android/drm/DrmEvent`. <br /> |
| `message` | `String`: Message description. It can be null. <br /> |

### DrmInfoEvent

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

```
public DrmInfoEvent (int uniqueId, 
                int type, 
                String message, 
                HashMap<String, Object> attributes)
```

Creates a `DrmInfoEvent` object with the specified parameters.

<br />

| Parameters ||
|---|---|
| `uniqueId` | `int`: Unique session identifier. <br /> |
| `type` | `int`: Type of the event. Must be any of the event types defined above, or the constants defined in `https://developer.android.com/reference/android/drm/DrmEvent` <br /> |
| `message` | `String`: Message description. It can be null. <br /> |
| `attributes` | `HashMap`: Attributes for extensible information. Could be any information provided by the plug-in. <br /> |