Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent

230 bytes removed, 02:11, 3 April 2014
m
no edit summary
== Overview ==
'''BluetoothAdapterEvent''' is carried as the parameter of [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapteradded |manager.onadapteradded]] and [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapterremoved |manager.onadapterremoved]] event handlers. Applications can know whether the added/removed adapter is default adapter, and get the added [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter |BluetoothAdapter]] object or the address of removed adapter.
== Interface ==
interface BluetoothAdapterEvent : Event
{
readonly attribute boolean [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#isDefault |isDefault]]; readonly attribute BluetoothAdapter? [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#adapter |adapter]]; readonly attribute DOMString? [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#address |address]];
};
== Properties ==
* [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#isDefault |BluetoothAdapterEvent.isDefault]]* [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#adapter |BluetoothAdapterEvent.adapter]]* [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#address |BluetoothAdapterEvent.address]]
=== isDefault ===
; Value type
: [https://wiki.mozilla.org/[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter |BluetoothAdapter]]
; Default value
Confirm
185
edits

Navigation menu