Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update interfaces/web-nfc.idl #26589

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions interfaces/web-nfc.idl
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,16 @@ dictionary NDEFRecordInit {

typedef (DOMString or BufferSource or NDEFMessageInit) NDEFMessageSource;

[SecureContext, Exposed=Window]
interface NDEFWriter {
constructor();

Promise<undefined> write(NDEFMessageSource message,
optional NDEFWriteOptions options={});
};

[SecureContext, Exposed=Window]
interface NDEFReader : EventTarget {
constructor();

attribute EventHandler onerror;
attribute EventHandler onreading;
attribute EventHandler onreadingerror;

Promise<undefined> scan(optional NDEFScanOptions options={});
Promise<undefined> write(NDEFMessageSource message,
optional NDEFWriteOptions options={});
};

[SecureContext, Exposed=Window]
Expand Down