KeyValueStorage

Functions

Link copied to clipboard
abstract fun allKeys(): Set<String>
Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun delete(key: String)
Link copied to clipboard
abstract fun getBoolean(key: String, default: Boolean): Boolean
Link copied to clipboard
abstract fun getByteArray(key: String): ByteArray?
abstract fun getByteArray(key: String, default: ByteArray): ByteArray
Link copied to clipboard
abstract fun getFloat(key: String, default: Float): Float
Link copied to clipboard
abstract fun getInt(key: String, default: Int): Int
Link copied to clipboard
abstract fun getLong(key: String, default: Long): Long
Link copied to clipboard
inline fun <T : Any> KeyValueStorage.getSerializable(key: String): T?
inline fun <T : Any> KeyValueStorage.getSerializable(key: String, default: T): T
Link copied to clipboard
Link copied to clipboard
abstract fun getString(key: String): String?
abstract fun getString(key: String, default: String): String
Link copied to clipboard
abstract fun putBoolean(key: String, value: Boolean)
Link copied to clipboard
abstract fun putByteArray(key: String, value: ByteArray)
Link copied to clipboard
abstract fun putFloat(key: String, value: Float)
Link copied to clipboard
abstract fun putInt(key: String, value: Int)
Link copied to clipboard
abstract fun putLong(key: String, value: Long)
Link copied to clipboard
inline fun <T : Any> KeyValueStorage.putSerializable(key: String, value: T)
Link copied to clipboard
abstract fun putString(key: String, value: String)