Language

MediaSession2.Close Method

Definition

Closes this resource, relinquishing any underlying resources.

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

Implements

Attributes

Remarks

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Android reference for android.media.MediaSession2.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