Plugin para leer y escribir NFC en Androi y iOS
npm install cap-nfc-hexa
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
waitNFC() => Promise<void>
startNfcListening() => Promise<void>
handleOnNewIntent() => Promise<void>
startScan() => Promise<ScanResult>
Returns: Promise<ScanResult>
Prop | Type | Description | Since |
---|---|---|---|
hasContent |
true |
This indicates whether or not the scan resulted in readable content. When stopping the scan with resolveScan set to true , for example, this parameter is set to false , because no actual content was scanned. |
1.0.0 |
content |
string |
This holds the content of the nfc if available. | 1.0.0 |
cardType |
string |
This holds the card type detected. | 1.0.0 |
cardNumber |
string |
This holds the card number detected. | 1.0.0 |
expiryDate |
string |
This holds the expiry date of the card detected. | 1.0.0 |
format |
string |
This returns format of scan result. | 2.1.0 |
Prop | Type | Description | Since |
---|---|---|---|
hasContent |
false |
This indicates whether or not the scan resulted in readable content. When stopping the scan with resolveScan set to true , for example, this parameter is set to false , because no actual content was scanned. |
1.0.0 |
content |
This holds the content of the nfc if available. | 1.0.0 | |
format |
This returns format of scan result. | 2.1.0 |