public class

DrmErrorEvent

extends DrmEvent
java.lang.Object
   ↳ android.drm.DrmEvent
     ↳ android.drm.DrmErrorEvent

Class Overview

This is an entity class which would be passed to caller in onError(DrmManagerClient, DrmErrorEvent)

Summary

Constants
int TYPE_NOT_SUPPORTED TYPE_NOT_SUPPORTED, when answer from server can not be handled by the native agent.
int TYPE_NO_INTERNET_CONNECTION TYPE_NO_INTERNET_CONNECTION, when the Internet connection is missing and no attempt can be made to renew rights.
int TYPE_OUT_OF_MEMORY TYPE_OUT_OF_MEMORY, when memory allocation fail during renewal.
int TYPE_PROCESS_DRM_INFO_FAILED TYPE_PROCESS_DRM_INFO_FAILED, when failed to process DrmInfo.
int TYPE_REMOVE_ALL_RIGHTS_FAILED TYPE_REMOVE_ALL_RIGHTS_FAILED, when failed to remove all the rights objects associated with all DRM schemes.
int TYPE_RIGHTS_NOT_INSTALLED TYPE_RIGHTS_NOT_INSTALLED, when something went wrong installing the rights.
int TYPE_RIGHTS_RENEWAL_NOT_ALLOWED TYPE_RIGHTS_RENEWAL_NOT_ALLOWED, when the server rejects renewal of rights.
[Expand]
Inherited Constants
From class android.drm.DrmEvent
Public Constructors
DrmErrorEvent(int uniqueId, int type, String message)
constructor to create DrmErrorEvent object with given parameters
[Expand]
Inherited Methods
From class android.drm.DrmEvent
From class java.lang.Object

Constants

public static final int TYPE_NOT_SUPPORTED

Since: API Level 11

TYPE_NOT_SUPPORTED, when answer from server can not be handled by the native agent.

Constant Value: 2003 (0x000007d3)

public static final int TYPE_NO_INTERNET_CONNECTION

Since: API Level 11

TYPE_NO_INTERNET_CONNECTION, when the Internet connection is missing and no attempt can be made to renew rights.

Constant Value: 2005 (0x000007d5)

public static final int TYPE_OUT_OF_MEMORY

Since: API Level 11

TYPE_OUT_OF_MEMORY, when memory allocation fail during renewal. Can in the future perhaps be used to trigger garbage collector.

Constant Value: 2004 (0x000007d4)

public static final int TYPE_PROCESS_DRM_INFO_FAILED

Since: API Level 11

TYPE_PROCESS_DRM_INFO_FAILED, when failed to process DrmInfo.

Constant Value: 2006 (0x000007d6)

public static final int TYPE_REMOVE_ALL_RIGHTS_FAILED

Since: API Level 11

TYPE_REMOVE_ALL_RIGHTS_FAILED, when failed to remove all the rights objects associated with all DRM schemes.

Constant Value: 2007 (0x000007d7)

public static final int TYPE_RIGHTS_NOT_INSTALLED

Since: API Level 11

TYPE_RIGHTS_NOT_INSTALLED, when something went wrong installing the rights.

Constant Value: 2001 (0x000007d1)

public static final int TYPE_RIGHTS_RENEWAL_NOT_ALLOWED

Since: API Level 11

TYPE_RIGHTS_RENEWAL_NOT_ALLOWED, when the server rejects renewal of rights.

Constant Value: 2002 (0x000007d2)

Public Constructors

public DrmErrorEvent (int uniqueId, int type, String message)

Since: API Level 11

constructor to create DrmErrorEvent object with given parameters

Parameters
uniqueId Unique session identifier
type Type of information
message Message description