120
edits
| Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
'''BluetoothPairingEvent''' is carried as the argument of pairing related event handlers, including [[B2G/Bluetooth/WebBluetooth-v2/ | '''BluetoothPairingEvent''' is carried as the argument of pairing related event handlers, including [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#ondisplaypasskeyreq|mReq.ondisplaypasskeyreq]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#onenterpincodereq|adapter.pairingReqs.onenterpincodereq]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#onpairingconfirmationreq|adapter.pairingReqs.onpairingconfirmationreq]], and [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#onpairingconsentreq|adapter.pairingReqs.onpairingconsentreq]]. Applications can get the pairing [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice|BluetoothDevice]] object and a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#BluetoothPairingHandle|BluetoothPairingHandle]] object. The '''BluetoothPairingHandle''' object contains required property and methods for respective pairing type, including the passkey to display on local UI ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#ondisplaypasskeyreq|adapter.pairingReqs.ondisplaypasskeyreq]]) or to confirm ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#onpairingconfirmationreq|adapter.pairingReqs.onpairingconfirmationreq]]), and methods to reply the pin code entered by user ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#onenterpincodereq|adapter.pairingReqs.onenterpincodereq]]) and reply user confirmation on passkey ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingRequestListeningHandle#onpairingconfirmationreq|adapter.pairingReqs.onpairingconfirmationreq]]). | ||
== Interfaces == | == Interfaces == | ||
edits