@capgo/capacitor-nfc
Public API surface for the Capacitor NFC plugin.
Overview
Section titled “Overview”Public API surface for the Capacitor NFC plugin.
Core Capabilities
Section titled “Core Capabilities”startScanning- Starts listening for NFC tags.stopScanning- Stops the ongoing NFC scanning session.write- Writes the provided NDEF records to the last discovered tag.erase- Attempts to erase the last discovered tag by writing an empty NDEF message.
Public API
Section titled “Public API”| Method | Description |
|---|---|
startScanning | Starts listening for NFC tags. |
stopScanning | Stops the ongoing NFC scanning session. |
write | Writes the provided NDEF records to the last discovered tag. |
erase | Attempts to erase the last discovered tag by writing an empty NDEF message. |
makeReadOnly | Attempts to make the last discovered tag read-only. |
share | Shares an NDEF message with another device via peer-to-peer (Android only). |
unshare | Stops sharing previously provided NDEF message (Android only). |
getStatus | Returns the current NFC adapter status. |
showSettings | Opens the system settings page where the user can enable NFC. |
getPluginVersion | Returns the version string baked into the native plugin. |
isSupported | Checks whether the device has NFC hardware support. |
addListener | See the source definitions for current behavior. |
addListener | See the source definitions for current behavior. |
addListener | See the source definitions for current behavior. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-nfc.