Skip to content

@capgo/capacitor-volume-buttons

Capture hardware volume button presses for custom app controls and shortcuts

Capture hardware volume button presses for custom app controls and shortcuts

Start with addListener() and the other core methods listed below.

PlatformSupportNotes
iOSYesNative
AndroidYesNative
WebNoGuard with Capacitor.getPlatform()
  • addListener - Listen for presses on the hardware volume buttons.
  • removeAllListeners - Removes all listeners for this plugin.
  • getPluginVersion - Get the native Capacitor plugin version.
MethodDescription
addListenerListen for presses on the hardware volume buttons.
removeAllListenersRemoves all listeners for this plugin.
getPluginVersionGet the native Capacitor plugin version.

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.