NDEFReadingEvent
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 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 NDEFReadingEvent interface of the Web NFC API represents events dispatched on new NFC readings obtained by NDEFReader.
Constructor
NDEFReadingEvent.NDEFReadingEvent()Experimental-
Creates a new
NDEFReadingEvent.
Instance properties
Inherits properties from its parent, Event.
NDEFReadingEvent.messageRead only Experimental-
Returns an
NDEFMessageobject containing the received message. NDEFReadingEvent.serialNumberRead only Experimental-
Returns the serial number of the device, which is used for anti-collision and identification, or an empty string if no serial number is available.
Instance methods
Inherits methods from its parent, Event.
Specifications
| Specification |
|---|
| Web NFC> # dom-ndefreadingevent> |
Browser compatibility
Loading…