mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
23 lines
584 B
JavaScript
23 lines
584 B
JavaScript
function applicationPreferences() {
|
|
}
|
|
|
|
applicationPreferences.prototype.get = function(name,success,fail)
|
|
{
|
|
|
|
PhoneGap.exec("applicationPreferences.getSetting", name,GetFunctionName(success),GetFunctionName(fail));
|
|
};
|
|
|
|
applicationPreferences.prototype.set = function(name,value,success,fail)
|
|
{
|
|
|
|
PhoneGap.exec("applicationPreferences.setSetting", name,value,GetFunctionName(success),GetFunctionName(fail));
|
|
};
|
|
|
|
PhoneGap.addConstructor(function()
|
|
{
|
|
if(!window.plugins)
|
|
{
|
|
window.plugins = {};
|
|
}
|
|
window.plugins.applicationPreferences = new applicationPreferences();
|
|
}); |