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

Jump to navigation Jump to search
Line 51: Line 51:


; Description
; Description
: The <tt>getAdapters</tt> method is used to retrieve all adapters of this device.
: The <tt>getAdapters</tt> method retrieves all adapters on this device.


; Return
; Return
Line 61: Line 61:


; // TODO
; // TODO
* What would happen if 0 is unplugged and another dongle is plugged?
* What would happen if adapter 0 is unplugged and another new adapter is plugged in?


=== getDefaultAdapter() ===
=== getDefaultAdapter() ===


; Description
; Description
: The <tt>getDefaultAdapter</tt> method is used to retrieve the default adapter used to connect the device to third-party Bluetooth devices.
: The <tt>getDefaultAdapter</tt> method retrieves the default adapter used to connect this device to third-party bluetooth devices.


; Return
; Return
Line 76: Line 76:


; // TODO
; // TODO
* How do we know defaultAdapter has been changed?
* How do we know default adapter has been changed?


== See also ==
== See also ==
* [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter BluetoothAdapter]
* [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter BluetoothAdapter]
Confirmed users
891

edits

Navigation menu