Skip to content

Control volume and Receive volume events (iOS /Android)

Notifications You must be signed in to change notification settings

boedy/cordova-volume-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-volume-control

Control volume and Receive volume events (iOS /Android)

Supported Platforms

  • iOS
  • Android

Installation

cordova plugin add https://github.com/boedy/cordova-volume-control --save

Methods

  • volumeControl.init({options}, callbackVolumeChanges); Initializes plugin
  • volumeControl.destroy(); Unset plugin
  • volumeControl.setVolume(float 0 <=> 1); Set volume

volumeControl.init options parameter

  • volume: Set volume during initialization
  • hideVolumeNotification: (iOS only) hides the volume UI during volume change

Quick Example

var options = {volume: 0.5, hideVolumeNotification:true};

//init
volumeControl.init(options, function(vol){
  console.log("Volume changed" , vol);
});

About

Control volume and Receive volume events (iOS /Android)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published