gh-pages / com.nextfaze.devfun.internal.pref / KSharedPreferences

KSharedPreferences

class KSharedPreferences (source)

Constructors

Name Summary
<init> KSharedPreferences(preferences: SharedPreferences)

Functions

Name Summary
clear fun clear(): Unit
get operator fun get(key: String, default: String): KPreference<String>
operator fun get(key: String, default: Int): KPreference<Int>
operator fun get(key: String, default: Long, onChange: OnChange<Long>? = null): KPreference<Long>
operator fun get(key: String, default: Float): KPreference<Float>
operator fun get(key: String, default: Boolean, onChange: OnChange<Boolean>? = null): KPreference<Boolean>
operator fun <E : Enum<E>> get(key: String, default: E, onChange: OnChange<E>? = null): KPreference<E>
operator fun get(key: String, default: Int? = null): KNullablePreference<Int>

Companion Object Functions

Name Summary
named fun named(context: Context, name: String): KSharedPreferences