yea toast

This commit is contained in:
Max Lynch
2015-11-28 16:52:05 -06:00
parent 4b519753d2
commit 044a824f29
7 changed files with 74 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
import {wrap, promisify} from '../util';
let PLUGIN_REF = 'plugins.toast'
export var Toast = {
// Metadata
name: 'Toast',
plugin: 'cordova-plugin-x-toast',
// Methods
showWithOptions: wrap(PLUGIN_REF, 'showWithOptions', 1, 2),
hide: promisify(PLUGIN_REF, 'hide', 0, 1),
}