共用方式為


DrmManagerClient Class

Definition

The main programming interface for the DRM framework.

[Android.Runtime.Register("android/drm/DrmManagerClient", DoNotGenerateAcw=true)]
public class DrmManagerClient : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IAutoCloseable
[<Android.Runtime.Register("android/drm/DrmManagerClient", DoNotGenerateAcw=true)>]
type DrmManagerClient = class
    inherit Object
    interface IAutoCloseable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
DrmManagerClient
Attributes
Implements

Remarks

The main programming interface for the DRM framework. An application must instantiate this class to access DRM agents through the DRM framework.

This member is deprecated. Please use android.media.MediaDrm

Java documentation for android.drm.DrmManagerClient.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

DrmManagerClient(Context)

Creates a DrmManagerClient.

DrmManagerClient(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

AvailableDrmSupportInfo

Retrieves information about all the DRM plug-ins (agents) that are registered with the DRM framework.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AcquireDrmInfo(DrmInfoRequest)

Retrieves information for registering, unregistering, or acquiring rights.

AcquireRights(DrmInfoRequest)

Processes a given DrmInfoRequest and returns the rights information asynchronously.

CanHandle(String, String)

Checks whether the given MIME type or path can be handled.

CanHandle(Uri, String)

Checks whether the given MIME type or URI can be handled.

CheckRightsStatus(String, DrmStoreActionCode)

Checks whether the given rights-protected content has valid rights for the specified DrmStore.Action.

CheckRightsStatus(String)

Checks whether the given content has valid rights.

CheckRightsStatus(Uri, DrmStoreActionCode)

Checks whether the given rights-protected content has valid rights for the specified DrmStore.Action.

CheckRightsStatus(Uri)

Check whether the given content has valid rights.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close()

Releases resources associated with the current session of DrmManagerClient.

CloseConvertSession(Int32)

Informs the DRM plug-in (agent) that there is no more data to convert or that an error has occurred.

ConvertData(Int32, Byte[])

Converts the input data (content) that is part of a rights-protected file.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetAvailableDrmEngines()

Retrieves information about all the DRM plug-ins (agents) that are registered with the DRM framework.

GetConstraints(String, DrmStoreActionCode)

Retrieves constraint information for rights-protected content.

GetConstraints(Uri, DrmStoreActionCode)

Retrieves constraint information for rights-protected content.

GetDrmObjectType(String, String)

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified path or MIME type.

GetDrmObjectType(Uri, String)

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified URI or MIME type.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetMetadata(String)

Retrieves metadata information for rights-protected content.

GetMetadata(Uri)

Retrieves metadata information for rights-protected content.

GetOriginalMimeType(String)

Retrieves the MIME type embedded in the original content.

GetOriginalMimeType(Uri)

Retrieves the MIME type embedded in the original content.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OpenConvertSession(String)

Initiates a new conversion session.

ProcessDrmInfo(DrmInfo)

Processes the given DRM information based on the information type.

Release()

This member is deprecated.

RemoveAllRights()

Removes all the rights information of every DRM plug-in (agent) associated with the DRM framework.

RemoveRights(String)

Removes the rights associated with the given rights-protected content.

RemoveRights(Uri)

Removes the rights associated with the given rights-protected content.

SaveRights(DrmRights, String, String)

Saves rights to a specified path and associates that path with the content path.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetOnErrorListener(DrmManagerClient+IOnErrorListener)

Registers an DrmManagerClient.OnErrorListener callback, which is invoked when the DRM framework sends error information.

SetOnEventListener(DrmManagerClient+IOnEventListener)

Registers an DrmManagerClient.OnEventListener callback, which is invoked when the DRM framework sends information about DRM processing.

SetOnInfoListener(DrmManagerClient+IOnInfoListener)

Registers an DrmManagerClient.OnInfoListener callback, which is invoked when the DRM framework sends status or warning information during registration or rights acquisition.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Events

Error
Event
Info

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to