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

21 lines
313 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-29 08:26:55 +08:00
pluginRef: 'plugins.toast'
})
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
}