[web-nfc] Simplify scan() (#569)

zolkis has just created a new issue for https://github.com/w3c/web-nfc:

== Simplify scan() ==
After filtering is gone and we have separate readers each with internal slots, IMHO we could simplify scans:
- resolve [scan()](https://w3c.github.io/web-nfc/#the-scan-method)'s promise with a <[serialNumber](https://w3c.github.io/web-nfc/#dom-ndefreadingevent-serialnumber), [NDEFMessage](https://w3c.github.io/web-nfc/#the-ndefmessage-interface)> tuple
- remove the [`onerror`](https://w3c.github.io/web-nfc/#dom-ndefreader-onerror) and [`onreading`](https://w3c.github.io/web-nfc/#dom-ndefreader-onreading) events
- join the [scan](https://w3c.github.io/web-nfc/#the-scan-method), the [NFC reading algorithm](https://w3c.github.io/web-nfc/#the-nfc-reading-algorithm) and the [dispatching NFC content](https://w3c.github.io/web-nfc/#dispatching-nfc-content) algorithms.



Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/569 using your GitHub account

Received on Thursday, 30 April 2020 18:30:43 UTC