Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface CoreLocalConfigDataStore : Store<LocalConfig>
Link copied to clipboard
interface CoreLocalStatsDataStore : Store<LocalStats>
Link copied to clipboard
interface CoreModuleConfigDataStore : Store<LocalModuleConfig>
Link copied to clipboard

Typed against DataStore<Preferences>, whose payload type has no wasmJs variant, so it cannot sit behind Store.

Link copied to clipboard
interface DataStoreScope : CoroutineScope

Application-lifetime scope shared by every real DataStore (android/jvm/iOS only). Per the DataStore docs this must not be cancelled by UI lifecycle events: DataStore has no close(), so its in-memory cache is released only when this job ends. wasmJs's LocalStorageStore needs no scope — localStorage access is synchronous.

Functions

Link copied to clipboard

Presents an existing store as CoreLocalConfigDataStore; the wrapper adds nothing but identity.

Link copied to clipboard

Presents an existing store as CoreLocalStatsDataStore; the wrapper adds nothing but identity.

Link copied to clipboard

Presents an existing store as CoreModuleConfigDataStore; the wrapper adds nothing but identity.

Link copied to clipboard

Presents an existing store as CorePreferencesDataStore; the wrapper adds nothing but identity.

Link copied to clipboard
fun CoroutineScope.asDataStoreScope(): DataStoreScope

Presents an existing scope as DataStoreScope; the wrapper adds nothing but identity.