import { NFC } from '@ionic-native/nfc' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class NFCMock extends NFC { param onSuccess param onFailure returns { Observable < any > } addNdefListener ( onSuccess ? , onFailure ? ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param onSuccess param onFailure returns { Observable < any > } addTagDiscoveredListener ( onSuccess ? , onFailure ? ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param mimeType param onSuccess param onFailure returns { Observable < any > } addMimeTypeListener ( mimeType , onSuccess ? , onFailure ? ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param onSuccess param onFailure returns { Observable < any > } addNdefFormatableListener ( onSuccess ? , onFailure ? ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param message { any [ ] } returns { Promise < any > } write ( message ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } makeReadyOnly ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param message returns { Promise < any > } share ( message ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } unshare ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; /**
     * Erase a NDEF tag
     */ erase ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param uris returns { Promise < any > } handover ( uris ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } stopHandover ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } showSettings ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } enabled ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param bytes { number [ ] } returns { string } bytesToString ( bytes ) { let response = '' ; return response ; } ; param str { string } returns { number [ ] } stringToBytes ( str ) { let response = [ ] ; return response ; } ; param bytes { number [ ] } returns { string } bytesToHexString ( bytes ) { let response = '' ; return response ; } ; } hidden export class Ndef { uriRecord ( uri ) { return ; } ; textRecord ( text ) { return ; } ; mimeMediaRecord ( mimeType , payload ) { return ; } ; androidApplicationRecord ( packageName ) { return ; } ; }