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

Jump to navigation Jump to search
Line 1: Line 1:
== Overview ==
== Overview ==
The BluetoothAddressEvent API provides access to a Bluetooth address when the ''adapterremoved'' or ''deviceunpaired'' event is fired. See [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapterremoved BluetoothManager.onadapterremoved] and [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondeviceunpaired BluetoothAdapter.ondevicepaired] for more information. <br>
'''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.
This interface inherits from the [https://developer.mozilla.org/en-US/docs/Web/API/Event Event] interface.


== Interface ==
== Interface ==
Confirmed users
891

edits

Navigation menu