blob: 0d6af2eb1e63220c3d83427f79f55323f0d051d8 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// 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=ExecutionContext, 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();
};