healthStatusFlow

fun healthStatusFlow(intervalMs: Long = 10000): Flow<HealthCheckResult>

Observe SDK health status as a kotlinx.coroutines.flow.Flow.

Emits a HealthCheckResult on either a queue-depth change or a fixed interval, whichever fires first. The ticker ensures that fields that are not Room-reactive (connectivity, auth state, last sync timestamp) still refresh on schedule; the DB-reactive arm ensures queue-depth UI updates are immediate.

Since

0.8.0

Parameters

intervalMs

Fallback tick interval in milliseconds. Default 10000ms. Threading: Main-safe. Each emission runs healthCheck which dispatches IO internally; the ticker runs on the collector's context.