mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
30 lines
646 B
JavaScript
Executable File
30 lines
646 B
JavaScript
Executable File
(function() {
|
|
|
|
function applicationPreferences() {}
|
|
|
|
applicationPreferences.prototype.get = function(key,success,fail)
|
|
{
|
|
var args = {};
|
|
args.key = key;
|
|
cordova.exec(success,fail,"applicationPreferences","getSetting",[args]);
|
|
};
|
|
|
|
applicationPreferences.prototype.set = function(key,value,success,fail)
|
|
{
|
|
var args = {};
|
|
args.key = key;
|
|
args.value = value;
|
|
cordova.exec(success,fail,"applicationPreferences","setSetting",[args]);
|
|
};
|
|
|
|
|
|
if(!window.plugins) {
|
|
window.plugins = {};
|
|
}
|
|
if ( ! window.plugins.applicationPreferences ) {
|
|
window.plugins.applicationPreferences = new applicationPreferences();
|
|
}
|
|
|
|
})();
|
|
|