Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MozNDEFRecord

この API は Firefox OS 上の特権付きアプリ、または認定済みアプリからのみ有効になります。

MozNDEFRecord はNFC データ交換フォーマット (NDEF) を実装するデータ構造です。これはアプリ、NFCタグ、デバイスの間で NFC-関連のデータ通信するための標準的な共通フォーマットです。

文法

MozNDEFRecord(optional MozNDEFRecordOptions options);
dictionary MozNDEFRecordOptions {
  TNF tnf = "empty";
  Uint8Array type;
  Uint8Array id;
  Uint8Array payload;
};

プロパティ

MozNDEFRecord.tnf 読取専用
tnf contains the Type Name Format (3-bit field) of the record. This field is required.
MozNDEFRecord.type 読取専用
type is an optional field describing the content of the payload. This is usually a mime type.
MozNDEFRecord.id 読取専用
id is an optional field representing a Uint8Array. The meaning of this field is application dependent (an appropriate id can be used, depending on functionality.)
MozNDEFRecord.payload 読取専用
payload is an optional field representing a Uint8Array. The meaning of this field is application dependent (for example, a contact application could contain URLs, mime-types, postal address, etc.)

仕様

Gecko での NFC の実装は、NFC フォーラムの仕様に従っています。

ブラウザ互換性

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
基本部分

未サポート

未サポート 未サポート 未サポート 未サポート
機能 Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile
基本部分 未サポート 未サポート 2.0 moz [1] 未サポート 未サポート 未サポート

[1] Firefox OS 2.2 以降では、特権付きアプリから利用可能; それより前のバージョンでは、認定済みのアプリでのみ利用可能。

こちらも見よ

ドキュメントのタグと貢献者

 このページの貢献者: hamasaki, Uemmra3
 最終更新者: hamasaki,