Android.Media.Session.MediaController.AdjustVolume Method
Adjust the volume of the output this session is playing on.

Syntax

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

See Also

MediaController.GetPlaybackInfo

Parameters

direction
The direction to adjust the volume in.
flags
Any flags to pass with the command.

Remarks

Adjust the volume of the output this session is playing on. The direction must be one of Android.Media.AudioManager.ADJUST_LOWER, Android.Media.AudioManager.ADJUST_RAISE, or Android.Media.AudioManager.ADJUST_SAME. The command will be ignored if the session does not support Android.Media.VolumeProvider.VOLUME_CONTROL_RELATIVE or Android.Media.VolumeProvider.VOLUME_CONTROL_ABSOLUTE. The flags in Android.Media.AudioManager may be used to affect the handling.

[Android Documentation]

Requirements

Namespace: Android.Media.Session
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0