mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 08:57:53 -05:00
26 lines
614 B
JavaScript
26 lines
614 B
JavaScript
function applicationPreferences() {
|
|
}
|
|
|
|
applicationPreferences.prototype.get = function(key,success,fail)
|
|
{
|
|
var args = {};
|
|
args.key = key;
|
|
PhoneGap.exec(success,fail,"applicationPreferences","getSetting",[args]);
|
|
};
|
|
|
|
applicationPreferences.prototype.set = function(key,value,success,fail)
|
|
{
|
|
var args = {};
|
|
args.key = key;
|
|
args.value = value;
|
|
PhoneGap.exec(success,fail,"applicationPreferences","setSetting",[args]);
|
|
};
|
|
|
|
PhoneGap.addConstructor(function()
|
|
{
|
|
if(!window.plugins)
|
|
{
|
|
window.plugins = {};
|
|
}
|
|
window.plugins.applicationPreferences = new applicationPreferences();
|
|
}); |