UNPKG

@ionic-native/toast

Version:

Ionic Native - Native plugins for ionic apps

36 lines (31 loc) 2.23 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var tslib = require('tslib'); var core$1 = require('@angular/core'); var core = require('@ionic-native/core'); require('rxjs'); var Toast = /** @class */ (function (_super) { tslib.__extends(Toast, _super); function Toast() { return _super !== null && _super.apply(this, arguments) || this; } Toast.prototype.show = function (message, duration, position) { return core.cordova(this, "show", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.hide = function () { return core.cordova(this, "hide", {}, arguments); }; Toast.prototype.showWithOptions = function (options) { return core.cordova(this, "showWithOptions", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.showShortTop = function (message) { return core.cordova(this, "showShortTop", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.showShortCenter = function (message) { return core.cordova(this, "showShortCenter", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.showShortBottom = function (message) { return core.cordova(this, "showShortBottom", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.showLongTop = function (message) { return core.cordova(this, "showLongTop", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.showLongCenter = function (message) { return core.cordova(this, "showLongCenter", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.prototype.showLongBottom = function (message) { return core.cordova(this, "showLongBottom", { "observable": true, "clearFunction": "hide" }, arguments); }; Toast.pluginName = "Toast"; Toast.plugin = "cordova-plugin-x-toast"; Toast.pluginRef = "plugins.toast"; Toast.repo = "https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin"; Toast.platforms = ["Android", "BlackBerry 10", "iOS", "Windows", "Windows Phone 8"]; Toast.decorators = [ { type: core$1.Injectable } ]; return Toast; }(core.IonicNativePlugin)); exports.Toast = Toast;