次の方法で共有


AudioManager.GetStreamVolume(Stream) Method

Definition

Returns the current volume index for a particular stream.

[Android.Runtime.Register("getStreamVolume", "(I)I", "GetGetStreamVolume_IHandler")]
public virtual int GetStreamVolume (Android.Media.Stream streamType);
[<Android.Runtime.Register("getStreamVolume", "(I)I", "GetGetStreamVolume_IHandler")>]
abstract member GetStreamVolume : Android.Media.Stream -> int
override this.GetStreamVolume : Android.Media.Stream -> int

Parameters

streamType
Stream

The stream type whose volume index is returned.

Returns

The current volume index for the stream.

Attributes

Remarks

Returns the current volume index for a particular stream.

Java documentation for android.media.AudioManager.getStreamVolume(int).

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

See also

  • GetStreamMaxVolume(Stream)
  • <xref:Android.Media.AudioManager.SetStreamVolume(Android.Media.Stream%2c+System.Int32%2c+System.Int32)>