B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-03-14
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
Items
BluetoothManager
- 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
BluetoothAdapter
- adapter state
- add "discovering" and "discoverable"?
- add "pairing", "connecting", and "connected"?
- outgoing vs incoming pairing/connection state transition
- adapter attributes validity
- are all attributes available after state is "enabled"?
- DOMRequest life cycle
- should gaia hold req reference until stop discovery? does DOMRequest live after onsuccess is fired?
- Return BluetoothDevice in pairing event handlers
- carry correct address
- what are the value of the device's attributes?
- Move pairing event handlers into device?