We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

B2G OS

MozNDEFRecord.type

The type property of the MozNDEFRecord interface ... fill in description of what it does

Syntax

readonly attribute Uint8Array type;

Example

var tnf     = 0x1;                                                    // NFC Forum Well Known type
var type    = new Uint8Array(NfcUtils.fromUTF8("U"));                 // URL type
var id      = new Uint8Array(NfcUtils.fromUTF8(""));                  // id
var payload = new Uint8Array(NfcUtils.fromUTF8("\u0003mozilla.org")); // URL data, with a short record prefix 0x3 replacing http://

var ndefRecords = [new MozNDEFRecord(tnf, type, id, payload)];

Value

A Uint8Array.

Specifications

The NFC implementation in Gecko follows the NFC Forum specifications.

Browser compatibility

Supported in Firefox OS 2.0 for certified-apps.
Available in privileged apps as of Firefox OS 2.2.

See also

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, teoli
Last updated by: fscholz,