UNPKG

ionic-native

Version:

Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support

61 lines 2.25 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var plugin_1 = require('./plugin'); /** * @name Spinner Dialog * @description * @usage * ```typescript * import { SpinnerDialog } from 'ionic-native'; * * * SpinnerDialog.show(); * * SpinnerDialog.hide(); * ``` * @interfaces * SpinnerDialogIOSOptions */ var SpinnerDialog = (function () { function SpinnerDialog() { } /** * Shows the spinner dialog * @param title {string} Spinner title (shows on Android only) * @param message {string} Spinner message * @param cancelCallback {boolean|function} Set to true to set spinner not cancelable. Or provide a function to call when the user cancels the spinner. * @param iOSOptions {object} Options for iOS only */ SpinnerDialog.show = function (title, message, cancelCallback, iOSOptions) { }; /** * Hides the spinner dialog if visible */ SpinnerDialog.hide = function () { }; __decorate([ plugin_1.Cordova({ sync: true }) ], SpinnerDialog, "show", null); __decorate([ plugin_1.Cordova({ sync: true }) ], SpinnerDialog, "hide", null); SpinnerDialog = __decorate([ plugin_1.Plugin({ pluginName: 'SpinnerDialog', plugin: 'cordova-plugin-spinner-dialog', pluginRef: 'window.plugins.spinnerDialog', repo: 'https://github.com/Paldom/SpinnerDialog', platforms: ['Android', 'iOS', 'Windows Phone 8'] }) ], SpinnerDialog); return SpinnerDialog; }()); exports.SpinnerDialog = SpinnerDialog; //# sourceMappingURL=spinnerdialog.js.map