NDEFRecord.data

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 data property of the NDEFRecord interface is DataView providing access to the payload data of the record.

It provides access to a raw content of the record and thus data consumer might need to decode it.

Syntax

NDEFRecord.data

Value

A DataView that contains encoded payload data of the record.

Specifications

Specification
Web NFC API
# dom-ndefrecord-data

Browser compatibility

BCD tables only load in the browser