cordova-plugin-music-controls
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "cordova-plugin-music-controls", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Music controls for Cordova apps", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -75,2 +75,7 @@ # Cordova Music Controls Plugin | ||
``` | ||
```javascript | ||
MusicControls.updateIsPlaying(true); // toggle the play/pause notification button | ||
``` | ||
## Contributing | ||
@@ -77,0 +82,0 @@ |
module.exports = { | ||
updateCallback : function(){}, | ||
create: function(data, successCallback, errorCallback) { | ||
@@ -21,2 +22,7 @@ if (data.artist === undefined){ | ||
}, | ||
updateIsPlaying: function(isPlaying,successCallback,errorCallback){ | ||
cordova.exec(successCallback, errorCallback, 'MusicControls', 'updateIsPlaying', [{isPlaying : isPlaying}]); | ||
}, | ||
destroy: function(successCallback,errorCallback){ | ||
@@ -23,0 +29,0 @@ cordova.exec(successCallback, errorCallback, 'MusicControls', 'destroy', []); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23164
12
90
88