// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/web-nfc/#dom-ndefrecord
[
RuntimeEnabled=WebNFC,
SecureContext,
Exposed=Window
] interface NDEFRecord {
[CallWith=ScriptState, ImplementedAs=CreateForBindings, RaisesException] constructor(NDEFRecordInit recordInit);
readonly attribute USVString recordType;
readonly attribute USVString? mediaType;
readonly attribute USVString? id;
readonly attribute USVString? encoding;
readonly attribute USVString? lang;
readonly attribute DataView? data;
[RaisesException] sequence<NDEFRecord>? toRecords();
};