Confirmed users
891
edits
| Line 9: | Line 9: | ||
interface BluetoothGattServer | interface BluetoothGattServer | ||
{ | { | ||
[Cached, Pure] | [Cached, Pure] readonly attribute sequence<[[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]]> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#services|services]]; | ||
attribute EventHandler ondeviceconnectionstatechanged; | attribute EventHandler ondeviceconnectionstatechanged; | ||
attribute EventHandler onattributereadreq; | attribute EventHandler onattributereadreq; | ||
| Line 18: | Line 17: | ||
[NewObject, Throws] Promise<void> close(); | [NewObject, Throws] Promise<void> close(); | ||
[NewObject, Throws] Promise<void> connect(DOMString | [NewObject, Throws] Promise<void> connect(DOMString address); | ||
[NewObject, Throws] Promise<void> disconnect(DOMString | [NewObject, Throws] Promise<void> disconnect(DOMString address); | ||
[NewObject, Throws] Promise<void> addService(BluetoothGattService | [NewObject, Throws] Promise<void> addService(BluetoothGattService service); | ||
[NewObject, Throws] Promise<void> removeService(BluetoothGattService | [NewObject, Throws] Promise<void> removeService(BluetoothGattService service); | ||
[NewObject, Throws] Promise<void> clearServices(); | [NewObject, Throws] Promise<void> clearServices(); | ||
[NewObject, Throws] Promise<void> notifyCharacteristicChanged(DOMString | [NewObject, Throws] Promise<void> notifyCharacteristicChanged(DOMString address, DOMString uuid, int instanceId, bool confirm); | ||
[NewObject, Throws] Promise<void> sendResponse(DOMString | [NewObject, Throws] Promise<void> sendResponse(DOMString address, int status, int requestId, ArrayBuffer value); | ||
}; | }; | ||