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.
Constants | |
---|---|
String |
DRM_INFO_OBJECT
The key that is used in the |
String |
DRM_INFO_STATUS_OBJECT
The key that is used in the |
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(int uniqueId, int type, String message)
Creates a |
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
|
String DRM_INFO_OBJECT
The key that is used in the attributes
HashMap to pass the
DrmInfo
object.
Constant Value: "drm_info_object"
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"
int TYPE_ALL_RIGHTS_REMOVED
All of the rights information associated with all DRM schemes have been successfully removed.
Constant Value: 1001 (0x000003e9)
int TYPE_DRM_INFO_PROCESSED
The given DRM information has been successfully processed.
Constant Value: 1002 (0x000003ea)
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 (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.
|
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. |
String getMessage ()
Retrieves the message description associated with this object.
Returns | |
---|---|
String |
The message description. |
int getType ()
Retrieves the type of information that is associated with this object.
Returns | |
---|---|
int |
The type of information. |
int getUniqueId ()
Retrieves the unique session identifier associated with this object.
Returns | |
---|---|
int |
The unique session identifier. |