DrmErrorEvent

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

An entity class that is passed to the onError() callback.
Requires API level 11 (Android 3.0, Honeycomb)

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
<init>(uniqueId: Int, type: Int, message: String!)

Creates a DrmErrorEvent object with the specified parameters.

<init>(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
static val TYPE_ACQUIRE_DRM_INFO_FAILED: Int

Failed to acquire DrmInfo. This error event is sent when an acquireDrmInfo() call fails.
Requires API level 12 (Android 3.1, Honeycomb)

Value: 2008

TYPE_NOT_SUPPORTED

added in API level 11
static val TYPE_NOT_SUPPORTED: Int

Response from the server cannot be handled by the DRM plug-in (agent).
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2003

TYPE_NO_INTERNET_CONNECTION

added in API level 11
static val TYPE_NO_INTERNET_CONNECTION: Int

An Internet connection is not available and no attempt can be made to renew rights.
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2005

TYPE_OUT_OF_MEMORY

added in API level 11
static val TYPE_OUT_OF_MEMORY: Int

Memory allocation failed during renewal. Can in the future perhaps be used to trigger garbage collector.
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2004

TYPE_PROCESS_DRM_INFO_FAILED

added in API level 11
static val TYPE_PROCESS_DRM_INFO_FAILED: Int

Failed to process DrmInfo. This error event is sent when a processDrmInfo() call fails.
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2006

TYPE_REMOVE_ALL_RIGHTS_FAILED

added in API level 11
static val TYPE_REMOVE_ALL_RIGHTS_FAILED: Int

Failed to remove all the rights objects associated with all DRM schemes.
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2007

TYPE_RIGHTS_NOT_INSTALLED

added in API level 11
static val TYPE_RIGHTS_NOT_INSTALLED: Int

Something went wrong installing the rights.
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2001

TYPE_RIGHTS_RENEWAL_NOT_ALLOWED

added in API level 11
static val TYPE_RIGHTS_RENEWAL_NOT_ALLOWED: Int

The server rejected the renewal of rights.
Requires API level 11 (Android 3.0, Honeycomb)

Value: 2002

Public constructors

<init>

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 Int: Message description. It can be null.

<init>

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 Int: Message description.
attributes Int: Attributes for extensible information. Could be any information provided by the plug-in. It can be null.