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

Jump to navigation Jump to search
Line 1: Line 1:
== Overview ==
== Overview ==
'''BluetoothPairingEvent''' is carried as the argument of pairing related event handlers, including [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#ondisplaypasskeyreq|adapter.ondisplaypasskeyreq]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onenterpincodereq|adapter.onenterpincodereq]], [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconfirmationreq|adapter.onpairingconfirmationreq]], and [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconsentreq|adapter.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/BluetoothAdapter#ondisplaypasskeyreq|adapter.ondisplaypasskeyreq]]) or to confirm ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconfirmationreq|adapter.onpairingconfirmationreq]]), and methods to reply the pin code entered by user ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onenterpincodereq|adapter.onenterpincodereq]]) and reply user confirmation on passkey ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#onpairingconfirmationreq|adapter.onpairingconfirmationreq]]).
'''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 ==
120

edits

Navigation menu