From d7ccd454fb757d8d3be57a70bfa7fb3c269e3318 Mon Sep 17 00:00:00 2001 From: Don Coleman Date: Fri, 14 Aug 2020 11:33:43 -0400 Subject: [PATCH] feat(nfc): update to phonegap-nfc@1.2.0 (#3486) --- src/@ionic-native/plugins/nfc/index.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/nfc/index.ts b/src/@ionic-native/plugins/nfc/index.ts index 4c124c0d0..f6d7b78b2 100644 --- a/src/@ionic-native/plugins/nfc/index.ts +++ b/src/@ionic-native/plugins/nfc/index.ts @@ -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 @@ -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 @@ -130,7 +138,7 @@ export class NFC extends IonicNativePlugin { * https://github.com/chariotsolutions/phonegap-nfc#nfcscanndef */ @Cordova({ sync: true }) - scanNdef(): Promise { + scanNdef(options?: ScanOptions): Promise { return; } @@ -141,7 +149,7 @@ export class NFC extends IonicNativePlugin { * https://github.com/chariotsolutions/phonegap-nfc#nfcscantag */ @Cordova({ sync: true }) - scanTag(): Promise { + scanTag(options?: ScanOptions): Promise { return; }