Share via


VolumeShaper.Volume Property

Definition

Returns the current volume scale attributable to the VolumeShaper.

public float Volume { [Android.Runtime.Register("getVolume", "()F", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getVolume", "()F", "", ApiSince=26)>]
member this.Volume : single

Property Value

the volume, linearly represented as a value between 0.f and 1.f.

Attributes

Remarks

Returns the current volume scale attributable to the VolumeShaper.

This is the last volume from the VolumeShaper used for the player, or the initial volume if the VolumeShaper hasn't been started with VolumeShaper.Operation#PLAY.

Java documentation for android.media.VolumeShaper.getVolume().

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