Confirmed users
891
edits
No edit summary |
|||
| Line 5: | Line 5: | ||
interface BluetoothAttributeEvent : Event | interface BluetoothAttributeEvent : Event | ||
{ | { | ||
readonly attribute short | readonly attribute short attr; | ||
readonly attribute any value; | readonly attribute any value; | ||
}; | }; | ||
== Attributes == | == Attributes == | ||
* [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent# | * [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#attr BluetoothAttributeEvent.attr] | ||
* [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#value BluetoothAttributeEvent.value] | * [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#value BluetoothAttributeEvent.value] | ||
=== | === attr === | ||
; Description | ; Description | ||
: The changed attribute's enumeration value. The enumeration is either [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothAdapterAttribute BluetoothAdapterAttribute] or [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothDeviceAttribute BluetoothDeviceAttribute]. | : The changed attribute's enumeration value. The enumeration is either [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothAdapterAttribute BluetoothAdapterAttribute] or [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothDeviceAttribute BluetoothDeviceAttribute]. | ||
| Line 25: | Line 25: | ||
=== value === | === value === | ||
; Description | ; Description | ||
: The updated value of the changed attribute. Its type depends on [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#attribute | : The updated value of the changed attribute. Its type depends on [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#attribute attr]'s type. | ||
; Value type | ; Value type | ||