Bluetooth
非標準: この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。
Web Bluetooth API の Bluetooth インターフェースは、オプション指定した BluetoothDevice (en-US) の Promise を返します。
インターフェース
interface Bluetooth {
Promise<BluetoothDevice> requestDevice(RequestDeviceOptions options);
};
Bluetooth implements EventTarget;
Bluetooth implements BluetoothDeviceEventHandlers;
Bluetooth implements CharacteristicEventHandlers;
Bluetooth implements ServiceEventHandlers;
プロパティ
なし
メソッド
Bluetooth.requestDevice()(en-US)-
オプション指定した
BluetoothDevice(en-US) のPromiseを返す。
仕様
| Specification |
|---|
| Web Bluetooth # bluetooth |
ブラウザー実装状況
BCD tables only load in the browser