cordova-plugin-music-controls
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "cordova-plugin-music-controls", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Music controls for Cordova apps", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -74,2 +74,3 @@ # Cordova Music Controls Plugin | ||
// Headset events (Android only) | ||
// All media button events are listed below | ||
case 'music-controls-media-button' : | ||
@@ -100,4 +101,18 @@ // Do something | ||
MusicControls.updateIsPlaying(true); // toggle the play/pause notification button | ||
MusicControls.updateDismissable(true); | ||
``` | ||
- List of media button events (Android only): | ||
```javascript | ||
'music-controls-media-button-next', 'music-controls-media-button-pause', 'music-controls-media-button-play', | ||
'music-controls-media-button-play-pause', 'music-controls-media-button-previous', 'music-controls-media-button-stop', | ||
'music-controls-media-button-fast-forward', 'music-controls-media-button-rewind', 'music-controls-media-button-skip-backward', | ||
'music-controls-media-button-skip-forward', 'music-controls-media-button-step-backward', 'music-controls-media-button-step-forward', | ||
'music-controls-media-button-meta-left', 'music-controls-media-button-meta-right', 'music-controls-media-button-music', | ||
'music-controls-media-button-volume-up', 'music-controls-media-button-volume-down', 'music-controls-media-button-volume-mute', | ||
'music-controls-media-button-headset-hook' | ||
// Default: | ||
'music-controls-media-button' | ||
``` | ||
## Contributing | ||
@@ -104,0 +119,0 @@ |
@@ -24,2 +24,5 @@ module.exports = { | ||
}, | ||
updateDismissable: function (dismissable, successCallback, errorCallback) { | ||
cordova.exec(successCallback, errorCallback, 'MusicControls', 'updateDismissable', [{dismissable: dismissable}]); | ||
}, | ||
@@ -26,0 +29,0 @@ destroy: function (successCallback, errorCallback) { |
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
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
43775
115
123