Re: [web-nfc] Use addEventListener instead of watch (#152)

I agree with @reillyeon we should just go for a version with a constructor. Maybe it is fine just calling it `NFCReader`

```js
[Constructor(NFCReaderOptions options), SecureContext]
interface NFCReader : EventTarget {
  readonly attribute USVString scope;
  readonly attribute NFCRecordType recordType;
  readonly attribute USVString mediaType;
  readonly attribute NFCReaderMode mode;

  attribute EventHandler onread;
};

interface NFCReadEvent: Event {
  readonly attribute NFCMessage message;
};

interface NFCWriter {
  Promise<void> push(NFCMessageSource message, optional NFCWriterOptions options);
}
```

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/152#issuecomment-444099008 using your GitHub account

Received on Tuesday, 4 December 2018 13:27:47 UTC