Skip to content

Most visited

Recently visited

navigation

DrmInfoEvent

public class DrmInfoEvent
extends DrmEvent

java.lang.Object
   ↳ android.drm.DrmEvent
     ↳ android.drm.DrmInfoEvent


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

Summary

Constants

int TYPE_ACCOUNT_ALREADY_REGISTERED

The registration has already been done for the given account.

int TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

The registration has already been done by another account ID.

int TYPE_REMOVE_RIGHTS

The rights need to be removed completely.

int TYPE_RIGHTS_INSTALLED

The rights have been successfully downloaded and installed.

int TYPE_RIGHTS_REMOVED

The rights have been removed.

int TYPE_WAIT_FOR_RIGHTS

The rights object is being delivered to the device.

Inherited constants

From class android.drm.DrmEvent

Public constructors

DrmInfoEvent(int uniqueId, int type, String message)

Creates a DrmInfoEvent object with the specified parameters.

DrmInfoEvent(int uniqueId, int type, String message, HashMap<StringObject> attributes)

Creates a DrmInfoEvent object with the specified parameters.

Inherited methods

From class android.drm.DrmEvent
From class java.lang.Object

Constants

TYPE_ACCOUNT_ALREADY_REGISTERED

Added in API level 11
int TYPE_ACCOUNT_ALREADY_REGISTERED

The registration has already been done for the given account.

Constant Value: 5 (0x00000005)

TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

Added in API level 11
int TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT

The registration has already been done by another account ID.

Constant Value: 1 (0x00000001)

TYPE_REMOVE_RIGHTS

Added in API level 11
int TYPE_REMOVE_RIGHTS

The rights need to be removed completely.

Constant Value: 2 (0x00000002)

TYPE_RIGHTS_INSTALLED

Added in API level 11
int TYPE_RIGHTS_INSTALLED

The rights have been successfully downloaded and installed.

Constant Value: 3 (0x00000003)

TYPE_RIGHTS_REMOVED

Added in API level 12
int TYPE_RIGHTS_REMOVED

The rights have been removed.

Constant Value: 6 (0x00000006)

TYPE_WAIT_FOR_RIGHTS

Added in API level 11
int TYPE_WAIT_FOR_RIGHTS

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

Constant Value: 4 (0x00000004)

Public constructors

DrmInfoEvent

Added in API level 11
DrmInfoEvent (int uniqueId, 
                int type, 
                String message)

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 (int uniqueId, 
                int type, 
                String message, 
                HashMap<StringObject> attributes)

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: Attributes for extensible information. Could be any information provided by the plug-in.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.