DrmEventpublic class DrmEvent extends Object A base class that is used to send asynchronous event information from the DRM framework. |
Fields Summary |
---|
public static final int | TYPE_ALL_RIGHTS_REMOVEDAll of the rights information associated with all DRM schemes have been successfully removed. | public static final int | TYPE_DRM_INFO_PROCESSEDThe given DRM information has been successfully processed. | public static final String | DRM_INFO_STATUS_OBJECTThe key that is used in the attributes HashMap to pass the return status. | public static final String | DRM_INFO_OBJECTThe key that is used in the attributes HashMap to pass the
{@link DrmInfo} object. | private final int | mUniqueId | private final int | mType | private String | mMessage | private HashMap | mAttributes |
Constructors Summary |
---|
protected DrmEvent(int uniqueId, int type, String message, HashMap attributes)Creates a DrmEvent object with the specified parameters.
mUniqueId = uniqueId;
mType = type;
if (null != message) {
mMessage = message;
}
if (null != attributes) {
mAttributes = attributes;
}
| protected DrmEvent(int uniqueId, int type, String message)Creates a DrmEvent object with the specified parameters.
mUniqueId = uniqueId;
mType = type;
if (null != message) {
mMessage = message;
}
|
Methods Summary |
---|
public java.lang.Object | getAttribute(java.lang.String key)Retrieves the attribute associated with the specified key.
return mAttributes.get(key);
| public java.lang.String | getMessage()Retrieves the message description associated with this object.
return mMessage;
| public int | getType()Retrieves the type of information that is associated with this object.
return mType;
| public int | getUniqueId()Retrieves the unique session identifier associated with this object.
return mUniqueId;
|
|