Files
phonegap-plugins/iPhone/ApplicationPreferences/applicationPreferences.js
Tue Topholm 6a8e87c2f1 Fixed a small error in js file, thx Michael DeSimone
Signed-off-by: Tue Topholm <tt@sugee.dk>
2011-12-29 00:07:07 +01:00

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();
});