mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
/**
|
|
* AppBlade.js
|
|
*
|
|
* Phonegap AppBlade Instance plugin
|
|
* Copyright (c) AppBlade 2012
|
|
*
|
|
*/
|
|
|
|
// --------------------------------------------------------
|
|
|
|
var AppBlade = function(){};
|
|
|
|
// --------------------------------------------------------
|
|
|
|
AppBlade.prototype.setupAppBlade = function(project, token, secret, timestamp) {
|
|
cordova.exec("AppBlade.setupAppBlade", [project, token, secret, timestamp]);
|
|
};
|
|
|
|
AppBlade.prototype.catchAndReportCrashes = function() {
|
|
cordova.exec("AppBlade.catchAndReportCrashes");
|
|
};
|
|
|
|
AppBlade.prototype.checkAuthentication = function() {
|
|
cordova.exec("AppBlade.checkAuthentication");
|
|
};
|
|
|
|
AppBlade.prototype.allowFeedbackReporting = function() {
|
|
cordova.exec("AppBlade.allowFeedbackReporting");
|
|
};
|
|
|
|
// --------------------------------------------------------
|
|
|
|
cordova.addConstructor(function() {
|
|
if (!window.Cordova) {
|
|
window.Cordova = cordova;
|
|
};
|
|
|
|
if(!window.plugins) window.plugins = {};
|
|
window.plugins.appBlade = new AppBlade();
|
|
}); |