NDEFReader: NDEFReader() constructor
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The NDEFReader()
constructor of the NDEFReader
interface returns a
new NDEFReader
object, which is used to read NDEF messages from
compatible NFC devices, e.g. NDEF tags, within the reader's magnetic induction
field.
Syntax
js
new NDEFReader()
Parameters
None.
Return value
A new NDEFReader
.
Specifications
Specification |
---|
Web NFC API # dom-ndefreader-constructor |
Browser compatibility
BCD tables only load in the browser