kaios-types
    Preparing search index...

    Interface VolumeManager

    VolumeManager API

    The VolumeManager interface provides methods to control the device's audio volume. It allows applications to request volume adjustments and display the volume UI.

    interface VolumeManager {
        requestDown(): void;
        requestShow(): void;
        requestUp(): void;
    }
    Index

    Methods

    • Sends an event to the system application to decrease the current audio volume.

      Returns void

      // Decrease volume by one step
      navigator.volumeManager.requestDown();
    • Sends an event to the system application to show the current audio volume UI. This displays the volume level indicator to the user.

      Returns void

      // Display the volume UI showing current level
      navigator.volumeManager.requestShow();
    • Sends an event to the system application to increase the current audio volume.

      Returns void

      // Increase volume by one step
      navigator.volumeManager.requestUp();