Added in API level 11
Deprecated in API level 30

DrmEvent


open class DrmEvent
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 attributes HashMap to pass the DrmInfo object.

static String

The key that is used in the attributes HashMap to pass the return status.

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
DrmEvent(uniqueId: Int, type: Int, message: String!, attributes: HashMap<String!, Any!>!)

Creates a DrmEvent object with the specified parameters.

DrmEvent(uniqueId: Int, type: Int, message: String!)

Creates a DrmEvent object with the specified parameters.

Public methods
open Any!

Retrieves the attribute associated with the specified key.

open String!

Retrieves the message description associated with this object.

open Int

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

Added in API level 12
Deprecated in API level 30
static val DRM_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

Added in API level 11
static val DRM_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

Added in API level 11
static val TYPE_ALL_RIGHTS_REMOVED: Int

Deprecated: Deprecated in Java.

All of the rights information associated with all DRM schemes have been successfully removed.

Value: 1001

TYPE_DRM_INFO_PROCESSED

Added in API level 11
static val TYPE_DRM_INFO_PROCESSED: Int

Deprecated: Deprecated in Java.

The given DRM information has been successfully processed.

Value: 1002

Protected constructors

DrmEvent

Added in API level 12
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.

DrmEvent

Added in API level 11
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.

Public methods

getAttribute

Added in API level 12
Deprecated in API level 30
open fun getAttribute(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

Added in API level 11
open fun getMessage(): String!

Deprecated: Deprecated in Java.

Retrieves the message description associated with this object.

Return
String! The message description.

getType

Added in API level 11
open fun getType(): Int

Deprecated: Deprecated in Java.

Retrieves the type of information that is associated with this object.

Return
Int The type of information.

getUniqueId

Added in API level 11
open fun getUniqueId(): Int

Deprecated: Deprecated in Java.

Retrieves the unique session identifier associated with this object.

Return
Int The unique session identifier.