DataStoreManager

class DataStoreManager @Inject constructor(context: Context)

Constructors

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

Types

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <T> getValue(key: Preferences.Key<T>, defaultValue: T): T

Get a preference value

Link copied to clipboard
suspend fun <T> setValue(key: Preferences.Key<T>, value: T)

Set a preference value