Confirmed users
891
edits
| Line 328: | Line 328: | ||
; Description | ; Description | ||
: The method changes the value of the bluetooth adapter's [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#discoverable|discoverable]] property. | : The method changes the value of the bluetooth adapter's [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#discoverable|discoverable]] property. | ||
: This is an asynchronous method and the result is returned via a Promise. If the setDiscoverable operation succeeds, an [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onattributechanged|onattributechanged]] would be triggered before the Promise is resolved to indicate [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#discoverable| | : This is an asynchronous method and the result is returned via a Promise. If the setDiscoverable operation succeeds, an [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onattributechanged|onattributechanged]] would be triggered before the Promise is resolved to indicate property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#discoverable|discoverable]] has changed. | ||
; Parameters | ; Parameters | ||