StorageProvider

Storage provider factory.

Implementations are responsible for creating and activating storage backends (e.g., SQLite, in-memory, or custom). The SDK calls activate before connecting to a radio, keying storage by the transport identity.

Activation contract: activate() is called exactly once per RadioClient lifetime, before the transport connects. The returned DeviceStorage is then held by the engine until DeviceStorage.close.

Since

0.1.0

Functions

Link copied to clipboard
abstract suspend fun activate(identity: TransportIdentity): DeviceStorage

Activate storage for a specific transport identity.