NDEFMessage

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 the reading event.

Constructor

NDEFMessage() Experimental

Creates a new NDEFMessage object, initialized with the given NDEF records.

Attributes

NDEFMessage.records Read only Experimental

Returns the list of NDEF records contained in the message.

Specifications

Specification
Web NFC API
# dom-ndefmessage

Browser compatibility

BCD tables only load in the browser