NDEFReader()
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
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
let reader = new NDEFReader();
Parameters
None.
Return value
A new NDEFReader
.
Specifications
Specification |
---|
Web NFC API # dom-ndefreader-constructor |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
NDEFReader |
No |
No |
No |
No |
No |
No |
No |
89 |
No |
No |
No |
No |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/NDEFReader/NDEFReader