B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent

Overview

BluetoothAttributeEvent is carried as the argument of attribute chagned event handlers, such as adapter.onattributechanged and device.onattributechanged. Applications can get information about the changed attribute and its updated value.

Interface

interface BluetoothAttributeEvent : Event
{
  readonly attribute short attribute;
  readonly attribute any   value;
};

Attributes

attribute

Description
The changed attribute's enumeration value.
Value type
short
Default value
-1

value

Description
The updated value of the changed attribute. Its type depends on attribute's type.
Value type
any
Default value
null