chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_advertising_event.idl

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothadvertisingevent

[
    Exposed=Window,
    RuntimeEnabled=WebBluetoothScanning,
    SecureContext
] interface BluetoothAdvertisingEvent : Event {

  readonly attribute BluetoothDevice device;
  readonly attribute FrozenArray<UUID> uuids;
  [HighEntropy=Direct, MeasureAs=BluetoothAdvertisingEventName] readonly attribute DOMString? name;
  [HighEntropy=Direct, MeasureAs=BluetoothAdvertisingEventAppearance] readonly attribute unsigned short? appearance;
  [HighEntropy=Direct, MeasureAs=BluetoothAdvertisingEventTxPower] readonly attribute byte? txPower;
  readonly attribute byte? rssi;
  readonly attribute BluetoothManufacturerDataMap manufacturerData;
  readonly attribute BluetoothServiceDataMap serviceData;
};