BondOutcome

sealed interface BondOutcome(source)

The outcome FakeBluetoothRepository.bond produces. Fail and Security both simply throw their wrapped error; the distinct cases exist only to document caller intent (via failBondWith vs failBondWithSecurityException) and leave a seam should the fake ever need to branch on permission failures.

Inheritors

Types

Link copied to clipboard

bond() throws error — models a generic/flaky bonding failure (timeout, dropped broadcast, etc.).

Link copied to clipboard

bond() records the device as bonded, then throws error — models a lost terminal bond signal.

Link copied to clipboard

bond() throws error — models a missing-permission (BLUETOOTH_CONNECT) failure.

Link copied to clipboard

bond() completes normally and records the device as bonded (pre-existing default behavior).