Skip to content

Commit

Permalink
feat(plugin): add web intent plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Apr 4, 2016
1 parent 8e062a9 commit e2fc9a0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/plugins/webintent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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}

}

0 comments on commit e2fc9a0

Please sign in to comment.