Added in API level 11
Deprecated in API level 30

DrmInfoStatus


public class DrmInfoStatus
extends Object

java.lang.Object
   ↳ android.drm.DrmInfoStatus


This class was deprecated in API level 30.
Please use MediaDrm

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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

STATUS_ERROR

Added in API level 11
public static final int STATUS_ERROR

Indicate failed communication.

Constant Value: 2 (0x00000002)

STATUS_OK

Added in API level 11
public static final int STATUS_OK

Indicate successful communication.

Constant Value: 1 (0x00000001)

Fields

data

Added in API level 11
public final 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
public final 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
public final String mimeType

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

statusCode

Added in API level 11
public final int statusCode

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

Public constructors

DrmInfoStatus

Added in API level 11
public 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.