Skip to content

@capgo/capacitor-nfc

Public API surface for the Capacitor NFC plugin.

Public API surface for the Capacitor NFC plugin.

  • 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.
MethodDescription
startScanningStarts listening for NFC tags.
stopScanningStops the ongoing NFC scanning session.
writeWrites the provided NDEF records to the last discovered tag.
eraseAttempts to erase the last discovered tag by writing an empty NDEF message.
makeReadOnlyAttempts to make the last discovered tag read-only.
shareShares an NDEF message with another device via peer-to-peer (Android only).
unshareStops sharing previously provided NDEF message (Android only).
getStatusReturns the current NFC adapter status.
showSettingsOpens the system settings page where the user can enable NFC.
getPluginVersionReturns the version string baked into the native plugin.
isSupportedChecks whether the device has NFC hardware support.
addListenerSee the source definitions for current behavior.
addListenerSee the source definitions for current behavior.
addListenerSee the source definitions for current behavior.

This reference is synced from src/definitions.ts in capacitor-nfc.