ISharedPreferencesOwner

Properties

Link copied to clipboard
abstract val kv: SharedPreferences
Link copied to clipboard
abstract val name: String

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
open fun clearAllKV()
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.