UwbAdapter

Provides access to UWB adapter state and capabilities.

state is a snapshot captured at construction time. Unlike BLE, the Android UWB SDK does not provide a state-change broadcast — create a new adapter instance to re-query.

Obtain an instance via UwbAdapter factory function.

Properties

Link copied to clipboard
abstract val state: StateFlow<UwbAdapterState>

Snapshot of the UWB adapter state at construction time.

Functions

Link copied to clipboard
abstract suspend fun capabilities(): UwbCapabilities
Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract suspend fun prepareSession(config: RangingConfig): PreparedSession

Prepare a UWB ranging session without starting it.

Link copied to clipboard

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