B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent

From MozillaWiki
< B2G‎ | Bluetooth‎ | WebBluetooth-v2
Revision as of 06:34, 24 April 2015 by Joliu (talk | contribs) (replace any by sequence<DOMString> in attr event)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

BluetoothAttributeEvent is carried as the parameter of attribute chagned event handlers, including manager.onattributechanged, adapter.onattributechanged, and device.onattributechanged. Applications can get information about the changed attributes to query the updated values.

Interface

[CheckPermissions="bluetooth"]
interface BluetoothAttributeEvent : Event
{
  [Cached, Constant] readonly attribute sequence<DOMString> attrs;
};

Properties

attrs

Description
The array of changed attribute's enumeration value. The enumeration values are either BluetoothManagerAttribute, BluetoothAdapterAttribute, or BluetoothDeviceAttribute.
Value type
sequence<DOMString>