ConnectionStateProvider

Read-only provider of the canonical app-level connection state.

Inject this interface in ViewModels and feature modules that only need to observe connection state — never write it. This enforces the single-writer contract (only MeshConnectionManager may mutate state via ServiceRepository.setConnectionState).

See also

for the full read/write interface

Inheritors

Properties

Link copied to clipboard
abstract val connectionState: StateFlow<ConnectionState>

Canonical app-level connection state.