Skip to content

Most visited

Recently visited

navigation

DrmSupportInfo

public class DrmSupportInfo
extends Object

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.

Summary

Public constructors

DrmSupportInfo()

Public methods

void addFileSuffix(String fileSuffix)

Adds the specified file suffix to the list of file suffixes this DRM plug-in supports.

void addMimeType(String mimeType)

Adds the specified MIME type to the list of MIME types this DRM plug-in supports.

boolean equals(Object object)

Overridden equals implementation.

String getDescriprition()

This method was deprecated in API level 16. The method name is mis-spelled, and it is replaced by getDescription().

String getDescription()

Retrieves the DRM plug-in (agent) description.

Iterator<String> getFileSuffixIterator()

Retrieves an iterator object that you can use to iterate over the file suffixes that this DRM plug-in supports.

Iterator<String> getMimeTypeIterator()

Retrieves an iterator object that you can use to iterate over the MIME types that this DRM plug-in supports.

int hashCode()

Overridden hash code implementation.

void setDescription(String description)

Sets a description for the DRM plug-in (agent).

Inherited methods

From class java.lang.Object

Public constructors

DrmSupportInfo

Added in API level 11
DrmSupportInfo ()

Public methods

addFileSuffix

Added in API level 11
void addFileSuffix (String fileSuffix)

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
void addMimeType (String mimeType)

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
boolean equals (Object object)

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
object Object: The object to be compared.
Returns
boolean True if equal; false if not equal.

getDescriprition

Added in API level 11
String getDescriprition ()

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.

Returns
String The plug-in description.

getDescription

Added in API level 16
String getDescription ()

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.

Returns
String The plug-in description.

getFileSuffixIterator

Added in API level 11
Iterator<String> getFileSuffixIterator ()

Retrieves an iterator object that you can use to iterate over the file suffixes that this DRM plug-in supports.

Returns
Iterator<String> The iterator object.

getMimeTypeIterator

Added in API level 11
Iterator<String> getMimeTypeIterator ()

Retrieves an iterator object that you can use to iterate over the MIME types that this DRM plug-in supports.

Returns
Iterator<String> The iterator object

hashCode

Added in API level 11
int hashCode ()

Overridden hash code implementation.

Returns
int The hash code value.

setDescription

Added in API level 11
void setDescription (String description)

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.