NDEFReader()

Draft: This page is not complete.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The NDEFReader() constructor of the NDEFReader interface returns a new NDEFReader object, which is used to read NDEF messages from compatible NFC devices, e.g. NDEF tags, within the reader's magnetic induction field.

Syntax

let reader = new NDEFReader();

Parameters

None.

Return value

A new NDEFReader.

Specifications

Specification
Web NFC API
# dom-ndefreader-constructor

Browser compatibility

BCD tables only load in the browser