DrmSupportInfo
open classDrmSupportInfo
kotlin.Any | |
↳ | 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.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
addFileSuffix(fileSuffix: String!) Adds the specified file suffix to the list of file suffixes this DRM plug-in supports. |
open Unit |
addMimeType(mimeType: String!) Adds the specified MIME type to the list of MIME types this DRM plug-in supports. |
open Boolean |
Overridden |
open String! |
Retrieves the DRM plug-in (agent) description. |
open String! |
Retrieves the DRM plug-in (agent) description. |
open MutableIterator<String!>! |
Retrieves an iterator object that you can use to iterate over the file suffixes that this DRM plug-in supports. |
open MutableIterator<String!>! |
Retrieves an iterator object that you can use to iterate over the MIME types that this DRM plug-in supports. |
open Int |
hashCode() Overridden hash code implementation. |
open Unit |
setDescription(description: String!) Sets a description for the DRM plug-in (agent). |
Public constructors
DrmSupportInfo
DrmSupportInfo()
Public methods
addFileSuffix
open funaddFileSuffix(fileSuffix: String!): Unit
Deprecated: Deprecated in Java.
Adds the specified file suffix to the list of file suffixes this DRM plug-in supports.
Parameters | |
---|---|
fileSuffix |
String!: 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. |
addMimeType
open funaddMimeType(mimeType: String!): Unit
Deprecated: Deprecated in Java.
Adds the specified MIME type to the list of MIME types this DRM plug-in supports.
Parameters | |
---|---|
mimeType |
String!: MIME type that can be handles by this DRM plug-in. Must not be null or an empty string. |
equals
open funequals(other: Any?): Boolean
Deprecated: Deprecated in Java.
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.
Parameters | |
---|---|
obj |
the reference object with which to compare. |
object |
The object to be compared. |
Return | |
---|---|
Boolean |
True if equal; false if not equal. |
getDescriprition
open fungetDescriprition(): String!
Deprecated: The method name is mis-spelled, and it is replaced by getDescription()
.
Retrieves the DRM plug-in (agent) description.
Return | |
---|---|
String! |
The plug-in description. |
getDescription
open fungetDescription(): String!
Deprecated: Deprecated in Java.
Retrieves the DRM plug-in (agent) description. Even if null or an empty string is not allowed in setDescription(java.lang.String)
, if setDescription(java.lang.String)
is not called, description returned from this method is an empty string.
Return | |
---|---|
String! |
The plug-in description. |
getFileSuffixIterator
open fungetFileSuffixIterator(): MutableIterator<String!>!
Deprecated: Deprecated in Java.
Retrieves an iterator object that you can use to iterate over the file suffixes that this DRM plug-in supports.
Return | |
---|---|
MutableIterator<String!>! |
The iterator object. |
getMimeTypeIterator
open fungetMimeTypeIterator(): MutableIterator<String!>!
Deprecated: Deprecated in Java.
Retrieves an iterator object that you can use to iterate over the MIME types that this DRM plug-in supports.
Return | |
---|---|
MutableIterator<String!>! |
The iterator object |
hashCode
open funhashCode(): Int
Deprecated: Deprecated in Java.
Overridden hash code implementation.
Return | |
---|---|
Int |
The hash code value. |
setDescription
open funsetDescription(description: String!): Unit
Deprecated: Deprecated in Java.
Sets a description for the DRM plug-in (agent).
Parameters | |
---|---|
description |
String!: Unique description of plug-in. Must not be null or an empty string. |