VolumeShaper.Close Method

Definition

Releases the VolumeShaper object; any volume scale due to the VolumeShaper is removed after closing.

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

Implements

Attributes

Remarks

Releases the VolumeShaper object; any volume scale due to the VolumeShaper is removed after closing.

If the volume does not reach 1.f when the VolumeShaper is closed (or finalized), there may be an abrupt change of volume.

close() may be safely called after a prior close(). This class implements the Java AutoClosable interface and may be used with try-with-resources.

Java documentation for android.media.VolumeShaper.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