import { WebIntent } from '@ionic-native/web-intent' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class WebIntentMock extends WebIntent { type { string } ACTION_SEND : string ; type { string } ACTION_VIEW : string ; type { string } EXTRA_TEXT : string ; type { string } EXTRA_SUBJECT : string ; type { string } EXTRA_STREAM : string ; type { string } EXTRA_EMAIL : string ; type { string } ACTION_CALL : string ; type { string } ACTION_SENDTO : string ; type { string } ACTION_GET_CONTENT : string ; type { string } ACTION_PICK : string ; param options { Object } returns { Promise < any > } startActivity ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param options { Object } returns { Promise < any > } startActivityForResult ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param extra { string } returns { Promise < any > } hasExtra ( extra ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param extra { string } returns { Promise < any > } getExtra ( extra ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getUri ( ) { let response = '' ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Observable < string > } onNewIntent ( ) { let response = '' ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; param options { Object } returns { Promise < any > } sendBroadcast ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param filters { any } registerBroadcastReceiver ( filters ) { let response = '' ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; /**
     * Unregisters a broadcast receiver
     */ unregisterBroadcastReceiver ( ) { } ; /**
    * Returns the content of the intent used whenever the application activity is launched
    */ onIntent ( ) { let response = '' ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; /**
    *
    */ onActivityResult ( ) { } ; returns { Promise < any > } getIntent ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }