java.lang.Object | |
↳ | android.drm.DrmSupportInfo |
An entity class that wraps the capability of each DRM plug-in (agent), such as the MIME type and file suffix the DRM plug-in can handle.
Plug-in developers can expose the capability of their plug-in by passing an instance of this class to an application.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified file suffix to the list of file suffixes this DRM plug-in supports.
| |||||||||||
Adds the specified MIME type to the list of MIME types this DRM plug-in supports.
| |||||||||||
Overridden
equals implementation.
| |||||||||||
This method was deprecated
in API level 16.
The method name is mis-spelled, and it is replaced by
getDescription() .
| |||||||||||
Retrieves the DRM plug-in (agent) description.
| |||||||||||
Retrieves an iterator object that you can use to iterate over the file suffixes that
this DRM plug-in supports.
| |||||||||||
Retrieves an iterator object that you can use to iterate over the MIME types that
this DRM plug-in supports.
| |||||||||||
Overridden hash code implementation.
| |||||||||||
Sets a description for the DRM plug-in (agent).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds the specified file suffix to the list of file suffixes this DRM plug-in supports.
fileSuffix | File suffix that can be handled by this DRM plug-in. it could be null but not an empty string. When it is null, it indicates that some DRM content comes with no file suffix. |
---|
Adds the specified MIME type to the list of MIME types this DRM plug-in supports.
mimeType | MIME type that can be handles by this DRM plug-in. Must not be null or an empty string. |
---|
Overridden equals
implementation. Two DrmSupportInfo objects
are considered being equal if they support exactly the same set of mime
types, file suffixes, and has exactly the same description.
object | The object to be compared. |
---|
This method was deprecated
in API level 16.
The method name is mis-spelled, and it is replaced by
getDescription()
.
Retrieves the DRM plug-in (agent) description.
Retrieves the DRM plug-in (agent) description. Even if null or an empty
string is not allowed in setDescription(String)
, if
setDescription(String)
is not called, description returned
from this method is an empty string.
Retrieves an iterator object that you can use to iterate over the file suffixes that this DRM plug-in supports.
Retrieves an iterator object that you can use to iterate over the MIME types that this DRM plug-in supports.
Overridden hash code implementation.
Sets a description for the DRM plug-in (agent).
description | Unique description of plug-in. Must not be null or an empty string. |
---|