DatabaseDataStore

Store holding which device database is currently active. A type rather than a Koin qualifier so the compiler tells it apart from every other DataStore<Preferences>.

Properties

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

Functions

Link copied to clipboard

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

Link copied to clipboard
abstract suspend fun updateData(transform: suspend (t: Preferences) -> Preferences): Preferences