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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    2
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i cap-nfc-hexa

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

48.2 kB

Total Files

26

Last publish

Collaborators

  • batto77