다음을 통해 공유


VolumeProvider.OnAdjustVolume(Adjust) Method

Definition

Override to handle requests to adjust the volume of the current output.

[Android.Runtime.Register("onAdjustVolume", "(I)V", "GetOnAdjustVolume_IHandler")]
public virtual void OnAdjustVolume (Android.Media.Adjust direction);
[<Android.Runtime.Register("onAdjustVolume", "(I)V", "GetOnAdjustVolume_IHandler")>]
abstract member OnAdjustVolume : Android.Media.Adjust -> unit
override this.OnAdjustVolume : Android.Media.Adjust -> unit

Parameters

direction
Adjust

The direction to change the volume in.

Attributes

Remarks

Override to handle requests to adjust the volume of the current output. Direction will be one of AudioManager#ADJUST_LOWER, AudioManager#ADJUST_RAISE, AudioManager#ADJUST_SAME. After the volume has been modified #setCurrentVolume must be called to notify the system.

Java documentation for android.media.VolumeProvider.onAdjustVolume(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