web api interface
NDEFMessage
Secure contextLimited availability
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 message property, which is passed to the reading event.
Constructor
NDEFMessage()Experimental- : Creates a new
NDEFMessageobject, initialized with the given NDEF records.
- : Creates a new
Attributes
recordsRead only Experimental- : Returns the list of NDEF records contained in the message.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.