From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../b2g_os/api/bluetoothmanager/enabled/index.html | 51 ++ .../bluetoothmanager/getdefaultadapter/index.html | 48 ++ .../archive/b2g_os/api/bluetoothmanager/index.html | 188 +++++ .../api/bluetoothmanager/isconnected/index.html | 55 ++ .../api/bluetoothmanager/onadapteradded/index.html | 44 ++ .../api/bluetoothmanager/ondisabled/index.html | 45 ++ .../api/bluetoothmanager/onenabled/index.html | 45 ++ files/ja/archive/b2g_os/api/callevent/index.html | 134 ++++ .../archive/b2g_os/api/domapplication/index.html | 103 +++ files/ja/archive/b2g_os/api/index.html | 831 +++++++++++++++++++++ .../ja/archive/b2g_os/api/mozndefrecord/index.html | 127 ++++ files/ja/archive/b2g_os/api/moznfcpeer/index.html | 113 +++ files/ja/archive/b2g_os/api/moznfctag/index.html | 134 ++++ files/ja/archive/b2g_os/api/navigator/index.html | 29 + .../b2g_os/api/navigator/mozapps/index.html | 82 ++ .../api/navigator/mozsetmessagehandler/index.html | 265 +++++++ .../b2g_os/api/navigator/moztelephony/index.html | 120 +++ .../ja/archive/b2g_os/api/telephonycall/index.html | 237 ++++++ 18 files changed, 2651 insertions(+) create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/enabled/index.html create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/getdefaultadapter/index.html create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/index.html create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/isconnected/index.html create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/onadapteradded/index.html create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/ondisabled/index.html create mode 100644 files/ja/archive/b2g_os/api/bluetoothmanager/onenabled/index.html create mode 100644 files/ja/archive/b2g_os/api/callevent/index.html create mode 100644 files/ja/archive/b2g_os/api/domapplication/index.html create mode 100644 files/ja/archive/b2g_os/api/index.html create mode 100644 files/ja/archive/b2g_os/api/mozndefrecord/index.html create mode 100644 files/ja/archive/b2g_os/api/moznfcpeer/index.html create mode 100644 files/ja/archive/b2g_os/api/moznfctag/index.html create mode 100644 files/ja/archive/b2g_os/api/navigator/index.html create mode 100644 files/ja/archive/b2g_os/api/navigator/mozapps/index.html create mode 100644 files/ja/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html create mode 100644 files/ja/archive/b2g_os/api/navigator/moztelephony/index.html create mode 100644 files/ja/archive/b2g_os/api/telephonycall/index.html (limited to 'files/ja/archive/b2g_os/api') diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/enabled/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/enabled/index.html new file mode 100644 index 0000000000..f33ecec381 --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/enabled/index.html @@ -0,0 +1,51 @@ +--- +title: BluetoothManager.enabled +slug: Archive/B2G_OS/API/BluetoothManager/enabled +tags: + - API + - Firefox OS + - Non Standard + - Property + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager/enabled +--- +

+ +

+

非標準
+ この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

enabled プロパティはBluetoothがオン(true) またはオフ (false)であることを示します

+ +
+

注: Bluetoothの有効化/無効化は Settings API bluetooth.enabled の設定を変更する事によってのみ実行されます。この設定を変更する度に BluetoothManager オブジェクトは enabled または disabled イベントを発行します。これらイベントは BluetoothManager.onenabled および BluetoothManager.ondisabled イベントハンドラを利用して取得することができます。

+
+ +

構文

+ +
var enabled = navigator.mozBluetooth.enabled
+ +

+ +

bool値を返します。

+ +

仕様

+ +

正式な仕様の一部ではありません。 W3C's System Applications Working Group で協議される必要があります。

+ +

参考

+ + diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/getdefaultadapter/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/getdefaultadapter/index.html new file mode 100644 index 0000000000..5a504886f8 --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/getdefaultadapter/index.html @@ -0,0 +1,48 @@ +--- +title: BluetoothManager.getDefaultAdapter() +slug: Archive/B2G_OS/API/BluetoothManager/getDefaultAdapter +tags: + - API + - Method + - Non Standard + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager/getDefaultAdapter +--- +

+ +

+

非標準
+ この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

getDefaultAdapter メソッドは、デバイスをサードパーティー製のBluetooth デバイスと接続するためのデフォルトアダプタを取得するのに使われます。

+ +

新しいアダプタがデバイスに接続される毎に、そのデバイスがデフォルトのアダプタになります。通常Firefox OSはアダプタを一つだけ有します。.

+ +

構文

+ +
var request = navigator.mozBluetooth.getDefaultAdapter();
+ +

返値

+ +

オペレーションの成功または失敗を取得するための DOMRequest オブジェクトを返します。成功した場合、リクエストの結果は BluetoothAdapter オブジェクトです。

+ +

仕様

+ +

正式な仕様の一部ではありません。W3C's System Applications Working Group で協議される必要があります。

+ +

参考

+ + diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/index.html new file mode 100644 index 0000000000..b508d9317b --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/index.html @@ -0,0 +1,188 @@ +--- +title: BluetoothManager (Firefox OS) +slug: Archive/B2G_OS/API/BluetoothManager +tags: + - API + - BluetoothManager + - Certified + - DOM + - Firefox OS + - Interface + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager +--- +

+ +

+

非標準
+ この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

Web Bluetooth API のインターフェースである BluetoothManager は、デバイス上の全てのBluetoothアダプタへのアクセスを許可します。このアダプタはデバイスと他のBluetoothデバイスを接続するためのインターフェースです。

+ +

インターフェース概要

+ +
[CheckPermissions="bluetooth"]
+interface BluetoothManager: EventTarget
+{
+  readonly attribute BluetoothAdapter? defaultAdapter;
+
+           attribute EventHandler onattributechanged;
+           attribute EventHandler onadapteradded;
+           attribute EventHandler onadapterremoved;
+
+  sequence<BluetoothAdapter> getAdapters();
+};
+ +

プロパティ

+ +
+
BluetoothManager.enabled 読取専用
+
Bluetoohがオン(true) またはオフ(false)を示すbool値。
+
+ +

イベントハンドラ

+ +
+
BluetoothManager.onadapteradded
+
adapteradded イベントが発火した際に実行されるハンドラ。これはデバイス上でBluetoothアダプタが有効になったとき発生します。
+
BluetoothManager.onadapterremoved
+
adapterremoved イベントが発火した際に実行されるハンドラ。これはデバイス上でBluetoothアダプタが無効にされたか取り外された場合に発生します。
+
BluetoothManager.onattributechanged
+
attributechanged イベントが発火した際に実行されるハンドラ。これは BluetoothManager.defaultAdapter プロパティが変化した際に発生します。
+
+ +
+

注: BluetoothManager インターフェースは EventTarget インターフェースを継承しているため、全てのイベントは addEventListener メソッドを使用して監視することが可能です。

+
+ +

廃止イベントハンドラ

+ +
+
BluetoothManager.onenabled
+
enabled イベントが発火した際に実行されるハンドラ。 これはBluetoothが有効になった際に発生します。
+
BluetoothManager.ondisabled
+
disabled イベントが発火した際に実行されるハンドラ。 これはBluetoothが無効になった際に発生します。
+
+ +

メソッド

+ +
+
BluetoothManager.getAdapters()
+
現在デバイスで使用されている BluetoothAdapter のリストを返します。
+
+ +

廃止メソッド

+ +
+
BluetoothManager.getDefaultAdapter()
+
デバイスで使用されているデフォルトアダプタを取得します。これはオペレーションの成功または失敗を取得するための DOMRequest を返します。成功した場合、リクエストの結果は BluetoothAdapter オブジェクトです。このメソッドは BluetoothManager.getAdapters() に置き換えられました。
+
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
Web Bluetooth
BluetoothManager の定義
ドラフト草案。これは正式な仕様ではありません。W3C's System Applications Working Group で協議が必要です
+ +

ブラウザの互換性

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support未サポート未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Bluetooth 'v2' support: getAdapters(), onattributechange, onadapterremoved未サポート未サポート未サポート2.1未サポート未サポート未サポート未サポート
Bluetooth initial support: getDefaultAdapter(), onenabled, ondisabled, onadapteradded未サポート未サポート未サポート1.0.1未サポート未サポート未サポート未サポート
+
+ +

 

+ +

参考

+ +

 

+ +

Using the Web Bluetooth API

diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/isconnected/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/isconnected/index.html new file mode 100644 index 0000000000..1773376bb1 --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/isconnected/index.html @@ -0,0 +1,55 @@ +--- +title: BluetoothManager.isConnected() +slug: Archive/B2G_OS/API/BluetoothManager/isConnected +tags: + - API + - Firefox OS + - Method + - Non Standard + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager/isConnected +--- +

+ +

+

非標準
+ この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

isConnected メソッドは Bluetooth profile を持つデバイスが接続されているかをチェックするのに使用されます。

+ +

このメソッドは デバイスが BluetoothAdapter.connect() メソッドに第2引数を指定せずに接続された場合に役に立ちます。なぜなら Bluetooth プロファイルはプラットフォームに依存するため、時としてBluetooth プロファイルが利用可能かどうかをチェックする必要があるためです。

+ +

構文

+ +
var isConnected = navigator.mozBluetooth.isConnected(profile);
+ +

引数

+ +
+
profile
+
Bluetooth profile に記載された数値
+
+ +

返値

+ +

bool値

+ +

仕様

+ +

正式な仕様の一部ではありません。W3C's System Applications Working Group で協議される必要があります。

+ +

参考

+ + diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/onadapteradded/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/onadapteradded/index.html new file mode 100644 index 0000000000..6459c14b55 --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/onadapteradded/index.html @@ -0,0 +1,44 @@ +--- +title: BluetoothManager.onadapteradded +slug: Archive/B2G_OS/API/BluetoothManager/onadapteradded +tags: + - API + - Firefox OS + - Non Standard + - Property + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager/onadapteradded +--- +

+ +

+

非標準
+ この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

adapteradded イベントを受け取るためのイベントリスナを指定します。このイベントは Bluetooth アダプタがデバイス上で有効になった際に発生します。このイベントが発生すると BluetoothManager.getDefaultAdapter() メソッドは直近で有効になったアダプタにアクセスすることが可能になります。

+ +

構文

+ +
navigator.mozBluetooth.onadapteradded = funcRef
+ +

funcRefadapteradded イベントが発生した際に呼び出される関数です。

+ +

仕様

+ +

正式な仕様の一部ではありません。W3C's System Applications Working Group で協議される必要があります。

+ +

参考

+ + diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/ondisabled/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/ondisabled/index.html new file mode 100644 index 0000000000..e7e7306738 --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/ondisabled/index.html @@ -0,0 +1,45 @@ +--- +title: BluetoothManager.ondisabled +slug: Archive/B2G_OS/API/BluetoothManager/ondisabled +tags: + - API + - Firefox OS + - Non Standard + - Property + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager/ondisabled +--- +

+ +

+

非標準
+ この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

disabled イベントを受け取るためのイベントリスナを指定します。このイベントはデバイス上でBluetoothが無効化された際に発生します。

+ +

構文

+ +
navigator.mozBluetooth.ondisabled = funcRef
+ +

funcRefdisabled イベントが発生した際に呼び出される関数です。

+ +

仕様

+ +

正式な仕様の一部ではありません。W3C's System Applications Working Group で協議される必要があります。

+ +

参考

+ + diff --git a/files/ja/archive/b2g_os/api/bluetoothmanager/onenabled/index.html b/files/ja/archive/b2g_os/api/bluetoothmanager/onenabled/index.html new file mode 100644 index 0000000000..ce4bc4e086 --- /dev/null +++ b/files/ja/archive/b2g_os/api/bluetoothmanager/onenabled/index.html @@ -0,0 +1,45 @@ +--- +title: BluetoothManager.onenabled +slug: Archive/B2G_OS/API/BluetoothManager/onenabled +tags: + - API + - Firefox OS + - Non Standard + - Property + - Reference + - Web Bluetooth + - WebAPI +translation_of: Archive/B2G_OS/API/BluetoothManager/onenabled +--- +

+ +

+

非標準
+ この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。

+

+ +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

enabled イベントを受け取るためのイベントリスナを指定します。このイベントはデバイス上でBluetoothが有効になった際に発生します。

+ +

構文

+ +
navigator.mozBluetooth.onenabled = funcRef
+ +

funcRefenabled イベントが発生した際に呼び出される関数です。

+ +

仕様

+ +

正式な仕様の一部ではありません。W3C's System Applications Working Group で協議される必要があります。

+ +

参考

+ + diff --git a/files/ja/archive/b2g_os/api/callevent/index.html b/files/ja/archive/b2g_os/api/callevent/index.html new file mode 100644 index 0000000000..45aec0f7bc --- /dev/null +++ b/files/ja/archive/b2g_os/api/callevent/index.html @@ -0,0 +1,134 @@ +--- +title: CallEvent +slug: Archive/B2G_OS/API/CallEvent +tags: + - API + - B2G + - CallEvent + - Event + - Firefox OS + - Interface + - Mobile + - Non-standard + - Reference + - Telephony + - events +translation_of: Archive/B2G_OS/API/CallEvent +--- +
+ +
+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+
+ +

Web Telephony APICallEvent インターフェイスは、電話の通話に関連するイベントを表します。

+ +

プロパティ

+ +
+
CallEvent.call 読取専用
+
イベント発生元からの通話を表す TelephonyCall オブジェクト。
+
+ +

+ +
// Telephony object
+var tel = navigator.mozTelephony;
+
+// Receive a call
+tel.onincoming = function(e) {
+  var incomingCall = e.call;
+
+  // Answer the call
+  incomingCall.answer();
+};
+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状態コメント
Web TelephonyドラフトDraft
+ +

ブラウザ実装状況

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ + +

+ +
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本サポート未サポート未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
基本サポート未サポート12.0 (12.0)1.0.1未サポート未サポート未サポート
+
+ +

関連情報

+ + diff --git a/files/ja/archive/b2g_os/api/domapplication/index.html b/files/ja/archive/b2g_os/api/domapplication/index.html new file mode 100644 index 0000000000..c14b8d8804 --- /dev/null +++ b/files/ja/archive/b2g_os/api/domapplication/index.html @@ -0,0 +1,103 @@ +--- +title: App +slug: Archive/B2G_OS/API/DOMApplication +tags: + - Apps + - Apps API + - Manifest + - Methods + - Non-standard +translation_of: Archive/B2G_OS/API/DOMApplication +--- +
+
+

非標準
+ この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。

+
+

Open Web Apps の JavaScript API において、App オブジェクトは、ユーザのアプリディレクトリにインストールされている、あるいはインストールできるアプリを表す JavaScript オブジェクトです。

+

プロパティ

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名前意味
manifestアプリの マニフェスト の現在保存されているインスタンス。object
manifestURLマニフェストが見つかった場所。string
originアプリの生成元 (プロトコル、ホスト、オプションでポート番号)。例えば http://example.comstring
installOriginアプリのインストールを実行したサイトの生成元。string
installTimeアプリがインストールされた時刻。これは Date().getTime() を使って生成され、1970 年 1 月 1 日午前 0 時からのミリ秒数で表されます。integer
receipts1 つあるいは複数のレシートの配列を含んだオブジェクト。各レシートは文字列です。レシートがない場合、これは null となります。object または null
+

メソッド

+ + + + + + + + + + + + + + + + + +
メソッド意味
launch()アプリを起動します。値を返しません。
checkForUpdate() +

アプリが更新されたかどうかを確認します。DOMRequest オブジェクトを返します。

+

パッケージ型アプリ については、更新を確認し、必要なら downloadavailable フラグを立てます。

+

ホスト型アプリについては、アプリマニフェストとアプリケーションキャッシュ上で更新を確認し、必要なら更新を行います。

+
+

App オブジェクトの例

+
{
+  manifest: {
+    name: "Add-on Builder",
+    default_locale: "en",
+    installs_allowed_from: [
+      "https://apps-preview-dev.example.com/",
+      "https://apps-preview.example.com/"
+    ],
+    description: "Add-on Builder makes it easy to write, build and test Firefox extensions using common web technologies.",
+    version: "0.9.16.1",
+    developer: {
+      url: "https://builder.addons.mozilla.org/",
+      name: "Mozilla Flightdeck Team"
+    }
+  },
+  origin: "https://builder-addons-dev.example.com",
+  installTime: 1321986882773,
+  installOrigin: "https://apps-preview-dev.example.com",
+  receipts: ["h0dHBzOi8v (most of receipt removed here) Tg2ODtkUp"]
+}
diff --git a/files/ja/archive/b2g_os/api/index.html b/files/ja/archive/b2g_os/api/index.html new file mode 100644 index 0000000000..472f075af6 --- /dev/null +++ b/files/ja/archive/b2g_os/api/index.html @@ -0,0 +1,831 @@ +--- +title: B2G OS APIs +slug: Archive/B2G_OS/API +tags: + - API + - B2G API + - b2g os api's +translation_of: Archive/B2G_OS/API +--- +

B2G OS API一覧 + +

+A +B +C +D +E +F +G +H +I + + +K +L +M +N +O +P + + +R +S +T +U +V +W +X + + + + + +

diff --git a/files/ja/archive/b2g_os/api/mozndefrecord/index.html b/files/ja/archive/b2g_os/api/mozndefrecord/index.html new file mode 100644 index 0000000000..708f45ecf0 --- /dev/null +++ b/files/ja/archive/b2g_os/api/mozndefrecord/index.html @@ -0,0 +1,127 @@ +--- +title: MozNDEFRecord +slug: Archive/B2G_OS/API/MozNDEFRecord +tags: + - API + - Firefox OS + - Interface + - MozNDEFRecord + - NDEFRecord + - NFC + - Reference +translation_of: Archive/B2G_OS/API/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 は、レコードのタイプ名フォーマット (3-bit フィールド) を含みます。この項目は必須です。
+
MozNDEFRecord.type 読取専用
+
type はペイロードのコンテンツを記述したオプションのフィールドです。通常はMIMEタイプになります。
+
+ +
+
MozNDEFRecord.id 読取専用
+
idUint8Array を表すオプションのフィールドです。このフィールドの意味はアプリケーション依存です (機能性によって、適切なidが使用できます)
+
MozNDEFRecord.payload 読取専用
+
payloadUint8Array を表すオプションのフィールドです。。このフィールドの意味はアプリケーション依存です (例えば、連絡帳アプリでは、URLや、MIMEタイプや、住所などを含みます)
+
+ +

仕様

+ +

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

+ +
+
+ +

ブラウザ互換性

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ + +

+ +
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
基本部分 +

未サポート

+
未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE PhoneOpera MobileSafari Mobile
基本部分未サポート未サポート2.0 moz [1]未サポート未サポート未サポート
+
+ +

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

+ +

こちらも見よ

+ + diff --git a/files/ja/archive/b2g_os/api/moznfcpeer/index.html b/files/ja/archive/b2g_os/api/moznfcpeer/index.html new file mode 100644 index 0000000000..26d9ae5eb4 --- /dev/null +++ b/files/ja/archive/b2g_os/api/moznfcpeer/index.html @@ -0,0 +1,113 @@ +--- +title: MozNFCPeer +slug: Archive/B2G_OS/API/MozNFCPeer +translation_of: Archive/B2G_OS/API/MozNFCPeer +--- +

+ +

+

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

+

+ +
+

NFCPeer は、他のNFC対応デバイスと相互作用するピアツーピア (P2P)インターフェイスを提供します。これは NDEF メッセージの送信と、ファィル送信に使われます。

+
+ +

メソッド

+ +
+
MozNFCPeer.sendFile()
+
sendFile() sends files to other NFC-enabled devices. This should be called inside a mozNFC.onpeerfound() event callback.  This method is available in certified apps only.
+
MozNFCPeer.sendNDEF()
+
sendNDEF() sends NDEF Messages to other NFC-enabled devices. This should be called inside a mozNFC.onpeerfound() event callback.
+
+ +

サンプル

+ +
navigator.mozNfc.onpeerfound = function (evt) {
+  var peer = evt.peer;
+  // ndef is an instance of MozNDEFRecord contains the shared data, like URL.
+  peer.sendNDEF([ndef]);
+};
+
+ +

仕様

+ +

The NFC implementation in Gecko follows the NFC Forum specifications.

+ +
+
+ +

ブラウザ互換性

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ + +

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support +

未サポート

+
未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support未サポート未サポート2.0 moz [1]未サポート未サポート未サポート
+
+ +

[1] Available in privileged apps as of Firefox OS 2.2; certified-only before that.

+ +

こちらも見よ

+ + diff --git a/files/ja/archive/b2g_os/api/moznfctag/index.html b/files/ja/archive/b2g_os/api/moznfctag/index.html new file mode 100644 index 0000000000..0625c8b98c --- /dev/null +++ b/files/ja/archive/b2g_os/api/moznfctag/index.html @@ -0,0 +1,134 @@ +--- +title: MozNFCTag +slug: Archive/B2G_OS/API/MozNFCTag +tags: + - API + - Firefox OS + - MozNFCTag + - NFC + - NFCTag + - Reference +translation_of: Archive/B2G_OS/API/MozNFCTag +--- +

+ +

+

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

+

+ +

MozNFCTag は NDEF-コンパチな NFC を読み書き、検査するのに必要な基本機能を含みます。

+ +

メソッド

+ +
+
MozNFCTag.makeReadOnly()
+
Calling makeReadOnly() will make the NDEF stored on this tag read only. Avalable in Firefox OS 2.2+.
+
MozNFCTag.format()
+
Formats this tag as NDEF-compatible. Avalable in Firefox OS 2.2+.
+
MozNFCTag.readNDEF()
+
readNDEF() retrieves the NDEF contents stored on this Tag, and returns the NDEF as an array of MozNDEFRecord objects.
+
MozNFCTag.writeNDEF()
+
writeNDEF() takes an array of MozNDEFRecord objects, and writes them to a NDEF-compatible tag.
+
+ +

プロパティ

+ +
+
 MozNFCTag.techList 読取専用
+
The supported NFC Technologies of this tag.
+
MozNFCTag.id 読取専用
+
The identifier of this tag.
+
MozNFCTag.type 読取専用
+
The type of this tag,
+
MozNFCTag.maxNDEFSize 読取専用
+
The maximum size of NDEF can be stored on this tag.
+
MozNFCTag.isReadOnly 読取専用
+
Indicate whether the NDEF content stored on this tag read-only or not.
+
MozNFCTag.isFormatable 読取専用
+
Inidicate whether this tag is NDEF-compatible or not.
+
MozNFCTag.canBeMadeReadOnly 読取専用
+
Indicate whether the NDEF stored on this tag could be configured as read-only or not.
+
MozNFCTag.isLost 読取専用
+
Indicate whether if this tag is already lost. (i.e. is moved out of range) 
+
+ +

仕様

+ +

The NFC implementation in Gecko follows the NFC Forum specifications.

+ +
+
+ +

ブラウザ互換性

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ + +

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support +

未サポート

+
未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support未サポート未サポート2.0 moz [1]未サポート未サポート未サポート
+
+ +

[1] Available in privileged apps as of Firefox OS 2.2; certified-only before that.

+ +

こちらも見よ

+ + diff --git a/files/ja/archive/b2g_os/api/navigator/index.html b/files/ja/archive/b2g_os/api/navigator/index.html new file mode 100644 index 0000000000..9baa00de3c --- /dev/null +++ b/files/ja/archive/b2g_os/api/navigator/index.html @@ -0,0 +1,29 @@ +--- +title: Navigator (Firefox OS extensions) +slug: Archive/B2G_OS/API/Navigator +tags: + - API + - Firefox OS + - Interface + - Navigator + - NeedsTranslation + - Non-standard + - TopicStub +translation_of: Archive/B2G_OS/API/Navigator +--- +

+ +

The Navigator interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. This page represents the list of properties and methods added to Navigator on Firefox OS devices. For the list of properties and methods available to any Web sites, consult Navigator.

+ +

A Navigator object can be retrieved using the read-only Window.navigator property.

+ +

Properties

+ +
+
Navigator.Bluetooth 読取専用  
+
Returns a Promise to a BluetoothDevice object with the specified options.
+
Navigator.mozApps
+
Returns an Apps object you can use to install, manage, and control Open Web apps.
+
Navigator.mozAudioChannelManager
+
The navigator.mozAudioChannelManager object provides access to the mozAudioChannelManager interface, which is used to manage your Firefox OS device's audio channels, including setting what channel's volume to affect when the volume buttons are pressed inside a particular app.
+
diff --git a/files/ja/archive/b2g_os/api/navigator/mozapps/index.html b/files/ja/archive/b2g_os/api/navigator/mozapps/index.html new file mode 100644 index 0000000000..160f21a965 --- /dev/null +++ b/files/ja/archive/b2g_os/api/navigator/mozapps/index.html @@ -0,0 +1,82 @@ +--- +title: window.navigator.mozApps +slug: Archive/B2G_OS/API/Navigator/mozApps +tags: + - API + - Apps + - Apps API + - Non-standard + - Property +translation_of: Archive/B2G_OS/API/Navigator/mozApps +--- +

+

+

非標準
+ この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。

+

+

概要

+

ブラウザ内で Open Web Apps をインストール、管理、コントロールするために使用できる Apps オブジェクトを返します。

+

構文

+
var apps = window.navigator.mozApps;
+
+

+

navigator.mozApps は、ブラウザ内で Open Web Apps をインストール、管理、コントロールするために使用できる Apps オブジェクトです。

+

仕様

+

どの仕様書にも書かれていません。バグ 697383 に基づき Gecko に実装されています。

+

ブラウザ実装状況

+

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ + +

+
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本実装---11.0 (11.0)---------
+
+
+ + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
基本実装---11.0 (11.0)---------
+
+

 

diff --git a/files/ja/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html b/files/ja/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html new file mode 100644 index 0000000000..915dcf65e6 --- /dev/null +++ b/files/ja/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html @@ -0,0 +1,265 @@ +--- +title: Navigator.mozSetMessageHandler() +slug: Archive/B2G_OS/API/Navigator/mozSetMessageHandler +tags: + - API + - B2G + - Firefox OS + - Method + - Reference + - Référence(2) + - Web Activities + - Web アクティビティ + - WebAPI + - alarm +translation_of: Archive/B2G_OS/API/Navigator/mozSetMessageHandler +--- +

+

この API は Firefox OS 上で ウェブコンテンツまたは高度の権限を持つアプリより利用できます。

+

+ +

概要

+ +

アプリケーションはこのメソッドを使って、システムからのメッセージを処理してそれに反応する関数を登録できます。

+ +

どのアプリケーションをどのメッセージに対して登録することもできますが、対応する許可設定があるアプリケーションにのみ送信されるメッセージもあります。例えば sms-received メッセージは sms の許可設定があるアプリケーションにのみ送信されます。

+ +

システムメッセージは DOM イベントとは反対に、アプリケーションにそのハンドラーがない場合にはキューに残り続けます。アプリケーションにキューに入ったメッセージがあるかは、引数として適切なタイプを渡して navigator.mozHasPendingMessage() を呼ぶことでチェックできます。メッセージハンドラーが設定されると、キューにある全メッセージが非同期にアプリケーションに渡されます。

+ +

構文

+ +
navigator.mozSetMessageHandler(type, handler);
+ +

引数

+ +
+
 
+
type
+
type は、登録するハンドラーがどの種類のメッセージ用かを表す文字列です。
+
handler
+
システムがメッセージを送信するとハンドラーが呼ばれます。ハンドラーが受け取る引数はメッセージタイプによって決まります。
+
+ +

メッセージタイプ

+ +

現在、Firefox OS では以下のメッセージを登録できます。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
メッセージ名ハンドラーのシグニチャー許可設定
activityf( MozActivityRequestHandler request ) 
alarmf( object unknown )alarms
bluetooth-cancelf( object unknown )bluetooth
bluetooth-dialer-commandf( object unknown )bluetooth
bluetooth-hfp-status-changedf( object unknown )bluetooth
bluetooth-opp-transfer-startf( object unknown )bluetooth
bluetooth-opp-transfer-completef( object unknown )bluetooth
bluetooth-opp-receiving-file-confirmationf( object unknown )bluetooth
bluetooth-opp-update-progressf( object unknown )bluetooth
bluetooth-pairedstatuschangedf( object unknown )bluetooth
bluetooth-requestconfirmationf( object unknown )bluetooth
bluetooth-requestpincodef( object unknown )bluetooth
bluetooth-requestpasskeyf( object unknown )bluetooth
headset-buttonf( object unknown ) 
icc-stkcommandf( object command )settings
notificationf( object unknown ) 
pushf( object registration )push
push-registerf (  )push
sms-receivedf( SmsMessage sms )sms
sms-sentf( SmsMessage sms )sms
telephony-call-endedf( object call )telephony
telephony-new-callf( )telephony
ussd-receivedf( object ussd )mobileconnection
wappush-receivedf( object wappush )wappush
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態
Unknown不明システムメッセージングのインターフェイスを定義。
+ +

ブラウザー互換性

+ +

We're converting our compatibility data into a machine-readable JSON format. + This compatibility table still uses the old format, + because we haven't yet converted the data it contains. + Find out how you can help!

+ +
+ + +

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support未サポート未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox OSFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support未サポート1.0未サポート未サポート未サポート未サポート
+
+ +

関連項目

+ + diff --git a/files/ja/archive/b2g_os/api/navigator/moztelephony/index.html b/files/ja/archive/b2g_os/api/navigator/moztelephony/index.html new file mode 100644 index 0000000000..9af95b42be --- /dev/null +++ b/files/ja/archive/b2g_os/api/navigator/moztelephony/index.html @@ -0,0 +1,120 @@ +--- +title: Navigator.mozTelephony +slug: Archive/B2G_OS/API/Navigator/mozTelephony +tags: + - API + - Certified + - Firefox OS + - Mobile + - Non-standard + - Property + - Telephony +translation_of: Archive/B2G_OS/API/Navigator/MozTelephony +--- +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

概要

+ +

ブラウザから電話の通話の初期化と制御に使用できる Telephony オブジェクトを返します。

+ +

構文

+ +
var phone = window.navigator.mozTelephony;
+
+ +

+ +

navigator.mozTelephony は、Telephony オブジェクトへのアクセスを提供します。これは、ブラウザを実行中の端末の電話機能を制御するために使用します。

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状態コメント
Web TelephonyドラフトDraft
+ +

ブラウザ実装状況

+ +

明らかな理由により、サポートはモバイルブラウザが優先されます。

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ + +

+ +
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本サポート未サポート未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
基本サポート未サポート12.0 (12.0)1.0.1未サポート未サポート未サポート
+
+ +

関連情報

+ + diff --git a/files/ja/archive/b2g_os/api/telephonycall/index.html b/files/ja/archive/b2g_os/api/telephonycall/index.html new file mode 100644 index 0000000000..efbd51179c --- /dev/null +++ b/files/ja/archive/b2g_os/api/telephonycall/index.html @@ -0,0 +1,237 @@ +--- +title: TelephonyCall +slug: Archive/B2G_OS/API/TelephonyCall +tags: + - API + - B2G + - Certified + - DOM + - DOM Reference + - Firefox OS + - Mobile + - Non-standard + - Reference + - Telephony +translation_of: Archive/B2G_OS/API/TelephonyCall +--- +

+

この API は 認定済みアプリのみ、 Firefox OS で有効になります。

+

+ +

Web Telephony APITelephonyCall インターフェイスは、1 回の電話の通話を表します。通話に関する情報を提供し、通話の制御と通話の状態変化を検出する機構が使用できます。

+ +

プロパティ

+ +
+
TelephonyCall.disconnectedReason 読取専用
+
通話が切断された理由を示す DOMString 文字列 (原因がエラーによるものか、通話が終了したか、応答が無かったかなど)。
+
TelephonyCall.emergency 読取専用
+
発信番号が緊急通報の番号かどうかを示す Boolean 値。
+
TelephonyCall.group 読取専用
+
TelephonyCallGroup (グループ通話) が属する先 (もしあれば) を示す DOMString 文字列。
+
TelephonyCall.id 読取専用
+
通話に対応する電話番号を示す DOMString 文字列。
+
TelephonyCall.secondId 読取専用
+
CDMA ネットワークで通話中に着信があった場合の電話番号を示す DOMString 文字列。
+
TelephonyCall.mergeable 読取専用
+
現在の通話が TelephonyCallGroup (グループ通話) に追加できるかどうかを示す Boolean 値。
+
TelephonyCall.serviceId 読取専用
+
発信者のサービス名を示す DOMString 文字列。
+
TelephonyCall.state 読取専用
+
通話の状態を示す DOMString 文字列。
+
TelephonyCall.switchable 読取専用
+
現在の通話が "connected" と "held" を切り替えられるかどうかを示す Boolean 値。
+
+ +

イベントハンドラ

+ +
+
TelephonyCall.onalerting
+
キャリアとの接続待ち中に、呼び出し音 (アラート) 発生時に呼び出される関数。
+
TelephonyCall.onconnected
+
通話が接続された時に一度呼び出される関数。
+
TelephonyCall.onconnecting
+
ダイヤル入力後の接続相手を待つ間に呼び出される関数。
+
TelephonyCall.ondialing
+
通話の ダイヤル番号 の入力開始時に呼び出される関数。
+
TelephonyCall.ondisconnected
+
通話を終了し、切断した後に呼び出される関数。
+
TelephonyCall.ondisconnecting
+
通話の切断を開始した時に呼び出される関数。
+
TelephonyCall.ongroupchange
+
通話の TelephonyCallGroup (および TelephonyCall.group プロパティ) が変化した時に呼び出される関数。
+
TelephonyCall.onholding
+
通話を保留状態にする指示が発行された時に呼び出される関数。
+
TelephonyCall.onheld
+
通話が保留中の時に呼び出される関数。
+
TelephonyCall.onresuming
+
直前の保留から通話が再開される時に呼び出される関数。
+
TelephonyCall.onstatechange
+
通話状態 が変化した時に呼び出される関数。
+
+ +

廃止されたプロパティ

+ +
+
TelephonyCall.error 読取専用
+
通話の接続成功時に返されるエラーを示す DOMString 文字列。これは、エラーメッセージが返されると混乱するため廃止され、よりセマンティックな効果のある TelephonyCall.disconnectedReason に置き換えられました。
+
TelephonyCall.number 読取専用
+
通話に対応する電話番号を示す DOMString 文字列。Firefox OS 2.0 以降で TelephonyCall.id に置き換えられました。
+
TelephonyCall.secondNumber 読取専用
+
CDMA ネットワークで通話中に着信があった場合の電話番号を示す DOMString 文字列。Firefox OS 2.0 以降で TelephonyCall.SecondId に置き換えられました。
+
+ +

廃止されたイベントハンドラ

+ +
+
TelephonyCall.onerror
+
エラーにより通話が成功しなかった時に呼び出される関数。これは、TelephonyCall.ondisconnected とよく似ていますが、セマンティック的により狭く役立たないため廃止されました。
+
TelephonyCall.onincoming
+
着信呼び出しが検出された時に呼び出される関数。
+
+ +

メソッド

+ +

TelephonyCall は、EventTarget インターフェイスからのメソッドも継承します。

+ +
+
TelephonyCall.answer()
+
着信呼び出しに応答します。
+
TelephonyCall.hangUp()
+
通話を終了します。
+
TelephonyCall.hold()
+
通話を保留にします。
+
TelephonyCall.resume()
+
直前に保留になっていた通話を再開します。
+
+ +

+ +
// Telephony object
+var tel = navigator.mozTelephony;
+
+// Place a call
+tel.dial("123456789").then(function(call) {
+  call.number;
+});
+
+// Receive a call
+tel.onincoming = function (e) {
+  var incomingCall = e.call;
+
+  // Get the id/number of the incoming call
+  console.log(incomingCall.id);
+
+  // Answer the call
+  incomingCall.answer();
+};
+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状態コメント
Web TelephonyドラフトDraft
+ +

ブラウザ実装状況

+ +

明らかな理由により、サポートはモバイルブラウザが優先されます。

+ +

現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。 + この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。 + 手助けしていただける場合は、こちらから!

+ +
+ +
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本サポート未サポート未サポート未サポート未サポート未サポート
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
基本サポート未サポート12.0 (12.0)1.0.1未サポート未サポート未サポート
id および secondId未サポート30.0 (30.0)2.0未サポート未サポート未サポート
disconnectedReason未サポート37.0 (37.0)2.2未サポート未サポート未サポート
+
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf