java.lang.Object | |
↳ | android.drm.DrmInfo |
An entity class that describes the information required to send transactions
between a device and an online DRM server. The DRM framework achieves
server registration, license acquisition, and any other server-related transactions
by passing an instance of this class to processDrmInfo(DrmInfo)
.
The caller can retrieve the DrmInfo
instance by passing a DrmInfoRequest
instance to acquireDrmInfo(DrmInfoRequest)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
DrmInfo object with the given parameters.
| |||||||||||
Creates a
DrmInfo object with the given parameters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the value of a given key.
| |||||||||||
Retrieves the trigger data associated with this object.
| |||||||||||
Retrieves the information type associated with this object.
| |||||||||||
Retrieves the MIME type associated with this object.
| |||||||||||
Retrieves an iterator object that you can use to iterate over the values associated with
this
DrmInfo object.
| |||||||||||
Retrieves an iterator object that you can use to iterate over the keys associated with
this
DrmInfo object.
| |||||||||||
Adds optional information as key-value pairs to this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a DrmInfo
object with the given parameters.
infoType | The type of information. |
---|---|
data | The trigger data. |
mimeType | The MIME type. |
Creates a DrmInfo
object with the given parameters.
infoType | The type of information. |
---|---|
path | The trigger data. |
mimeType | The MIME type. |
Retrieves the value of a given key.
key | The key whose value is being retrieved. |
---|
Retrieves the trigger data associated with this object.
Retrieves the information type associated with this object.
Retrieves the MIME type associated with this object.
Retrieves an iterator object that you can use to iterate over the values associated with
this DrmInfo
object.
Retrieves an iterator object that you can use to iterate over the keys associated with
this DrmInfo
object.
Adds optional information as key-value pairs to this object. To add a custom object
to the DrmInfo
object, you must override the toString()
implementation.
key | Key to add. |
---|---|
value | Value to add. |