stopPairing

abstract suspend fun stopPairing()

Stops the currently running pairing process and BluetoothConnectivityStatus.bondState will be set to BluetoothConnectivityStatus.BluetoothBondState.UNPAIRED for the device entry in deviceInformation.

When stopPairing is called and no pairing process is active, the call will fail silently and, as a result, the BluetoothConnectivityStatus will not change.

When stopPairing is not called, and the remote device did not accept or deny the pairing request, the pairing process will timeout.

In all of the above situations, BluetoothConnectivityStatus.lastBondStateChangeReason contains the specific reason why the pairing has stopped.