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

Line 225: Line 225:
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondevicepaired|BluetoothAdapter.ondevicepaired]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondevicepaired|BluetoothAdapter.ondevicepaired]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondeviceunpaired|BluetoothAdapter.ondeviceunpaired]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondeviceunpaired|BluetoothAdapter.ondeviceunpaired]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingaborted|BluetoothAdapter.onpairingaborted]]


=== onattributechanged ===
=== onattributechanged ===
Line 271: Line 272:
: ''aDeviceEvent''
: ''aDeviceEvent''
:: The event is a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#Interface|BluetoothDeviceEvent]] with property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#address|address]] as the unpaired remote bluetooth device's address.
:: The event is a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#Interface|BluetoothDeviceEvent]] with property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#address|address]] as the unpaired remote bluetooth device's address.
=== onpairingaborted ===
; Description
: A handler to trigger when pairing fails due to one of following conditions:
: - authentication fails
: - remote device down (bluetooth ACL becomes disconnected)
: - internal error happens


== Methods ==
== Methods ==
Confirmed users
891

edits