Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@monaca/capacitor-nfc-reader

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monaca/capacitor-nfc-reader

A Capacitor plugin for reading NFC tags on Android and iOS devices

latest
Source
npmnpm
Version
0.0.1-beta.1
Version published
Weekly downloads
2
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

@monaca/capacitor-nfc-reader

A Capacitor plugin for reading NFC tags on Android and iOS devices

Install

npm install @monaca/capacitor-nfc-reader
npx cap sync

API

  • initialize()
  • startScanning()
  • stopScanning()
  • addListener('nfcTagDetected', ...)
  • addListener('nfcError', ...)
  • removeAllListeners()
  • Interfaces
  • Enums

initialize()

initialize() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>

startScanning()

startScanning() => Promise<void>

stopScanning()

stopScanning() => Promise<void>

addListener('nfcTagDetected', ...)

addListener(eventName: 'nfcTagDetected', listenerFunc: (tag: NFCTag) => void) => Promise<PluginListenerHandle>
ParamType
eventName'nfcTagDetected'
listenerFunc(tag: NFCTag) => void

Returns: Promise<PluginListenerHandle>

addListener('nfcError', ...)

addListener(eventName: 'nfcError', listenerFunc: (error: NFCError) => void) => Promise<PluginListenerHandle>
ParamType
eventName'nfcError'
listenerFunc(error: NFCError) => void

Returns: Promise<PluginListenerHandle>

removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

NFCTag

PropType
idstring
typeNFCTagType

NFCError

PropType
codestring
messagestring

Enums

NFCTagType

MembersValue
MIFARE'MIFARE'
FeliCa'FeliCa'
ISO15693'ISO15693'
ISO7816'ISO7816'
Unknown'Unknown'

Keywords

capacitor

FAQs

Package last updated on 17 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts