Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter

21 bytes removed, 06:59, 22 August 2014
disable()
; Description
: The method turns off the local bluetooth adapter.
: This is an asynchronous method and its result is returned via a Promise. Once the method is called, property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#state|adapter.state]] becomes <tt>disabling</tt> and a corresponding [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onattributechanged|onattributechanged]] would be triggered. If the disable operation succeeds, several [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onattributechanged|onattributechanged]] would be triggered before the Promise is resolved to the indicate all properties (except [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#state|adapter.state]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#pairingReqs|adapter.pairingReqs]], and event handlers) become default value, and the last one must indicate property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#state|adapter.state]] becomes <tt>disabled</tt>. In other words, all adapter's properties except [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#pairingReqs|adapter.pairingReqs]] and event handlers are reset to default value once property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#state|adapter.state]] becomes <tt>disabled</tt>.
; Return
Confirm
891
edits

Navigation menu