# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Protected Ctors | Methods | Inherited Methods

# DrmEvent

`public class DrmEvent`
`extends Object` ``

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

Known direct subclasses DrmErrorEvent, DrmInfoEvent
DrmErrorEvent | This class is deprecated. Please use `MediaDrm`
DrmInfoEvent | This class is deprecated. Please use `MediaDrm`

This class is deprecated.
Please use `MediaDrm`

A base class that is used to send asynchronous event information from the DRM framework.

## Summary

### Constants
`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.

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

### Public methods
`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.

### Inherited methods
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

### DRM_INFO_OBJECT

    public static final String DRM_INFO_OBJECT

The key that is used in the `attributes` HashMap to pass the `DrmInfo` object.

Constant Value: "drm_info_object"

### DRM_INFO_STATUS_OBJECT

    public static final String DRM_INFO_STATUS_OBJECT

The key that is used in the `attributes` HashMap to pass the return status.

Constant Value: "drm_info_status_object"

### TYPE_ALL_RIGHTS_REMOVED

    public static final int TYPE_ALL_RIGHTS_REMOVED

All of the rights information associated with all DRM schemes have been successfully removed.

Constant Value: 1001 (0x000003e9)

### TYPE_DRM_INFO_PROCESSED

    public static final int TYPE_DRM_INFO_PROCESSED

The given DRM information has been successfully processed.

Constant Value: 1002 (0x000003ea)

## Protected constructors

### DrmEvent

    protected DrmEvent (int uniqueId,
                    int type,
                    String message,
                    HashMap<String, Object> attributes)

Creates a `DrmEvent` object with the specified parameters.

Parameters
`uniqueId` | `int`: Unique session identifier.
`type` | `int`: Type of information.
`message` | `String`: Message description.
`attributes` | `HashMap`: Attributes for extensible information.

### DrmEvent

    protected DrmEvent (int uniqueId,
                    int type,
                    String message)

Creates a `DrmEvent` object with the specified parameters.

Parameters
`uniqueId` | `int`: Unique session identifier.
`type` | `int`: Type of information.
`message` | `String`: Message description.

## Public methods

### getAttribute

    public Object getAttribute (String key)

Retrieves the attribute associated with the specified key.

Parameters
`key` | `String`

Returns
`Object` | One of the attributes or null if no mapping for the key is found.

### getMessage

    public String getMessage ()

Retrieves the message description associated with this object.

Returns
`String` | The message description.

### getType

    public int getType ()

Retrieves the type of information that is associated with this object.

Returns
`int` | The type of information.

### getUniqueId

    public int getUniqueId ()

Retrieves the unique session identifier associated with this object.

Returns
`int` | The unique session identifier.

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