Storage

interface Storage

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun clearAll()
Link copied to clipboard
abstract suspend fun <T : Any> clearEntities(clazz: KClass<T>)
Link copied to clipboard
abstract suspend fun clearScope(scope: String)
Link copied to clipboard
abstract suspend fun contains(scope: String, key: String): Boolean
Link copied to clipboard
abstract suspend fun getBoolean(scope: String, key: String, defaultValue: Boolean = false): Boolean
Link copied to clipboard
abstract suspend fun getDouble(scope: String, key: String, defaultValue: Double = 0.0): Double
Link copied to clipboard
abstract suspend fun <T : Any> getEntity(clazz: KClass<T>, id: String): T?
Link copied to clipboard
abstract suspend fun getFloat(scope: String, key: String, defaultValue: Float = 0.0f): Float
Link copied to clipboard
abstract suspend fun getInt(scope: String, key: String, defaultValue: Int = 0): Int
Link copied to clipboard
abstract suspend fun getLong(scope: String, key: String, defaultValue: Long = 0): Long
Link copied to clipboard
abstract suspend fun getSnapshot(scope: String): Snapshot
Link copied to clipboard
abstract suspend fun getString(scope: String, key: String, defaultValue: String = ""): String
Link copied to clipboard
abstract fun observe(scope: String): ERROR CLASS: Symbol not found for Flow<net/zagart/storage/Snapshot>
abstract fun observe(scope: String, block: ObservationBuilder.() -> Unit): ERROR CLASS: Symbol not found for Flow<net/zagart/storage/Snapshot>
abstract fun observe(scope: String, keys: Set<Observable>): ERROR CLASS: Symbol not found for Flow<net/zagart/storage/Snapshot>
Link copied to clipboard
abstract fun observeAll(): ERROR CLASS: Symbol not found for Flow<kotlin/collections/Map<kotlin/String, net/zagart/storage/Snapshot>>
Link copied to clipboard
abstract fun <T : Any> observeEntities(clazz: KClass<T>): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<T>>
Link copied to clipboard
abstract fun <T : Any> observeEntity(clazz: KClass<T>, id: String): ERROR CLASS: Symbol not found for Flow<T?>
Link copied to clipboard
abstract suspend fun putBoolean(scope: String, key: String, value: Boolean)
Link copied to clipboard
abstract suspend fun putDouble(scope: String, key: String, value: Double)
Link copied to clipboard
abstract suspend fun <T : Any> putEntity(entity: T)
Link copied to clipboard
abstract suspend fun putFloat(scope: String, key: String, value: Float)
Link copied to clipboard
abstract suspend fun putInt(scope: String, key: String, value: Int)
Link copied to clipboard
abstract suspend fun putLong(scope: String, key: String, value: Long)
Link copied to clipboard
abstract suspend fun putString(scope: String, key: String, value: String)
Link copied to clipboard
abstract suspend fun remove(scope: String, key: String)
Link copied to clipboard
abstract suspend fun <T : Any> removeEntity(clazz: KClass<T>, id: String)