/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/BluetoothAdvertisingEvent.webidl
39 строк
1 KB
Josh Matthews
Make WebBluetooth an optional feature. (#35479)
18 фев 2025, 07:13
Не верифицирован
18 фев 2025, 07:13
1d606bb
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // skip-unless CARGO_FEATURE_BLUETOOTH // https://webbluetoothcg.github.io/web-bluetooth/#advertising-events /*interface BluetoothManufacturerDataMap { readonly maplike<unsigned short, DataView>; }; interface BluetoothServiceDataMap { readonly maplike<UUID, DataView>; };*/ [Exposed=Window, Pref="dom_bluetooth_enabled"] interface BluetoothAdvertisingEvent : Event { [Throws] constructor(DOMString type, BluetoothAdvertisingEventInit init); [SameObject] readonly attribute BluetoothDevice device; // readonly attribute FrozenArray<UUID> uuids; readonly attribute DOMString? name; readonly attribute unsigned short? appearance; readonly attribute byte? txPower; readonly attribute byte? rssi; // [SameObject] // readonly attribute BluetoothManufacturerDataMap manufacturerData; // [SameObject] // readonly attribute BluetoothServiceDataMap serviceData; }; dictionary BluetoothAdvertisingEventInit : EventInit { required BluetoothDevice device; // sequence<(DOMString or unsigned long)> uuids; DOMString name; unsigned short appearance; byte txPower; byte rssi; // Map manufacturerData; // Map serviceData; };