다음을 통해 공유


MediaDrm.Close Method

Definition

Releases resources associated with the current session of MediaDrm.

[Android.Runtime.Register("close", "()V", "", ApiSince=28)]
public void Close ();
[<Android.Runtime.Register("close", "()V", "", ApiSince=28)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Remarks

Releases resources associated with the current session of MediaDrm. It is considered good practice to call this method when the MediaDrm object is no longer needed in your application. After this method is called, MediaDrm is no longer usable since it has lost all of its required resource.

This method was added in API 28. In API versions 18 through 27, release() should be called instead. There is no need to do anything for API versions prior to 18.

Java documentation for android.media.MediaDrm.close().

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.

Applies to