Re: [web-nfc] Use addEventListener instead of watch

Yes, something like this would do:
```javascript
[Constructor(NFCWatchOptions options), SecureContext]
interface NFCReadFilter: EventTarget {
  readonly attribute USVString url;
  readonly attribute NFCRecordType recordType;
  readonly attribute USVString mediaType;
  readonly attribute NFCWatchMode mode;
  attribute EventHandler onread;
};

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

or if we want to bind it to the `navigator.nfc` object, we could have a factory method instead of constructor (like @kenchris suggested).

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

Received on Thursday, 27 September 2018 18:09:35 UTC