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 |
Inherited methods | |
---|---|
Constants
STATUS_ERROR
public static final int STATUS_ERROR
Indicate failed communication.
Constant Value: 2 (0x00000002)
STATUS_OK
public static final int STATUS_OK
Indicate successful communication.
Constant Value: 1 (0x00000001)
Fields
data
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
public final int infoType
The type of DRM information processed. Must be one of the valid type constants defined in DrmInfoRequest
.
mimeType
public final String mimeType
The MIME type of the content. Must not be null or an empty string.
statusCode
public final int statusCode
The status of the communication. Must be one of the defined status constants above.
Public constructors
DrmInfoStatus
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. |