B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 19: Line 19:


; Value type
; Value type
: sequence<unsigned short>
: sequence<DOMString>

Revision as of 07:13, 18 June 2014

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
{
  readonly attribute any attrs;
  // We don't support sequence in event codegen yet (Bug 1023762)
  // 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>