PrefsStore

interface PrefsStore(source)

The part of DataStore<Preferences> the prefs use; androidx.datastore.preferences publishes no wasmJs variant. nonWebMain's DataStorePrefsStore wraps a real DataStore, wasmJsMain's LocalStoragePrefsStore uses 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<PrefsSnapshot>

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
abstract suspend fun edit(transform: (PrefsSnapshot.Editor) -> Unit)