Package-level declarations

Types

Link copied to clipboard
class SharedPreferencesStateFlow<V>(val flow: MutableStateFlow<V>, val put: (V) -> Unit) : MutableStateFlow<V>
Link copied to clipboard
class SpEncrypted(name: String)

Creating an instance of encrypted SharedPreferences.

Link copied to clipboard
class SpNormal(name: String)

Creating an instance of SharedPreferences.

Functions

Link copied to clipboard
fun ISharedPreferencesOwner.boolean(defaultValue: Boolean = false, commit: Boolean = false): SharedPreferencesProperty<Boolean>

Save or set a float value into SharedPreferences.

Link copied to clipboard
Link copied to clipboard
fun ISharedPreferencesOwner.double(defaultValue: Double = 0.0, commit: Boolean = false): SharedPreferencesProperty<Double>

Save or set a double value into SharedPreferences.

Link copied to clipboard
fun ISharedPreferencesOwner.float(defaultValue: Float = 0.0f, commit: Boolean = false): SharedPreferencesProperty<Float>

Save or set a float value into SharedPreferences.

Link copied to clipboard
fun ISharedPreferencesOwner.int(defaultValue: Int = 0, commit: Boolean = false): SharedPreferencesProperty<Int>

Save or set an int value into SharedPreferences.

Link copied to clipboard
fun ISharedPreferencesOwner.long(defaultValue: Long = 0, commit: Boolean = false): SharedPreferencesProperty<Long>

Save or set a long value into SharedPreferences.

Link copied to clipboard

Save or set a string value into SharedPreferences.

Link copied to clipboard
fun ISharedPreferencesOwner.stringSet(defaultValue: Set<*> = setOf<String>(), commit: Boolean = false): SharedPreferencesProperty<Set<*>>

Save or set a string set value into SharedPreferences.