blob: ec69db2bda172c4509191574f8a625410b81fbf2 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// 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;
};