Android.Media.AudioManager.SetStreamVolume Method
Sets the volume index for a particular stream.

Syntax

[Android.Runtime.Register("setStreamVolume", "(III)V", "GetSetStreamVolume_IIIHandler")]
public virtual void SetStreamVolume ([Android.Runtime.GeneratedEnum] Stream streamType, int index, [Android.Runtime.GeneratedEnum] VolumeNotificationFlags flags)

See Also

AudioManager.GetStreamMaxVolume(Stream)
AudioManager.GetStreamVolume(Stream)
AudioManager.IsVolumeFixed

Parameters

streamType
The stream whose volume index should be set.
index
The volume index to set. See AudioManager.GetStreamMaxVolume(Stream) for the largest valid value.
flags
One or more flags.

Remarks

Sets the volume index for a particular stream.

This method has no effect if the device implements a fixed volume policy as indicated by AudioManager.IsVolumeFixed.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1