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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
data | The processed data. | ||||||||||
infoType | The type of DRM information processed. | ||||||||||
mimeType | The MIME type of the content. | ||||||||||
statusCode | The status of the communication. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
DrmInfoStatus object with the specified parameters. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Indicate failed communication.
Indicate successful communication.
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.
The type of DRM information processed. Must be one of the valid type
constants defined in DrmInfoRequest
.
The MIME type of the content. Must not be null or an empty string.
The status of the communication. Must be one of the defined status constants above.
Creates a DrmInfoStatus
object with the specified parameters.
statusCode | The status of the communication. Must be one of the defined status constants above. |
---|---|
infoType | The type of the DRM information processed. Must be a valid
type for DrmInfoRequest . |
data | The processed data. |
mimeType | The MIME type. |