Storage

Functions

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