public class DrmInfoStatus extends Object
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.
Modifier and Type | Field and Description |
---|---|
ProcessedData |
data
The processed data.
|
int |
infoType
The type of DRM information processed.
|
String |
mimeType
The MIME type of the content.
|
static int |
STATUS_ERROR
Indicate failed communication.
|
static int |
STATUS_OK
Indicate successful communication.
|
int |
statusCode
The status of the communication.
|
Constructor and Description |
---|
DrmInfoStatus(int statusCode,
int infoType,
ProcessedData data,
String mimeType)
Creates a
DrmInfoStatus object with the specified parameters. |
public static final int STATUS_OK
public static final int STATUS_ERROR
public final int statusCode
public final int infoType
DrmInfoRequest
.public final String mimeType
public final ProcessedData data
DrmManagerClient.processDrmInfo()
does not return any additional useful information except for the status code.public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType)
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.