setBluetoothPairingHandler
fun setBluetoothPairingHandler(handler: (details: BluetoothPairingHandlerHandlerDetails, callback: (response: Response) -> Unit) -> Unit?)(source)
Sets a handler to respond to Bluetooth pairing requests. This handler allows developers to handle devices that require additional validation before pairing. When a handler is not defined, any pairing on Linux or Windows that requires additional validation will be automatically cancelled. macOS does not require a handler because macOS handles the pairing automatically. To clear the handler, call setBluetoothPairingHandler(null)
.