mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-14 04:05:23 +08:00
38 lines
966 B
TypeScript
38 lines
966 B
TypeScript
![]() |
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()
|
||
|
static startActivity (options : {action:any,url:string}) : Promise<any> {return}
|
||
|
|
||
|
@Cordova()
|
||
|
static hasExtra (extra : any) : Promise<any> {return}
|
||
|
|
||
|
@Cordova()
|
||
|
static getExtra (extra : any) : Promise<any> {return}
|
||
|
|
||
|
@Cordova()
|
||
|
static getUri () : Promise<string> {return};
|
||
|
|
||
|
@Cordova()
|
||
|
static onNewIntent() : Promise<string> {return};
|
||
|
|
||
|
@Cordova()
|
||
|
static sendBroadcast(options : {action:string, extras?:{option:boolean}}) : Promise<any> {return}
|
||
|
|
||
|
}
|