public class

DrmSupportInfo

extends Object
java.lang.Object
   ↳ android.drm.DrmSupportInfo

Class Overview

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()
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).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DrmSupportInfo ()

Since: API Level 11

Public Methods

public void addFileSuffix (String fileSuffix)

Since: API Level 11

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

Parameters
fileSuffix File suffix that can be handled by this DRM plug-in.

public void addMimeType (String mimeType)

Since: API Level 11

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

Parameters
mimeType MIME type that can be handles by this DRM plug-in.

public boolean equals (Object object)

Since: API Level 11

Overridden equals implementation.

Parameters
object The object to be compared.
Returns
  • True if equal; false if not equal.

public String getDescriprition ()

Since: API Level 11

Retrieves the DRM plug-in (agent) description.

Returns
  • The plug-in description.

public Iterator<String> getFileSuffixIterator ()

Since: API Level 11

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

Returns
  • The iterator object.

public Iterator<String> getMimeTypeIterator ()

Since: API Level 11

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

Returns
  • The iterator object

public int hashCode ()

Since: API Level 11

Overridden hash code implementation.

Returns
  • The hash code value.

public void setDescription (String description)

Since: API Level 11

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

Parameters
description Unique description of plug-in.