@capgo/capacitor-volume-buttons
Overview
Section titled “Overview”Capture hardware volume button presses for custom app controls and shortcuts
Start with addListener() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | No | Guard with Capacitor.getPlatform() |
Core Capabilities
Section titled “Core Capabilities”addListener- Listen for presses on the hardware volume buttons.removeAllListeners- Removes all listeners for this plugin.getPluginVersion- Get the native Capacitor plugin version.
Public API
Section titled “Public API”| Method | Description |
|---|---|
addListener | Listen for presses on the hardware volume buttons. |
removeAllListeners | Removes all listeners for this plugin. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-volume-buttons.
Keep going from @capgo/capacitor-volume-buttons
Section titled “Keep going from @capgo/capacitor-volume-buttons”If you are using @capgo/capacitor-volume-buttons to plan native plugin work, connect it with Using @capgo/capacitor-volume-buttons for the native capability in Using @capgo/capacitor-volume-buttons, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.