B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent: Difference between revisions
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
(replace any by sequence<DOMString> in attr event) |
|||
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
BluetoothAttributeEvent is carried as the | '''BluetoothAttributeEvent''' is carried as the parameter of attribute chagned event handlers, including [[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onattributechanged|manager.onattributechanged]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onattributechanged|adapter.onattributechanged]], and [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#onattributechanged|device.onattributechanged]]. Applications can get information about the changed attributes to query the updated values. | ||
== Interface == | == Interface == | ||
[CheckPermissions="bluetooth"] | |||
interface BluetoothAttributeEvent : Event | interface BluetoothAttributeEvent : Event | ||
{ | { | ||
readonly attribute | [Cached, Constant] readonly attribute sequence<DOMString> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#attrs|attrs]]; | ||
}; | }; | ||
== | == Properties == | ||
* [ | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAttributeEvent#attrs|BluetoothAttributeEvent.attrs]] | ||
=== | === attrs === | ||
; Description | ; Description | ||
: The changed attribute's enumeration value. | : The array of changed attribute's enumeration value. The enumeration values are either [[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#BluetoothManagerAttribute|BluetoothManagerAttribute]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#BluetoothAdapterAttribute|BluetoothAdapterAttribute]], or [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothDeviceAttribute|BluetoothDeviceAttribute]]. | ||
; Value type | ; Value type | ||
: | : sequence<DOMString> | ||
Latest revision as of 06:34, 24 April 2015
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>