KaliumPreferences

Functions

Link copied to clipboard
abstract fun getBoolean(key: String): Boolean?
abstract fun getBoolean(key: String, defaultValue: Boolean): Boolean
Link copied to clipboard
abstract fun getLong(key: String): Long?
abstract fun getLong(key: String, defaultValue: Long): Long
Link copied to clipboard
abstract fun <T> getSerializable(key: String, kSerializer: <Error class: unknown class><T>): T?
Link copied to clipboard
abstract fun getString(key: String): String?
Link copied to clipboard
abstract fun hasValue(key: String): Boolean
Link copied to clipboard
abstract fun nuke()
Link copied to clipboard
abstract fun putBoolean(key: String, value: Boolean)
Link copied to clipboard
abstract fun putLong(key: String, value: Long)
Link copied to clipboard
abstract fun <T> putSerializable(key: String, value: T, kSerializer: <Error class: unknown class><T>)
open fun <T> putSerializable(key: String, value: () -> T, kSerializer: <Error class: unknown class><T>)
Link copied to clipboard
open fun putString(key: String, value: () -> String?)
abstract fun putString(key: String, value: String?)
Link copied to clipboard
abstract fun remove(key: String)