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

Line 1: Line 1:
== Overview ==
== Overview ==
The BluetoothManager API allows to access all bluetooth adapters available on the device. Adapters are the interfaces that connect to the remote device.
The BluetoothManager API allows to access all bluetooth adapters available on the device. Adapters are the interfaces that connect to the remote device.
=== Discussion ===
* Access adapter in onadapterremoved
: onadapterremoved(address) -> onadapterremoved(adapter) before adapter is really removed? adapter's attributes are accessible with default values.
* Remove adapter from adapters[] array or not?
: gaia has to rebind handlers if adapter is removed from array.
* Track default adapter added/removed - options
** +ondefaultadapteradded/ondefaultadapterremoved
** onadapteradded/removed(adapter, bool isDefault)
** bool adapter.isDefault


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

edits