ManagedAccountTransport

Lifecycle owner for the SDK-managed native relay transport.

Use state for connection, sync, typing, and failure observations. Product mutations automatically wake the worker through the account facade, and the worker also checks durable work itself every 250 ms. Call stop from normal coroutine lifecycle teardown; SoftchatAccount.close is the deterministic fallback.

Properties

Link copied to clipboard

Latest replaying managed-transport state.

Functions

Link copied to clipboard
open override fun close()

Synchronous deterministic fallback. Prefer stop from application code.

Link copied to clipboard
suspend fun flush(timeoutMillis: Long = DEFAULT_FLUSH_MILLIS): Boolean

Wait for mutations committed before this call to become transport-idle.

Link copied to clipboard
suspend fun forceResync()

Reconcile again from retained authenticated history and no checkpoint.

Link copied to clipboard
suspend fun setNetworkAvailable(available: Boolean)

Forward Android's current validated-network availability.

Link copied to clipboard

Return the latest state without suspending.

Link copied to clipboard
suspend fun stop()

Stop and join the native worker away from the caller's dispatcher.