Confirmed users
891
edits
| Line 305: | Line 305: | ||
; Description | ; Description | ||
: The method sets the human-readable name of the local bluetooth adapter. This name is visible to remote bluetooth devices. | : The method sets the human-readable name of the local bluetooth adapter. This name is visible to remote bluetooth devices. | ||
: This is an asynchronous method and its result is returned via a Promise. If the setName 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#name| | : This is an asynchronous method and its result is returned via a Promise. If the setName 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#name|name]] has changed. | ||
; Parameters | ; Parameters | ||