- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Thu, 03 Mar 2022 14:26:51 +0000
- To: public-web-bluetooth-log@w3.org
beaufortfrancois has just submitted a new pull request for https://github.com/WebBluetoothCG/web-bluetooth:
== Add BluetoothDevice.forget() ==
Similarly to [HIDDevice.forget()](https://chromestatus.com/feature/5723581527883776) and [USBDevice forget()](https://chromestatus.com/feature/5640127995969536), this PR adds BluetoothDevice.forget() so that web developers can revoke permission access to a paired BluetoothDevice.
```js
// Request a Bluetooth device.
const device = await navigator.bluetooth.requestDevice({ acceptAllDevices: true });
// Then later... revoke permission to the Bluetooth device.
await device.forget();
```
See https://github.com/WebBluetoothCG/web-bluetooth/pull/574
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 3 March 2022 14:26:53 UTC