fix(nfc): add missing param for addMimeTypeListener (#937)

Add missing  `mimeType` parameter in `addMimeTypeListener` function
This commit is contained in:
Vlado Velichkovski 2017-01-07 11:29:08 +01:00 committed by Ibby Hadeed
parent 54d1a9891b
commit ca60c5b912

View File

@ -62,18 +62,19 @@ export class NFC {
/**
* Registers an event listener for NDEF tags matching a specified MIME type.
* @param mimeType
* @param onSuccess
* @param onFailure
* @returns {Observable<any>}
*/
@Cordova({
observable: true,
successIndex: 0,
errorIndex: 3,
successIndex: 1,
errorIndex: 4,
clearFunction: 'removeMimeTypeListener',
clearWithArgs: true
})
static addMimeTypeListener(onSuccess?: Function, onFailure?: Function): Observable<any> {return; }
static addMimeTypeListener(mimeType: string, onSuccess?: Function, onFailure?: Function): Observable<any> {return; }
/**
* Registers an event listener for formatable NDEF tags.