1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /* Copyright © 2013 Deutsche Telekom, Inc. */
18 [Constructor(optional MozNDEFRecordOptions options)]
19 interface MozNDEFRecord
22 * Type Name Field - Specifies the NDEF record type in general.
25 readonly attribute TNF tnf;
28 * type - Describes the content of the payload. This can be a mime type.
31 readonly attribute Uint8Array? type;
34 * id - Identifer is application dependent.
37 readonly attribute Uint8Array? id;
40 * payload - Binary data blob. The meaning of this field is application
44 readonly attribute Uint8Array? payload;
47 * Get the size of this NDEF Record.
50 readonly attribute unsigned long size;
53 dictionary MozNDEFRecordOptions {