PreferenceDataStore

@Singleton
class PreferenceDataStore @Inject constructor(val context: Context)

Constructors

Link copied to clipboard
@Inject
constructor(context: Context)

Types

Link copied to clipboard
object Keys

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T> read(key: Preferences.Key<T>): Flow<T>
Link copied to clipboard
suspend fun <T> write(key: Preferences.Key<T>, data: T)