SoftchatAccount

The Android account entry point.

Rust owns the SQLite schema, migrations, transactions, authenticated protocol truth, projections, delivery state, relay state, synchronization checkpoints, and use-case queries. Android supplies one private database path per account and retains lifecycle, HTTP, files, WorkManager, notifications, and UI. Relay sockets may be delegated to the managed transport while Android supplies platform trust and connectivity hints.

Product methods are bounded suspend calls and observations are Flow values backed by the durable Rust revision. The account opens no socket until startManagedTransport(context) is called. When optional SoftchatLogging is configured, one account-scoped coroutine drains a bounded native ring off operation/native threads. Closing the account first stops any managed transport, then completes observations, closes SQLite, and erases authority.

Types

Link copied to clipboard
object Companion

Factory for opening the account-scoped Rust runtime.

Properties

Link copied to clipboard

Android-local address-book labels stored in the Rust account database.

Link copied to clipboard

Complete conversation state and bounded observations.

Link copied to clipboard

Identity-derived database filename, without the private directory.

Link copied to clipboard

Exact authenticated event detail and relationship queries.

Link copied to clipboard

Atomic incoming authentication and storage operations for system adapters.

Link copied to clipboard

Logical attachment operations and media gallery queries.

Link copied to clipboard

Complete message queries and high-level messaging commands.

Link copied to clipboard

Durable outgoing-operation inspection and recovery.

Link copied to clipboard

Effective profile and follow-list operations.

Link copied to clipboard

Canonical public key derived from the imported account authority.

Link copied to clipboard

Durable FCM/APNs registration.

Link copied to clipboard

Bounded one-shot import from retired, platform-owned storage.

Link copied to clipboard

Durable relay catalog and selection operations.

Link copied to clipboard

Account-scoped stickers and link-preview cache stored by Rust.

Link copied to clipboard

Versioned cross-device account settings.

Link copied to clipboard

Redacted account health and recovery operations.

Link copied to clipboard

Rust-owned synchronization coordinator entry points.

Link copied to clipboard

Low-level transport execution boundary for hosts that own their socket.

Functions

Link copied to clipboard
open override fun close()

Close SQLite, erase authority, and complete every account observation.

Link copied to clipboard
suspend fun refresh()

Re-read the durable revision after an Android lifecycle/process wake hint.

Link copied to clipboard

Start the optional SDK-owned WSS/Noise transport for this account.