Added in API level 11
Deprecated in API level 30

DrmInfoEvent


open class DrmInfoEvent : DrmEvent
kotlin.Any
   ↳ android.drm.DrmEvent
   ↳ android.drm.DrmInfoEvent

An entity class that is passed to the onInfo() callback.

Summary

Constants
static Int

The registration has already been done for the given account.

static Int

The registration has already been done by another account ID.

static Int

The rights need to be removed completely.

static Int

The rights have been successfully downloaded and installed.

static Int

The rights have been removed.

static Int

The rights object is being delivered to the device.

Inherited constants
Public constructors
DrmInfoEvent(uniqueId: Int, type: Int, message: String!)

Creates a DrmInfoEvent object with the specified parameters.

DrmInfoEvent(uniqueId: Int, type: Int, message: String!, attributes: HashMap<String!, Any!>!)

Creates a DrmInfoEvent object with the specified parameters.

Inherited functions

Constants

TYPE_ACCOUNT_ALREADY_REGISTERED

Added in API level 11
static val TYPE_ACCOUNT_ALREADY_REGISTERED: Int

Deprecated: Deprecated in Java.

The registration has already been done for the given account.

Value: 5

TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

Added in API level 11
static val TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT: Int

Deprecated: Deprecated in Java.

The registration has already been done by another account ID.

Value: 1

TYPE_REMOVE_RIGHTS

Added in API level 11
static val TYPE_REMOVE_RIGHTS: Int

Deprecated: Deprecated in Java.

The rights need to be removed completely.

Value: 2

TYPE_RIGHTS_INSTALLED

Added in API level 11
static val TYPE_RIGHTS_INSTALLED: Int

Deprecated: Deprecated in Java.

The rights have been successfully downloaded and installed.

Value: 3

TYPE_RIGHTS_REMOVED

Added in API level 12
Deprecated in API level 30
static val TYPE_RIGHTS_REMOVED: Int

Deprecated: Deprecated in Java.

The rights have been removed.

Value: 6

TYPE_WAIT_FOR_RIGHTS

Added in API level 11
static val TYPE_WAIT_FOR_RIGHTS: Int

Deprecated: Deprecated in Java.

The rights object is being delivered to the device. You must wait before calling acquireRights() again.

Value: 4

Public constructors

DrmInfoEvent

Added in API level 11
DrmInfoEvent(
    uniqueId: Int,
    type: Int,
    message: String!)

Creates a DrmInfoEvent object with the specified parameters.

Parameters
uniqueId Int: Unique session identifier.
type Int: Type of the event. Must be any of the event types defined above, or the constants defined in DrmEvent.
message String!: Message description. It can be null.

DrmInfoEvent

Added in API level 12
DrmInfoEvent(
    uniqueId: Int,
    type: Int,
    message: String!,
    attributes: HashMap<String!, Any!>!)

Creates a DrmInfoEvent object with the specified parameters.

Parameters
uniqueId Int: Unique session identifier.
type Int: Type of the event. Must be any of the event types defined above, or the constants defined in DrmEvent
message String!: Message description. It can be null.
attributes HashMap<String!, Any!>!: Attributes for extensible information. Could be any information provided by the plug-in.