Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5849fcad authored by Vlad Popa's avatar Vlad Popa Committed by Android (Google) Code Review
Browse files

Merge "Improve the OnAudioDeviceVolumeChangedListener documentation" into main

parents 1c7e5b7b 01cabf20
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -232,7 +232,12 @@ public class AudioDeviceVolumeManager {
    @FlaggedApi(FLAG_UNIFY_ABSOLUTE_VOLUME_MANAGEMENT)
    public interface OnAudioDeviceVolumeChangedListener {
        /**
         * Called the device for the given audio device has changed.
         * Called when the volume for the given audio device has changed.
         *
         * <p>This method will not be called after #notifyAbsoluteVolumeChanged is called since this
         * is used to inform the audio framework that the external controller has already applied
         * the new volume.
         *
         * @param device the audio device whose volume has changed
         * @param vol the new volume for the device
         */
@@ -242,6 +247,12 @@ public class AudioDeviceVolumeManager {

        /**
         * Called when the volume for the given audio device has been adjusted.
         *
         * <p>This method will be called only when registered for a volume behavior with the
         * parameter {@code handlesVolumeAdjustment} set to {@code true} in the
         * {@code setDeviceAbsoluteVolumeBehavior} registration methods and will be called as a
         * result of an adjustment to the volume in any direction
         *
         * @param device the audio device whose volume has been adjusted
         * @param vol the volume info for the device
         * @param direction the direction of the adjustment