StorageImpl

class StorageImpl(context: Context, fileName: String, shouldLogChanges: Boolean = false) : Storage

Constructors

Link copied to clipboard
constructor(context: Context, fileName: String, shouldLogChanges: Boolean = false)

Functions

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun <T> get(key: String, serializer: KSerializer<T>): T?
Link copied to clipboard
open override fun <T> onValueChanged(key: String, serializer: KSerializer<T>): Flow<T?>
Link copied to clipboard
fun <R, T : R> Storage.onValueChanged(key: String, serializer: KSerializer<T>, defaultValue: R): Flow<R>
Link copied to clipboard
open override fun <T> put(key: String, serializer: KSerializer<T>, obj: T)
Link copied to clipboard
open override fun remove(key: String)