- From: Zoltan Kis via GitHub <sysbot+gh@w3.org>
- Date: Thu, 27 Jun 2019 10:20:51 +0000
- To: public-web-nfc@w3.org
Just for completeness, here is an alternative solution adapted from @reillyeon's suggestion.
```javascript
[Constructor(optional NFCReaderOptions options), SecureContext, Exposed=Window]
interface NFCReader : EventTarget {
attribute EventHandler onerror;
Promise<NDEFMessage> read(); // or ndef()
};
```
--
GitHub Notification of comment by zolkis
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/232#issuecomment-506287648 using your GitHub account
Received on Thursday, 27 June 2019 10:20:52 UTC