DrmEvent
open classDrmEvent
| kotlin.Any | |
| ↳ | android.drm.DrmEvent | 
A base class that is used to send asynchronous event information from the DRM framework.
Summary
| Constants | |
|---|---|
| static String | The key that is used in the  | 
| static String | The key that is used in the  | 
| static Int | All of the rights information associated with all DRM schemes have been successfully removed. | 
| static Int | The given DRM information has been successfully processed. | 
| Protected constructors | |
|---|---|
| Creates a  | |
| Creates a  | |
| Public methods | |
|---|---|
| open Any! | getAttribute(key: String!)Retrieves the attribute associated with the specified key. | 
| open String! | Retrieves the message description associated with this object. | 
| open Int | getType()Retrieves the type of information that is associated with this object. | 
| open Int | Retrieves the unique session identifier associated with this object. | 
Constants
DRM_INFO_OBJECT
static valDRM_INFO_OBJECT: String
Deprecated: Deprecated in Java.
The key that is used in the attributes HashMap to pass the DrmInfo object.
Value: "drm_info_object"DRM_INFO_STATUS_OBJECT
static valDRM_INFO_STATUS_OBJECT: String
Deprecated: Deprecated in Java.
The key that is used in the attributes HashMap to pass the return status.
Value: "drm_info_status_object"TYPE_ALL_RIGHTS_REMOVED
static valTYPE_ALL_RIGHTS_REMOVED: Int
Deprecated: Deprecated in Java.
All of the rights information associated with all DRM schemes have been successfully removed.
Value: 1001TYPE_DRM_INFO_PROCESSED
static valTYPE_DRM_INFO_PROCESSED: Int
Deprecated: Deprecated in Java.
The given DRM information has been successfully processed.
Value: 1002Protected constructors
DrmEvent
protected DrmEvent(
uniqueId: Int,
type: Int,
message: String!)
Creates a DrmEvent object with the specified parameters.
| Parameters | |
|---|---|
| uniqueId | Int: Unique session identifier. | 
| type | Int: Type of information. | 
| message | String!: Message description. | 
DrmEvent
protected DrmEvent(
uniqueId: Int,
type: Int,
message: String!,
attributes: HashMap<String!, Any!>!)
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<String!, Any!>!: Attributes for extensible information. | 
Public methods
getAttribute
open fungetAttribute(key: String!): Any!
Deprecated: Deprecated in Java.
Retrieves the attribute associated with the specified key.
| Return | |
|---|---|
| Any! | One of the attributes or null if no mapping for the key is found. | 
getMessage
open fungetMessage(): String!
Deprecated: Deprecated in Java.
Retrieves the message description associated with this object.
| Return | |
|---|---|
| String! | The message description. | 
getType
open fungetType(): Int
Deprecated: Deprecated in Java.
Retrieves the type of information that is associated with this object.
| Return | |
|---|---|
| Int | The type of information. | 
getUniqueId
open fungetUniqueId(): Int
Deprecated: Deprecated in Java.
Retrieves the unique session identifier associated with this object.
| Return | |
|---|---|
| Int | The unique session identifier. | 
