非標準
この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。
Web Bluetooth API の Bluetooth インターフェースは、オプション指定した BluetoothDevice の Promise を返します。
インターフェース
interface Bluetooth {
Promise<BluetoothDevice> requestDevice(RequestDeviceOptions options);
};
Bluetooth implements EventTarget;
Bluetooth implements BluetoothDeviceEventHandlers;
Bluetooth implements CharacteristicEventHandlers;
Bluetooth implements ServiceEventHandlers;
プロパティ
- なし
メソッド
Bluetooth.requestDevice()- オプション指定した
BluetoothDeviceのPromiseを返す。
仕様
| 仕様 | ステータス | コメント |
|---|---|---|
| Web Bluetooth Bluetooth の定義 |
ドラフト | 初期定義。 |
ブラウザー実装状況
| 機能 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| 基本サポート | 45.0 [1] | ? | ? | ? | ? |
| 機能 | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
|---|---|---|---|---|---|---|---|---|
| 基本サポート | 未サポート | 未サポート | ? | ? | ? | ? | ? | 48.0 [2] |
[1] フラグが必要です。Chrome OS のみです。
[2] フラグが必要です。Android 6 (Marshmallow) 以上が求められます。

