Most visited

Recently visited

Added in API level 11

DrmEvent

public class DrmEvent
extends Object

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


基类,用于从DRM框架发送异步事件信息。

摘要(Summary)

常量(Constants)

String DRM_INFO_OBJECT

attributes HashMap中使用的密钥传递 DrmInfo对象。

String DRM_INFO_STATUS_OBJECT

attributes HashMap中使用的密钥传递返回状态。

int TYPE_ALL_RIGHTS_REMOVED

所有与所有DRM方案相关的权利信息都已成功删除。

int TYPE_DRM_INFO_PROCESSED

给定的DRM信息已成功处理。

Protected constructors

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

用指定的参数创建一个 DrmEvent对象。

DrmEvent(int uniqueId, int type, String message)

用指定的参数创建一个 DrmEvent对象。

公共方法(Public methods)

Object getAttribute(String key)

检索与指定键相关的属性。

String getMessage()

检索与此对象关联的消息描述。

int getType()

检索与此对象关联的信息的类型。

int getUniqueId()

检索与此对象关联的唯一会话标识符。

继承方法(Inherited methods)

From class java.lang.Object

常量(Constants)

DRM_INFO_OBJECT

Added in API level 12
String DRM_INFO_OBJECT

attributes HashMap中使用的密钥传递 DrmInfo对象。

常量值:“drm_info_object”

DRM_INFO_STATUS_OBJECT

Added in API level 11
String DRM_INFO_STATUS_OBJECT

attributes HashMap中使用的密钥传递返回状态。

常量值:“drm_info_status_object”

TYPE_ALL_RIGHTS_REMOVED

Added in API level 11
int TYPE_ALL_RIGHTS_REMOVED

所有与所有DRM方案相关的权利信息都已成功删除。

常量值:1001(0x000003e9)

TYPE_DRM_INFO_PROCESSED

Added in API level 11
int TYPE_DRM_INFO_PROCESSED

给定的DRM信息已成功处理。

常量值:1002(0x000003ea)

Protected constructors

DrmEvent

Added in API level 12
DrmEvent (int uniqueId, 
                int type, 
                String message, 
                HashMap<StringObject> attributes)

用指定的参数创建一个 DrmEvent对象。

参数(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)

用指定的参数创建一个 DrmEvent对象。

参数(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)

检索与指定键相关的属性。

参数(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 ()

检索与此对象关联的消息描述。

返回(Returns)
String The message description.

getType

Added in API level 11
int getType ()

检索与此对象关联的信息的类型。

返回(Returns)
int The type of information.

getUniqueId

Added in API level 11
int getUniqueId ()

检索与此对象关联的唯一会话标识符。

返回(Returns)
int The unique session identifier.

Hooray!