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.
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 |
Inherited methods |
|
---|---|
![]() java.lang.Object
|
int STATUS_ERROR
Indicate failed communication.
Constant Value: 2 (0x00000002)
int STATUS_OK
Indicate successful communication.
Constant Value: 1 (0x00000001)
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.
int infoType
The type of DRM information processed. Must be one of the valid type constants defined in DrmInfoRequest
.
String mimeType
The MIME type of the content. Must not be null or an empty string.
int statusCode
The status of the communication. Must be one of the defined status constants above.
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. |