# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Inherited Constants | Ctors | Inherited Methods

# DrmInfoEvent

`public class DrmInfoEvent`
`` `extends DrmEvent` ``

java.lang.Object
↳ | android.drm.DrmEvent
| ↳ | android.drm.DrmInfoEvent

This class is deprecated.
Please use `MediaDrm`

An entity class that is passed to the `onInfo()` callback.

## Summary

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

### Inherited constants
From class `android.drm.DrmEvent`
`String` | `DRM_INFO_OBJECT` The key that is used in the `attributes` HashMap to pass the `DrmInfo` object.
`String` | `DRM_INFO_STATUS_OBJECT` The key that is used in the `attributes` HashMap to pass the return status.
`int` | `TYPE_ALL_RIGHTS_REMOVED` All of the rights information associated with all DRM schemes have been successfully removed.
`int` | `TYPE_DRM_INFO_PROCESSED` The given DRM information has been successfully processed.

### Public constructors
`DrmInfoEvent(int uniqueId, int type, String message)` Creates a `DrmInfoEvent` object with the specified parameters.
`DrmInfoEvent(int uniqueId, int type, String message, HashMap<String, Object> attributes)` Creates a `DrmInfoEvent` object with the specified parameters.

### Inherited methods
From class `android.drm.DrmEvent`
`Object` | `getAttribute(String key)` Retrieves the attribute associated with the specified key.
`String` | `getMessage()` Retrieves the message description associated with this object.
`int` | `getType()` Retrieves the type of information that is associated with this object.
`int` | `getUniqueId()` Retrieves the unique session identifier associated with this object.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### TYPE_ACCOUNT_ALREADY_REGISTERED

    public static final int TYPE_ACCOUNT_ALREADY_REGISTERED

The registration has already been done for the given account.

Constant Value: 5 (0x00000005)

### TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

    public static final int TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

The registration has already been done by another account ID.

Constant Value: 1 (0x00000001)

### TYPE_REMOVE_RIGHTS

    public static final int TYPE_REMOVE_RIGHTS

The rights need to be removed completely.

Constant Value: 2 (0x00000002)

### TYPE_RIGHTS_INSTALLED

    public static final int TYPE_RIGHTS_INSTALLED

The rights have been successfully downloaded and installed.

Constant Value: 3 (0x00000003)

### TYPE_RIGHTS_REMOVED

    public static final int TYPE_RIGHTS_REMOVED

The rights have been removed.

Constant Value: 6 (0x00000006)

### TYPE_WAIT_FOR_RIGHTS

    public static final int TYPE_WAIT_FOR_RIGHTS

The rights object is being delivered to the device. You must wait before calling `acquireRights()` again.

Constant Value: 4 (0x00000004)

## Public constructors

### DrmInfoEvent

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

Creates a `DrmInfoEvent` object with the specified parameters.

Parameters
`uniqueId` | `int`: Unique session identifier.
`type` | `int`: Type of the event. Must be any of the event types defined above, or the constants defined in `DrmEvent`.
`message` | `String`: Message description. It can be null.

### DrmInfoEvent

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

Creates a `DrmInfoEvent` object with the specified parameters.

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

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*