B2G/Bluetooth/WebBluetooth-v2/BluetoothAddressEvent: Difference between revisions
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
'''BluetoothAddressEvent''' is carried as the argument of [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapteradded manager.onadapterremoved] and [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondeviceunpaired adapter.ondeviceunpaired] event handlers. Applications can get the address of removed adapter and knows whether the removed adapter is default adapter for [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapteradded manager.onadapterremoved]; For [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondeviceunpaired adapter.ondeviceunpaired], applications get the address of unpaired remote bluetooth device. | |||
== Interface == | == Interface == | ||
Line 7: | Line 6: | ||
{ | { | ||
readonly attribute DOMString address; | readonly attribute DOMString address; | ||
readonly attribute boolean? isDefault; | |||
}; | }; | ||
Line 14: | Line 14: | ||
=== address === | === address === | ||
; Description | ; Description | ||
: Represents the bluetooth address | : Represents the bluetooth address | ||
; Value type | ; Value type | ||
: DOMString | : DOMString |
Latest revision as of 06:30, 20 March 2014
Overview
BluetoothAddressEvent is carried as the argument of manager.onadapterremoved and adapter.ondeviceunpaired event handlers. Applications can get the address of removed adapter and knows whether the removed adapter is default adapter for manager.onadapterremoved; For adapter.ondeviceunpaired, applications get the address of unpaired remote bluetooth device.
Interface
interface BluetoothAddressEvent : Event { readonly attribute DOMString address; readonly attribute boolean? isDefault; };
Properties
address
- Description
- Represents the bluetooth address
- Value type
- DOMString