DrmConvertedStatus
  public
  
  
  
  class
  DrmConvertedStatus
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.drm.DrmConvertedStatus | 
      This class was deprecated
      in API level 30.
    Please use MediaDrm
  
An entity class that wraps converted data, conversion status, and the
 offset for appending the header and body signature to the converted data.
 An instance of this class may be created two ways by the drm framework:
 a) a call to DrmManagerClient.convertData() and
 b) a call to DrmManagerClient.closeConvertSession().
 An valid offset value is provided only from a success call to
 DrmManagerClient.closeConvertSession().
Summary
| Constants | |
|---|---|
| int | STATUS_ERRORIndicate a general failed conversion status. | 
| int | STATUS_INPUTDATA_ERRORIndicate a failed conversion status due to input data. | 
| int | STATUS_OKIndicate the conversion status is successful. | 
| Fields | |
|---|---|
| 
    public
    
    final
    byte[] | convertedDataConverted data. | 
| 
    public
    
    final
    int | offsetOffset value for the body and header signature. | 
| 
    public
    
    final
    int | statusCodeStatus code for the conversion. | 
| Public constructors | |
|---|---|
| 
      DrmConvertedStatus(int statusCode, byte[] convertedData, int offset)
      Creates a  | |
| Inherited methods | |
|---|---|
Constants
STATUS_ERROR
public static final int STATUS_ERROR
Indicate a general failed conversion status.
Constant Value: 3 (0x00000003)
STATUS_INPUTDATA_ERROR
public static final int STATUS_INPUTDATA_ERROR
Indicate a failed conversion status due to input data.
Constant Value: 2 (0x00000002)
STATUS_OK
public static final int STATUS_OK
Indicate the conversion status is successful.
Constant Value: 1 (0x00000001)
Fields
convertedData
public final byte[] convertedData
Converted data. It is optional and thus can be null.
offset
public final int offset
Offset value for the body and header signature.
statusCode
public final int statusCode
Status code for the conversion. Must be one of the defined status constants above.
Public constructors
DrmConvertedStatus
public DrmConvertedStatus (int statusCode, 
                byte[] convertedData, 
                int offset)Creates a DrmConvertedStatus object with the specified parameters.
| Parameters | |
|---|---|
| statusCode | int: Conversion status. Must be one of the status code constants
 defined above. | 
| convertedData | byte: Converted data. It can be null. | 
| offset | int: Offset value for appending the header and body signature. | 
