sendPairingRequest

fun sendPairingRequest(mac: String, variant: Int = BluetoothDevice.PAIRING_VARIANT_PIN)(source)

Send ACTION_PAIRING_REQUEST for mac the way the Bluetooth app does — as an ordered broadcast, so a higher-priority receiver can answer and abort it — and pump the main looper so it is delivered synchronously.