feat(nfc): update to phonegap-nfc@1.2.0 (#3486)

This commit is contained in:
Don Coleman 2020-08-14 11:33:43 -04:00 committed by GitHub
parent fab667f22c
commit d7ccd454fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,14 @@ export interface NfcTag {
type?: string; 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 * @name NFC
* @description * @description
@ -85,7 +93,7 @@ export interface NfcTag {
plugin: 'phonegap-nfc', plugin: 'phonegap-nfc',
pluginRef: 'nfc', pluginRef: 'nfc',
repo: 'https://github.com/chariotsolutions/phonegap-nfc', repo: 'https://github.com/chariotsolutions/phonegap-nfc',
platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8', 'iOS'], platforms: ['Android', 'iOS', 'Windows'],
}) })
/** /**
* @{ NFC } class methods * @{ NFC } class methods
@ -130,7 +138,7 @@ export class NFC extends IonicNativePlugin {
* https://github.com/chariotsolutions/phonegap-nfc#nfcscanndef * https://github.com/chariotsolutions/phonegap-nfc#nfcscanndef
*/ */
@Cordova({ sync: true }) @Cordova({ sync: true })
scanNdef(): Promise<NfcTag> { scanNdef(options?: ScanOptions): Promise<NfcTag> {
return; return;
} }
@ -141,7 +149,7 @@ export class NFC extends IonicNativePlugin {
* https://github.com/chariotsolutions/phonegap-nfc#nfcscantag * https://github.com/chariotsolutions/phonegap-nfc#nfcscantag
*/ */
@Cordova({ sync: true }) @Cordova({ sync: true })
scanTag(): Promise<NfcTag> { scanTag(options?: ScanOptions): Promise<NfcTag> {
return; return;
} }