public class DrmEvent
extends Object
| java.lang.Object | |
| ↳ | android.drm.DrmEvent |
| |
基类,用于从DRM框架发送异步事件信息。
Constants |
|
|---|---|
String |
DRM_INFO_OBJECT 在 |
String |
DRM_INFO_STATUS_OBJECT 在 |
int |
TYPE_ALL_RIGHTS_REMOVED 所有与所有DRM方案相关的权利信息都已成功删除。 |
int |
TYPE_DRM_INFO_PROCESSED 给定的DRM信息已成功处理。 |
Protected constructors |
|
|---|---|
DrmEvent(int uniqueId, int type, String message, HashMap<String, Object> attributes) 用指定的参数创建一个 |
|
DrmEvent(int uniqueId, int type, String message) 用指定的参数创建一个 |
|
Public methods |
|
|---|---|
Object |
getAttribute(String key) 检索与指定键相关的属性。 |
String |
getMessage() 检索与此对象关联的消息描述。 |
int |
getType() 检索与此对象关联的信息的类型。 |
int |
getUniqueId() 检索与此对象关联的唯一会话标识符。 |
Inherited methods |
|
|---|---|
java.lang.Object
|
|
String DRM_INFO_OBJECT
在 attributes HashMap中使用的密钥传递 DrmInfo对象。
常量值:“drm_info_object”
String DRM_INFO_STATUS_OBJECT
在 attributes HashMap中使用的密钥传递返回状态。
常量值:“drm_info_status_object”
int TYPE_ALL_RIGHTS_REMOVED
所有与所有DRM方案相关的权利信息都已成功删除。
常量值:1001(0x000003e9)
int TYPE_DRM_INFO_PROCESSED
给定的DRM信息已成功处理。
常量值:1002(0x000003ea)
DrmEvent (int uniqueId,
int type,
String message,
HashMap<String, Object> attributes)
用指定的参数创建一个 DrmEvent对象。
| 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)
用指定的参数创建一个 DrmEvent对象。
| Parameters | |
|---|---|
uniqueId |
int: Unique session identifier. |
type |
int: Type of information. |
message |
String: Message description. |
Object getAttribute (String key)
检索与指定键相关的属性。
| Parameters | |
|---|---|
key |
String
|
| Returns | |
|---|---|
Object |
One of the attributes or null if no mapping for the key is found. |
String getMessage ()
检索与此对象关联的消息描述。
| Returns | |
|---|---|
String |
The message description. |
int getUniqueId ()
检索与此对象关联的唯一会话标识符。
| Returns | |
|---|---|
int |
The unique session identifier. |