Android.Media.AudioManager.AdjustStreamVolume Method
Adjusts the volume of a particular stream by one step in a direction.

Syntax

[Android.Runtime.Register("adjustStreamVolume", "(III)V", "GetAdjustStreamVolume_IIIHandler")]
public virtual void AdjustStreamVolume ([Android.Runtime.GeneratedEnum] Stream streamType, [Android.Runtime.GeneratedEnum] Adjust direction, [Android.Runtime.GeneratedEnum] VolumeNotificationFlags flags)

See Also

AudioManager.AdjustVolume(Adjust, Android.Media.VolumeNotificationFlags)
AudioManager.SetStreamVolume(Stream, System.Int32, System.Int32)

Parameters

streamType
The stream type to adjust. One of AudioManager.STREAM_VOICE_CALL, AudioManager.STREAM_SYSTEM, AudioManager.STREAM_RING, AudioManager.STREAM_MUSIC or AudioManager.STREAM_ALARM
direction
The direction to adjust the volume. One of AudioManager.ADJUST_LOWER, AudioManager.ADJUST_RAISE, or AudioManager.ADJUST_SAME.
flags
One or more flags.

Remarks

Adjusts the volume of a particular stream by one step in a direction.

This method should only be used by applications that replace the platform-wide management of audio settings or the main telephony application.

[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