@staytuned-io/cordova-plugin-staytuned
Advanced tools
Comparing version 1.0.19 to 1.1.0
{ | ||
"name": "@staytuned-io/cordova-plugin-staytuned", | ||
"version": "1.0.19", | ||
"version": "1.1.0", | ||
"types": "./ionic-plugin/", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
@@ -7,2 +7,3 @@ var exec = require("cordova/exec"); | ||
var STPlayer = function () {}; | ||
var STOffline = function () {}; | ||
@@ -68,11 +69,28 @@ Staytuned.prototype.init = function (appId, appToken, success, fail) { | ||
STPlayer.prototype.setOnCellClickListener = function (success, fail) { | ||
STPlayer.prototype.setOnCellClickListener = function (success, fail) { | ||
exec(success, fail, "StaytunedPlugin", "STPlayer_onCellClick", []); | ||
}; | ||
STOffline.prototype.add = function (track, success, fail) { | ||
exec(success, fail, "StaytunedPlugin", "STOffline_add", [track]); | ||
}; | ||
STOffline.prototype.remove = function (track, success, fail) { | ||
exec(success, fail, "StaytunedPlugin", "STOffline_remove", [track]); | ||
}; | ||
STOffline.prototype.getContents = function (success, fail) { | ||
exec(success, fail, "StaytunedPlugin", "STOffline_getContents", []); | ||
}; | ||
STOffline.prototype.getTracks = function (success, fail) { | ||
exec(success, fail, "StaytunedPlugin", "STOffline_getTracks", []); | ||
}; | ||
Staytuned.prototype.sections = new STSections(); | ||
Staytuned.prototype.contents = new STContents(); | ||
Staytuned.prototype.player = new STPlayer(); | ||
Staytuned.prototype.offline = new STOffline(); | ||
var staytuned = new Staytuned(); | ||
module.exports = staytuned; |
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
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
41634
78