cap-nfc-hexa
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

cap-nfc-hexa

Plugin para leer y escribir NFC en Androi y iOS

Install

npm install cap-nfc-hexa
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


waitNFC()

waitNFC() => Promise<void>

startNfcListening()

startNfcListening() => Promise<void>

handleOnNewIntent()

handleOnNewIntent() => Promise<void>

startScan()

startScan() => Promise<ScanResult>

Returns: Promise<ScanResult>


Interfaces

IScanResultWithContent

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

IScanResultWithoutContent

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

Type Aliases

ScanResult

IScanResultWithContent | IScanResultWithoutContent

Readme

Keywords

Package Sidebar

Install

npm i cap-nfc-hexa

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

48.2 kB

Total Files

26

Last publish

Collaborators

  • batto77