awesome-cordova-plugins/src/plugins/toast.ts

22 lines
380 B
TypeScript
Raw Normal View History

2015-11-29 08:26:55 +08:00
import {Plugin, Cordova} from './plugin';
2015-11-29 06:52:05 +08:00
2015-11-29 08:26:55 +08:00
@Plugin({
2015-11-29 06:52:05 +08:00
name: 'Toast',
plugin: 'cordova-plugin-x-toast',
2015-11-30 06:30:15 +08:00
pluginRef: 'plugins.toast',
repo: 'https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin'
2015-11-29 08:26:55 +08:00
})
export class Toast {
@Cordova({
successIndex: 0,
errIndex: 1
})
static hide;
2015-11-29 06:52:05 +08:00
2015-11-29 08:26:55 +08:00
@Cordova({
2015-11-29 08:36:38 +08:00
successIndex: 1,
errIndex: 2
2015-11-29 08:26:55 +08:00
})
static showWithOptions;
2015-11-29 06:52:05 +08:00
}