mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-20 09:42:54 +08:00
11 lines
301 B
JavaScript
11 lines
301 B
JavaScript
var util_1 = require('../util');
|
|
var PLUGIN_REF = 'plugins.toast';
|
|
exports.Toast = {
|
|
// Metadata
|
|
name: 'Toast',
|
|
plugin: 'cordova-plugin-x-toast',
|
|
// Methods
|
|
showWithOptions: util_1.wrap(PLUGIN_REF, 'showWithOptions', 1, 2),
|
|
hide: util_1.promisify(PLUGIN_REF, 'hide', 0, 1),
|
|
};
|