Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
@JvmName(name = "booleanNullablePreference")
fun booleanPreference(name: String, defaultValue: Boolean?): IDataStorePreference<Boolean?>
Link copied to clipboard
fun SettingsDataStore.Companion.create(context: Context, name: String = "settings.preferences_pb", migrations: List<DataMigration<Preferences>> = listOf(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.IO + SupervisorJob()), security: Security = NoOpSecurity): SettingsDataStore
fun SettingsDataStore.Companion.create(name: String = "settings.preferences_pb", migrations: List<DataMigration<Preferences>> = listOf(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.IO + SupervisorJob()), security: Security = NoOpSecurity): SettingsDataStore
Link copied to clipboard
fun createDataStore(migrations: List<DataMigration<Preferences>>, corruptionHandler: ReplaceFileCorruptionHandler<Preferences>?, scope: CoroutineScope, producePath: () -> String): DataStore<Preferences>
Link copied to clipboard
@JvmName(name = "doubleNullablePreference")
fun doublePreference(name: String, defaultValue: Double?): IDataStorePreference<Double?>
Link copied to clipboard
fun <T : Enum<T>, U> enumPreference(name: String, defaultValue: T): IDataStoreEnumPreference<T>
Link copied to clipboard
@JvmName(name = "floatNullablePreference")
fun floatPreference(name: String, defaultValue: Float?): IDataStorePreference<Float?>
Link copied to clipboard
inline fun <T : Enum<T>> SettingsDataStore.get(pref: IDataStoreEnumPreference<T>): Flow<T>
Link copied to clipboard
fun intPreference(name: String, defaultValue: Int): IDataStorePreference<Int>
@JvmName(name = "intNullablePreference")
fun intPreference(name: String, defaultValue: Int?): IDataStorePreference<Int?>
Link copied to clipboard
fun longPreference(name: String, defaultValue: Long): IDataStorePreference<Long>
@JvmName(name = "longNullablePreference")
fun longPreference(name: String, defaultValue: Long?): IDataStorePreference<Long?>
Link copied to clipboard
@JvmName(name = "stringNullablePreference")
fun stringPreference(name: String, defaultValue: String?): IDataStorePreference<String?>
Link copied to clipboard
@JvmName(name = "stringSetNullablePreference")
fun stringSetPreference(name: String, defaultValue: Set<String>?): IDataStorePreference<Set<String>?>