Skip to content

Commit c8c89cf

Browse files
autofoolipfoolip
authored andcommitted

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

interfaces/web-nfc.idl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,17 @@ typedef DOMString NDEFRecordType;
3737

3838
typedef (DOMString or ArrayBuffer or NDEFMessageInit) NDEFMessageSource;
3939

40-
[Constructor(), SecureContext, Exposed=Window]
40+
[Constructor, SecureContext, Exposed=Window]
4141
interface NFCWriter {
4242
Promise<void> push(NDEFMessageSource message, optional NFCPushOptions options={});
4343
};
4444

45-
[Constructor(optional NFCReaderOptions options={}), SecureContext, Exposed=Window]
45+
[Constructor, SecureContext, Exposed=Window]
4646
interface NFCReader : EventTarget {
4747
attribute EventHandler onreading;
4848
attribute EventHandler onerror;
4949

50-
void start();
51-
void stop();
50+
void scan(optional NFCScanOptions options={});
5251
};
5352

5453
[Constructor(DOMString type, NFCReadingEventInit readingEventInitDict), SecureContext, Exposed=Window]
@@ -91,7 +90,8 @@ enum NFCPushTarget {
9190
"any"
9291
};
9392

94-
dictionary NFCReaderOptions {
93+
dictionary NFCScanOptions {
94+
AbortSignal? signal;
9595
USVString url = "";
9696
NDEFRecordType recordType;
9797
USVString mediaType = "";

0 commit comments

Comments
 (0)