Skip to content

Most visited

Recently visited

navigation
Added in API level 11

DrmInfoStatus

public class DrmInfoStatus
extends Object

java.lang.Object
   ↳ android.drm.DrmInfoStatus


An entity class that wraps the result of communication between a device and an online DRM server. Specifically, when the DrmManagerClient.processDrmInfo() method is called, an instance of DrmInfoStatus is returned.

This class contains the ProcessedData object, which can be used to instantiate a DrmRights object during license acquisition.

Summary

Constants

int STATUS_ERROR

Indicate failed communication.

int STATUS_OK

Indicate successful communication.

Fields

public final ProcessedData data

The processed data.

public final int infoType

The type of DRM information processed.

public final String mimeType

The MIME type of the content.

public final int statusCode

The status of the communication.

Public constructors

DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType)

Creates a DrmInfoStatus object with the specified parameters.

Inherited methods

From class java.lang.Object

Constants

STATUS_ERROR

Added in API level 11
int STATUS_ERROR

Indicate failed communication.

Constant Value: 2 (0x00000002)

STATUS_OK

Added in API level 11
int STATUS_OK

Indicate successful communication.

Constant Value: 1 (0x00000001)

Fields

data

Added in API level 11
ProcessedData data

The processed data. It is optional and thus could be null. When it is null, it indicates that a particular call to DrmManagerClient.processDrmInfo() does not return any additional useful information except for the status code.

infoType

Added in API level 11
int infoType

The type of DRM information processed. Must be one of the valid type constants defined in DrmInfoRequest.

mimeType

Added in API level 11
String mimeType

The MIME type of the content. Must not be null or an empty string.

statusCode

Added in API level 11
int statusCode

The status of the communication. Must be one of the defined status constants above.

Public constructors

DrmInfoStatus

Added in API level 11
DrmInfoStatus (int statusCode, 
                int infoType, 
                ProcessedData data, 
                String mimeType)

Creates a DrmInfoStatus object with the specified parameters.

Parameters
statusCode int: The status of the communication. Must be one of the defined status constants above.
infoType int: The type of the DRM information processed. Must be a valid type for DrmInfoRequest.
data ProcessedData: The processed data.
mimeType String: The MIME type.
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.