Android.Media.AudioManager.AdjustVolume Method
Adjusts the volume of the most relevant stream.

Syntax

[Android.Runtime.Register("adjustVolume", "(II)V", "GetAdjustVolume_IIHandler")]
public virtual void AdjustVolume ([Android.Runtime.GeneratedEnum] Adjust direction, [Android.Runtime.GeneratedEnum] VolumeNotificationFlags flags)

See Also

AudioManager.AdjustSuggestedStreamVolume(Adjust, Android.Media.Stream, Android.Media.Stream)
AudioManager.AdjustStreamVolume(Stream, Android.Media.Adjust, Android.Media.Adjust)
AudioManager.SetStreamVolume(Stream, System.Int32, System.Int32)
AudioManager.IsVolumeFixed

Parameters

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 the most relevant stream. For example, if a call is active, it will have the highest priority regardless of if the in-call screen is showing. Another example, if music is playing in the background and a call is not active, the music stream will be adjusted.

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

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