2016-04-04 12:05:34 +08:00
|
|
|
import {Cordova, CordovaProperty, Plugin} from './plugin';
|
|
|
|
declare var window;
|
|
|
|
@Plugin({
|
|
|
|
plugin: 'https://github.com/Initsogar/cordova-webintent.git',
|
|
|
|
pluginRef: 'window.plugins.webintent',
|
|
|
|
repo: 'https://github.com/Initsogar/cordova-webintent.git'
|
|
|
|
})
|
|
|
|
export class WebIntent {
|
|
|
|
|
|
|
|
@CordovaProperty
|
|
|
|
static get ACTION_VIEW () {
|
|
|
|
return window.plugins.webintent.ACTION_VIEW;
|
|
|
|
}
|
|
|
|
|
|
|
|
@CordovaProperty
|
|
|
|
static get EXTRA_TEXT () {
|
|
|
|
return window.plugins.webintent.EXTRA_TEXT;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static startActivity (options: {action: any, url: string}): Promise<any> {return; }
|
2016-04-04 12:05:34 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static hasExtra (extra: any): Promise<any> {return; }
|
2016-04-04 12:05:34 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getExtra (extra: any): Promise<any> {return; }
|
2016-04-04 12:05:34 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getUri (): Promise<string> {return; };
|
2016-04-04 12:05:34 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static onNewIntent(): Promise<string> {return; };
|
2016-04-04 12:05:34 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static sendBroadcast(options: {action: string, extras?: {option: boolean}}): Promise<any> {return; }
|
2016-04-04 12:05:34 +08:00
|
|
|
|
|
|
|
}
|