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

Commit 01cabf20 authored by Vlad Popa's avatar Vlad Popa
Browse files

Improve the OnAudioDeviceVolumeChangedListener documentation

Test: trivial
Bug: 428923473
Flag: DOCS_ONLY
Change-Id: Ibedb37f6506a8136e9bf3adca04a4a7e9ee52064
parent 9aac5f57
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