NDEFMessage
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
TheNDEFMessage interface of theWeb 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 theNDEFMessage() constructor or from theNDEFReadingEvent.message property, which is passed to thereading event.
In this article
Constructor
NDEFMessage()ExperimentalCreates a new
NDEFMessageobject, initialized with the given NDEF records.
Attributes
NDEFMessage.recordsRead onlyExperimentalReturns the list of NDEF records contained in the message.
Specifications
| Specification |
|---|
| Web NFC> # dom-ndefmessage> |