mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-15 01:08:17 -05:00
26 lines
611 B
JavaScript
Executable File
26 lines
611 B
JavaScript
Executable File
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]);
|
|
};
|
|
|
|
Cordova.addConstructor(function()
|
|
{
|
|
if(!window.plugins)
|
|
{
|
|
window.plugins = {};
|
|
}
|
|
window.plugins.applicationPreferences = new applicationPreferences();
|
|
}); |