SharedPreference

actual class SharedPreference(context: Any)
expect class SharedPreference(context: Any)
actual class SharedPreference(context: Any)

Constructors

Link copied to clipboard
actual constructor(context: Any)
expect constructor(context: Any)
actual constructor(context: Any)

Functions

Link copied to clipboard
actual fun clear()
expect fun clear()
actual fun clear()
Link copied to clipboard
actual fun getBoolean(key: String, defaultValue: Boolean): Boolean
expect fun getBoolean(key: String, defaultValue: Boolean): Boolean
actual fun getBoolean(key: String, defaultValue: Boolean): Boolean
Link copied to clipboard
actual fun getFloat(key: String, defaultValue: Float): Float
expect fun getFloat(key: String, defaultValue: Float): Float
actual fun getFloat(key: String, defaultValue: Float): Float
Link copied to clipboard
actual fun getInt(key: String, defaultValue: Int): Int
expect fun getInt(key: String, defaultValue: Int): Int
actual fun getInt(key: String, defaultValue: Int): Int
Link copied to clipboard
actual fun getLong(key: String, defaultValue: Long): Long
expect fun getLong(key: String, defaultValue: Long): Long
actual fun getLong(key: String, defaultValue: Long): Long
Link copied to clipboard
actual fun getString(key: String, defaultValue: String): String?
expect fun getString(key: String, defaultValue: String): String?
actual fun getString(key: String, defaultValue: String): String?
Link copied to clipboard
actual fun putBoolean(key: String, value: Boolean)
expect fun putBoolean(key: String, value: Boolean)
actual fun putBoolean(key: String, value: Boolean)
Link copied to clipboard
actual fun putFloat(key: String, value: Float)
expect fun putFloat(key: String, value: Float)
actual fun putFloat(key: String, value: Float)
Link copied to clipboard
actual fun putInt(key: String, value: Int)
expect fun putInt(key: String, value: Int)
actual fun putInt(key: String, value: Int)
Link copied to clipboard
actual fun putLong(key: String, value: Long)
expect fun putLong(key: String, value: Long)
actual fun putLong(key: String, value: Long)
Link copied to clipboard
actual fun putString(key: String, value: String)
expect fun putString(key: String, value: String)
actual fun putString(key: String, value: String)
Link copied to clipboard
actual fun remove(key: String)
expect fun remove(key: String)
actual fun remove(key: String)