public class DrmInfo extends Object
DrmManagerClient.processDrmInfo(android.drm.DrmInfo)
.
The caller can retrieve the DrmInfo
instance by passing a DrmInfoRequest
instance to DrmManagerClient.acquireDrmInfo(android.drm.DrmInfoRequest)
.
Constructor and Description |
---|
DrmInfo(int infoType,
byte[] data,
String mimeType)
Creates a
DrmInfo object with the given parameters. |
DrmInfo(int infoType,
String path,
String mimeType)
Creates a
DrmInfo object with the given parameters. |
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Retrieves the value of a given key.
|
byte[] |
getData()
Retrieves the trigger data associated with this object.
|
int |
getInfoType()
Retrieves the information type associated with this object.
|
String |
getMimeType()
Retrieves the MIME type associated with this object.
|
Iterator<Object> |
iterator()
Retrieves an iterator object that you can use to iterate over the values associated with
this
DrmInfo object. |
Iterator<String> |
keyIterator()
Retrieves an iterator object that you can use to iterate over the keys associated with
this
DrmInfo object. |
void |
put(String key,
Object value)
Adds optional information as key-value pairs to this object.
|
public DrmInfo(int infoType, byte[] data, String mimeType)
DrmInfo
object with the given parameters.infoType
- The type of information.data
- The trigger data.mimeType
- The MIME type.public void put(String key, Object value)
DrmInfo
object, you must override the Object.toString()
implementation.key
- Key to add.value
- Value to add.public Object get(String key)
key
- The key whose value is being retrieved.public Iterator<String> keyIterator()
DrmInfo
object.public Iterator<Object> iterator()
DrmInfo
object.public byte[] getData()
public String getMimeType()
public int getInfoType()