ISharedPreferencesOwner
Properties
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
fun ISharedPreferencesOwner.string(defaultValue: String = "", commit: Boolean = false): SharedPreferencesProperty<String>
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.