Skip to content

Commit

Permalink
Update interfaces/web-bluetooth.idl (#22365)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofoolip committed Mar 23, 2020
1 parent 19f2a59 commit 4c91f4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions interfaces/web-bluetooth.idl
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,18 @@ interface BluetoothDevice : EventTarget {
readonly attribute DOMString? name;
readonly attribute BluetoothRemoteGATTServer? gatt;

Promise<void> watchAdvertisements();
void unwatchAdvertisements();
Promise<void> watchAdvertisements(
optional WatchAdvertisementsOptions options = {});
readonly attribute boolean watchingAdvertisements;
};
BluetoothDevice includes BluetoothDeviceEventHandlers;
BluetoothDevice includes CharacteristicEventHandlers;
BluetoothDevice includes ServiceEventHandlers;

dictionary WatchAdvertisementsOptions {
AbortSignal signal;
};

[Exposed=Window, SecureContext]
interface BluetoothManufacturerDataMap {
readonly maplike<unsigned short, DataView>;
Expand Down

0 comments on commit 4c91f4d

Please sign in to comment.