Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class FiledBasedNativeStorage(val views: Views) : IStorageWithKeys
Link copied to clipboard
Link copied to clipboard
interface IStorage

Defines a way of synchronously set and get persistent small values

Link copied to clipboard
interface IStorageKey<T>
Link copied to clipboard
Link copied to clipboard
actual class NativeStorage(val views: Views) : IStorageWithKeys
expect class NativeStorage(views: Views) : IStorageWithKeys

Cross-platform way of synchronously storing small data

actual class NativeStorage(views: Views) : IStorageWithKeys
actual class NativeStorage(views: Views) : IStorageWithKeys
actual class NativeStorage(val views: Views) : IStorageWithKeys
Link copied to clipboard
Link copied to clipboard
class StorageKey<T>(val storage: IStorage, val key: String, val serialize: (T) -> String, val deserialize: (String?) -> T) : IStorageKey<T>

Properties

Functions

Link copied to clipboard
operator fun IStorage.contains(key: String): Boolean
Link copied to clipboard
operator fun IStorage.get(key: String): String
Link copied to clipboard
fun <T> IStorage.item(key: String, serialize: (T) -> String, deserialize: (String?) -> T): StorageKey<T>
Link copied to clipboard
fun IStorage.itemBool(key: String, default: Boolean = false): StorageKey<Boolean>
Link copied to clipboard
fun IStorage.itemDouble(key: String, default: Double = 0.0): StorageKey<Double>
Link copied to clipboard
fun IStorage.itemInt(key: String, default: Int = 0): StorageKey<Int>
Link copied to clipboard
fun IStorage.itemString(key: String, default: String = ""): StorageKey<String>
Link copied to clipboard