Store

interface Store<T>(source)

The two members of androidx.datastore.core.DataStore, which publishes no wasmJs variant. nonWebMain's asStore() wraps a real DataStore; wasmJsMain's LocalStorageStore keeps base64 proto bytes in localStorage. The transform is not suspending, so no suspension point can fall between a read and its write.

Inheritors

Properties

Link copied to clipboard
abstract val data: Flow<T>

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
abstract suspend fun updateData(transform: (T) -> T): T