NDEFMessage
Draft: This page is not complete.
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 NDEFMessage
interface of the Web NFC API represents the content of an NDEF message that has been read from or could be written to an NFC tag. An instance is acquired by calling the NDEFMessage()
constructor or from the NDEFReadingEvent.message
property, which is passed to NDEFReader.onreading
.
Constructor
NDEFMessage()
-
Creates a new
NDEFMessage
object, initialized with the given NDEF records.
Attributes
-
NDEFMessage.records
Read only -
Returns the list of NDEF records contained in the message.
Specifications
Specification |
---|
Web NFC API # dom-ndefmessage |
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 | |
NDEFMessage |
No |
No |
No |
No |
No |
No |
No |
89 |
No |
No |
No |
No |
NDEFMessage |
No |
No |
No |
No |
No |
No |
No |
89 |
No |
No |
No |
No |
records |
No |
No |
No |
No |
No |
No |
No |
89 |
No |
No |
No |
No |
secure_context_required |
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/NDEFMessage