Session.setBluetoothPairingHandler method
Session › setBluetoothPairingHandler
Unofficial
Sets a handler to respond to Bluetooth pairing requests.Signature:
setBluetoothPairingHandler(handler: ((details: ElectronBluetoothPairingHandlerHandlerDetails, callback: (response: ElectronBluetoothPairingResponse) => void) => void) | null): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| handler | ((details: ElectronBluetoothPairingHandlerHandlerDetails, callback: (response: ElectronBluetoothPairingResponse) => void) => void) | null | The pairing handler, or null to remove it. |
Returns: void