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
|
|
|
|
})
|
2015-11-30 09:54:45 +08:00
|
|
|
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
|
|
|
})
|
2015-11-30 11:50:58 +08:00
|
|
|
static showWithOptions(options:any){
|
|
|
|
console.log('Show with options');
|
|
|
|
};
|
2015-11-29 06:52:05 +08:00
|
|
|
}
|