Most visited

Recently visited

Added in API level 11

DrmEvent

public class DrmEvent
extends Object

java.lang.Object
   ↳ android.drm.DrmEvent
Known Direct Subclasses


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<StringObject> 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

Constants

DRM_INFO_OBJECT

Added in API level 12
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

Added in API level 11
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

Added in API level 11
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

Added in API level 11
int TYPE_DRM_INFO_PROCESSED

The given DRM information has been successfully processed.

Constant Value: 1002 (0x000003ea)

Protected constructors

DrmEvent

Added in API level 12
DrmEvent (int uniqueId, 
                int type, 
                String message, 
                HashMap<StringObject> 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

Added in API level 11
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

Added in API level 12
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

Added in API level 11
String getMessage ()

Retrieves the message description associated with this object.

Returns
String The message description.

getType

Added in API level 11
int getType ()

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

Returns
int The type of information.

getUniqueId

Added in API level 11
int getUniqueId ()

Retrieves the unique session identifier associated with this object.

Returns
int The unique session identifier.

Hooray!