WebNfcService

Provides access to the Web NFC API for reading and writing NFC tags. Supports NDEF message scanning and writing.

TypeScriptexample.ts
import { WebNfcService } from '@angular-helpers/browser-web-apis/experimental'

# Methods

MethodSignatureReturnsDescription
scanscan(): Observable<NdefReadingEvent>Observable<NdefReadingEvent>Starts scanning for NFC tags and emits NDEF reading events.
writewrite(message: NdefMessage | string, options?: NdefWriteOptions): Promise<void>Promise<void>Writes an NDEF message to an NFC tag.
isSupportedisSupported(): booleanbooleanReturns whether the Web NFC API is available.
LCP N/A
CLS N/A
INP N/A