Android.Media.Session.MediaController.SetVolumeTo Method
Set the volume of the output this session is playing on.

Syntax

[Android.Runtime.Register("setVolumeTo", "(II)V", "")]
public void SetVolumeTo (int value, [Android.Runtime.GeneratedEnum] Android.Media.AudioFlags flags)

See Also

MediaController.GetPlaybackInfo

Parameters

value
The value to set it to, between 0 and the reported max.
flags
Flags from Android.Media.AudioManager to include with the volume request.

Remarks

Set the volume of the output this session is playing on. The command will be ignored if it does not support 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