Reason

sealed class Reason

The reason why a device is not bonded after the bonding process, or after it had been bonded.

The reasons are reported by the system. They depend on the Android version and manufacturer.

See also

Inheritors

Types

Link copied to clipboard

The pairing was cancelled by the user.

Link copied to clipboard

The authentication failed, e.g. the PIN or passkey was wrong.

Link copied to clipboard

The peripheral rejected the pairing.

Link copied to clipboard

The authentication timed out.

Link copied to clipboard

Bonding was not possible because a discovery was in progress.

Link copied to clipboard

The peripheral cancelled the pairing.

Link copied to clipboard

The peripheral did not respond, for example it disconnected.

Link copied to clipboard

The bond information was removed from Android side, after the peripheral had been bonded.

Link copied to clipboard

Bonding was attempted too many times in a row.

Link copied to clipboard
data class Unknown(val code: Int) : BondState.Reason

The system reported a reason that is not known to the library.