Partager via


AudioManager.AdjustVolumeGroupVolume Method

Definition

Adjusts the volume of a particular group associated to given id by one step in a direction.

[Android.Runtime.Register("adjustVolumeGroupVolume", "(III)V", "GetAdjustVolumeGroupVolume_IIIHandler", ApiSince=34)]
public virtual void AdjustVolumeGroupVolume (int groupId, Android.Media.Adjust direction, Android.Media.VolumeNotificationFlags flags);
[<Android.Runtime.Register("adjustVolumeGroupVolume", "(III)V", "GetAdjustVolumeGroupVolume_IIIHandler", ApiSince=34)>]
abstract member AdjustVolumeGroupVolume : int * Android.Media.Adjust * Android.Media.VolumeNotificationFlags -> unit
override this.AdjustVolumeGroupVolume : int * Android.Media.Adjust * Android.Media.VolumeNotificationFlags -> unit

Parameters

groupId
Int32

of the android.media.audiopolicy.AudioVolumeGroup to consider.

direction
Adjust

The direction to adjust the volume. One of #ADJUST_LOWER, #ADJUST_RAISE, or #ADJUST_SAME.

Attributes

Remarks

Adjusts the volume of a particular group associated to given id by one step in a direction.

If the volume group is associated to a stream type, it fallbacks on #adjustStreamVolume(int, int, int) for compatibility reason.

Call first in prior #getVolumeGroupIdForAttributes(AudioAttributes) to retrieve the volume group id supporting the given AudioAttributes.

Java documentation for android.media.AudioManager.adjustVolumeGroupVolume(int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to