Skip to content

spoonconsulting/cordova-plugin-volume-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-volume-buttons

Cordova plugin that allows to control Volume Buttons on iOS for different actions.

Installation

cordova plugin add https://github.com/spoonconsulting/cordova-plugin-volume-buttons.git
ionic cordova plugin add https://github.com/spoonconsulting/cordova-plugin-volume-buttons.git

Usage

document.addEventListener("volumebuttonslistener", action, false);
// Can be used for different actions(Example: For capturing image)
function action() {
  console.log("Hello");
}