Skip to content

Commit

Permalink
fix(nfc): add missing param for addMimeTypeListener (#937)
Browse files Browse the repository at this point in the history
Add missing  `mimeType` parameter in `addMimeTypeListener` function
  • Loading branch information
stormwin authored and ihadeed committed Jan 7, 2017
1 parent 54d1a98 commit ca60c5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plugins/nfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ca60c5b

Please sign in to comment.