Package-level declarations

Types

Link copied to clipboard
sealed interface ConnectorError

Errors that occur during out-of-band peer parameter exchange.

Link copied to clipboard

Throwable wrapper for ConnectorError, suitable for throwing from PeerConnector.exchange implementations.

Link copied to clipboard
data class ExchangeTimedOut(val message: String, val cause: Throwable? = null) : ConnectorError

The OOB transport failed to complete the exchange within the expected time.

Link copied to clipboard
data class InvalidRemoteParams(val message: String, val cause: Throwable? = null) : ConnectorError

The remote peer sent parameters that could not be decoded.

Link copied to clipboard
fun interface PeerConnector

Transport-agnostic interface for exchanging UWB session parameters with a remote peer.

Link copied to clipboard
data class TransportFailure(val message: String, val cause: Throwable? = null) : ConnectorError

The underlying transport (BLE, NFC, WiFi) encountered a failure.

Functions

Link copied to clipboard

Prepare a UWB session, exchange parameters via connector, and start ranging.