UNPKG

cordova-ios-plugin-userdefaults

Version:

This plugin is used to save and load data to the app groups. It is used to share data between App and Share Extension.

13 lines (9 loc) 378 B
var UserDefaults = function () {}; UserDefaults.prototype.save = function (options, success, fail) { cordova.exec(success, fail, "UserDefaults", "save", [options]); }; UserDefaults.prototype.load = function (options, success, fail) { cordova.exec(success, fail, "UserDefaults", "load", [options]); }; var UserDefaults = new UserDefaults(); module.exports = UserDefaults;