UNPKG

nativescript-preferences

Version:
35 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var observable_1 = require("tns-core-modules/data/observable"); var app = require("tns-core-modules/application"); var dialogs = require("tns-core-modules/ui/dialogs"); var Common = (function (_super) { __extends(Common, _super); function Common() { return _super.call(this) || this; } Common.prototype.setValue = function (key, value) { }; Common.prototype.getValue = function (key, defaultValue) { }; Common.prototype.openSettings = function () { }; Common.prototype.clear = function () { }; return Common; }(observable_1.Observable)); exports.Common = Common; var Utils = (function () { function Utils() { } Utils.SUCCESS_MSG = function () { var msg = "Your plugin is working on " + (app.android ? 'Android' : 'iOS') + "."; setTimeout(function () { dialogs.alert(msg + " For real. It's really working :)").then(function () { return console.log("Dialog closed."); }); }, 2000); return msg; }; return Utils; }()); exports.Utils = Utils; //# sourceMappingURL=preferences.common.js.map