BondResult

sealed class BondResult

The result of a bonding request.

The bonding level (Just Works, Passkey, Numeric Comparison) is not simulated. Bonding can only be accepted, or rejected, as when the user cancels pairing or enters a wrong PIN.

Inheritors

Types

Link copied to clipboard
data class Accept(val duration: Duration = Duration.ZERO) : BondResult

The bonding succeeded.

Link copied to clipboard
data class Reject(val failure: BondingFailure = BondingFailure.REJECTED, val duration: Duration = Duration.ZERO) : BondResult

The bonding failed, for example because the user cancelled it or entered a wrong PIN.

Properties

Link copied to clipboard
abstract val duration: Duration

How long the bonding takes, from the request until its result.