public class

DrmInfoRequest

extends Object
java.lang.Object
   ↳ android.drm.DrmInfoRequest

Class Overview

This is an entity class used to pass required parameters to get the necessary information to communicate with online DRM server An instance of this class is passed to acquireDrmInfo(DrmInfoRequest) to get the instance of DrmInfo

Summary

Constants
String ACCOUNT_ID Key to pass the unique id for the account or the user
String SUBSCRIPTION_ID Key to pass the unique id used for subscription
int TYPE_REGISTRATION_INFO Constants defines the type of DrmInfoRequest
int TYPE_RIGHTS_ACQUISITION_INFO
int TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO
int TYPE_UNREGISTRATION_INFO
Public Constructors
DrmInfoRequest(int infoType, String mimeType)
constructor to create DrmInfoRequest object with type and mimetype
Public Methods
Object get(String key)
Retrieves the value of given key, if not found returns null
int getInfoType()
Returns Information type associated with this instance
String getMimeType()
Returns the mimetype associated with this object
Iterator<Object> iterator()
Returns Iterator object to walk through the values associated with this instance
Iterator<String> keyIterator()
Returns Iterator object to walk through the keys associated with this instance
void put(String key, Object value)
Adds optional information as pair to this object.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ACCOUNT_ID

Since: API Level 11

Key to pass the unique id for the account or the user

Constant Value: "account_id"

public static final String SUBSCRIPTION_ID

Since: API Level 11

Key to pass the unique id used for subscription

Constant Value: "subscription_id"

public static final int TYPE_REGISTRATION_INFO

Since: API Level 11

Constants defines the type of DrmInfoRequest

Constant Value: 1 (0x00000001)

public static final int TYPE_RIGHTS_ACQUISITION_INFO

Since: API Level 11

Constant Value: 3 (0x00000003)

public static final int TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO

Since: API Level 11

Constant Value: 4 (0x00000004)

public static final int TYPE_UNREGISTRATION_INFO

Since: API Level 11

Constant Value: 2 (0x00000002)

Public Constructors

public DrmInfoRequest (int infoType, String mimeType)

Since: API Level 11

constructor to create DrmInfoRequest object with type and mimetype

Parameters
infoType Type of information
mimeType MIME type

Public Methods

public Object get (String key)

Since: API Level 11

Retrieves the value of given key, if not found returns null

Parameters
key Key whose value to be retrieved
Returns
  • The value or null

public int getInfoType ()

Since: API Level 11

Returns Information type associated with this instance

Returns
  • Information type

public String getMimeType ()

Since: API Level 11

Returns the mimetype associated with this object

Returns
  • MIME type

public Iterator<Object> iterator ()

Since: API Level 11

Returns Iterator object to walk through the values associated with this instance

Returns
  • Iterator object

public Iterator<String> keyIterator ()

Since: API Level 11

Returns Iterator object to walk through the keys associated with this instance

Returns
  • Iterator object

public void put (String key, Object value)

Since: API Level 11

Adds optional information as pair to this object.

Parameters
key Key to add
value Value to add