Added in API level 11
Deprecated in API level 30

DrmErrorEvent


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

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

Summary

Constants
static Int

Failed to acquire DrmInfo.

static Int

Response from the server cannot be handled by the DRM plug-in (agent).

static Int

An Internet connection is not available and no attempt can be made to renew rights.

static Int

Memory allocation failed during renewal.

static Int

Failed to process DrmInfo.

static Int

Failed to remove all the rights objects associated with all DRM schemes.

static Int

Something went wrong installing the rights.

static Int

The server rejected the renewal of rights.

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

Creates a DrmErrorEvent object with the specified parameters.

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

Creates a DrmErrorEvent object with the specified parameters.

Inherited functions

Constants

TYPE_ACQUIRE_DRM_INFO_FAILED

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

Deprecated: Deprecated in Java.

Failed to acquire DrmInfo. This error event is sent when an acquireDrmInfo() call fails.

Value: 2008

TYPE_NOT_SUPPORTED

Added in API level 11
static val TYPE_NOT_SUPPORTED: Int

Deprecated: Deprecated in Java.

Response from the server cannot be handled by the DRM plug-in (agent).

Value: 2003

TYPE_NO_INTERNET_CONNECTION

Added in API level 11
static val TYPE_NO_INTERNET_CONNECTION: Int

Deprecated: Deprecated in Java.

An Internet connection is not available and no attempt can be made to renew rights.

Value: 2005

TYPE_OUT_OF_MEMORY

Added in API level 11
static val TYPE_OUT_OF_MEMORY: Int

Deprecated: Deprecated in Java.

Memory allocation failed during renewal. Can in the future perhaps be used to trigger garbage collector.

Value: 2004

TYPE_PROCESS_DRM_INFO_FAILED

Added in API level 11
static val TYPE_PROCESS_DRM_INFO_FAILED: Int

Deprecated: Deprecated in Java.

Failed to process DrmInfo. This error event is sent when a processDrmInfo() call fails.

Value: 2006

TYPE_REMOVE_ALL_RIGHTS_FAILED

Added in API level 11
static val TYPE_REMOVE_ALL_RIGHTS_FAILED: Int

Deprecated: Deprecated in Java.

Failed to remove all the rights objects associated with all DRM schemes.

Value: 2007

TYPE_RIGHTS_NOT_INSTALLED

Added in API level 11
static val TYPE_RIGHTS_NOT_INSTALLED: Int

Deprecated: Deprecated in Java.

Something went wrong installing the rights.

Value: 2001

TYPE_RIGHTS_RENEWAL_NOT_ALLOWED

Added in API level 11
static val TYPE_RIGHTS_RENEWAL_NOT_ALLOWED: Int

Deprecated: Deprecated in Java.

The server rejected the renewal of rights.

Value: 2002

Public constructors

DrmErrorEvent

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

Creates a DrmErrorEvent 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.
message String!: Message description. It can be null.

DrmErrorEvent

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

Creates a DrmErrorEvent 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.
message String!: Message description.
attributes HashMap<String!, Any!>!: Attributes for extensible information. Could be any information provided by the plug-in. It can be null.