Confirmed users
891
edits
No edit summary |
|||
| Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
BluetoothPairingEvent is carried as the argument of pairing related event handlers, | '''BluetoothPairingEvent''' is carried as the argument of pairing related event handlers, including [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondisplaypasskeyreq adapter.ondisplaypasskeyreq], [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onenterpasskeyreq adapter.onenterpasskeyreq], [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconfirmationreq adapter.onpairingconfirmationreq], and [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconsentreq adapter.onpairingconsentreq]. Applications can get the pairing [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice BluetoothDevice] object, and the passkey to display on local UI ([https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondisplaypasskeyreq adapter.ondisplaypasskeyreq]) or to confirm ([https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconfirmationreq adapter.onpairingconfirmationreq]). Applications can also reply the passkey entered by user ([https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onenterpasskeyreq adapter.onenterpasskeyreq]) or reply user confirmation on passkey ([https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconfirmationreq adapter.onpairingconfirmationreq]). | ||
== Interface == | == Interface == | ||