Skip to content

Commit

Permalink
feat(nfc): update to phonegap-nfc@1.2.0 (#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
don authored Aug 14, 2020
1 parent fab667f commit d7ccd45
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/@ionic-native/plugins/nfc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ export interface NfcTag {
type?: string;
}

export interface ScanOptions {
/**
* If true, keep the scan session open so write can be called
* after reading. The default value is false.
*/
keepSessionOpen?: boolean;
}

/**
* @name NFC
* @description
Expand Down Expand Up @@ -85,7 +93,7 @@ export interface NfcTag {
plugin: 'phonegap-nfc',
pluginRef: 'nfc',
repo: 'https://github.com/chariotsolutions/phonegap-nfc',
platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8', 'iOS'],
platforms: ['Android', 'iOS', 'Windows'],
})
/**
* @{ NFC } class methods
Expand Down Expand Up @@ -130,7 +138,7 @@ export class NFC extends IonicNativePlugin {
* https://github.com/chariotsolutions/phonegap-nfc#nfcscanndef
*/
@Cordova({ sync: true })
scanNdef(): Promise<NfcTag> {
scanNdef(options?: ScanOptions): Promise<NfcTag> {
return;
}

Expand All @@ -141,7 +149,7 @@ export class NFC extends IonicNativePlugin {
* https://github.com/chariotsolutions/phonegap-nfc#nfcscantag
*/
@Cordova({ sync: true })
scanTag(): Promise<NfcTag> {
scanTag(options?: ScanOptions): Promise<NfcTag> {
return;
}

Expand Down

0 comments on commit d7ccd45

Please sign in to comment.