Added in API level 11
Deprecated in API level 30

DrmSupportInfo


open class DrmSupportInfo
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
equals(other: Any?)

Overridden equals implementation.

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

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

Added in API level 11
open fun addFileSuffix(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

Added in API level 11
open fun addMimeType(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

Added in API level 11
open fun equals(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

Added in API level 11
Deprecated in API level 16
open fun getDescriprition(): 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

Added in API level 16
Deprecated in API level 30
open fun getDescription(): 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

Added in API level 11
open fun getFileSuffixIterator(): 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

Added in API level 11
open fun getMimeTypeIterator(): 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

Added in API level 11
open fun hashCode(): Int

Deprecated: Deprecated in Java.

Overridden hash code implementation.

Return
Int The hash code value.

setDescription

Added in API level 11
open fun setDescription(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.