NativeStorage

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

Constructors

Link copied to clipboard
actual constructor(views: Views)
expect constructor(views: Views)
actual constructor(views: Views)
actual constructor(views: Views)
actual constructor(views: Views)

Properties

Link copied to clipboard
val file: File
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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
actual open override fun getOrNull(key: String): String?
expect open override fun getOrNull(key: String): String?
open override fun getOrNull(key: String): String?
open override fun getOrNull(key: String): String?
actual open override fun getOrNull(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
actual open override fun keys(): List<String>
expect open override fun keys(): List<String>
open override fun keys(): List<String>
open override fun keys(): List<String>
actual open override fun keys(): List<String>
Link copied to clipboard
actual open override fun remove(key: String)
expect open override fun remove(key: String)
open override fun remove(key: String)
open override fun remove(key: String)
actual open override fun remove(key: String)
Link copied to clipboard
actual open override fun removeAll()
expect open override fun removeAll()
open override fun removeAll()
open override fun removeAll()
actual open override fun removeAll()
Link copied to clipboard
actual open operator override fun set(key: String, value: String)
expect open operator override fun set(key: String, value: String)
open operator override fun set(key: String, value: String)
open operator override fun set(key: String, value: String)
actual open operator override fun set(key: String, value: String)
Link copied to clipboard
open fun toMap(): Map<String, String?>
open fun toMap(): Map<String, String?>
open override fun toMap(): Map<String, String?>
open override fun toMap(): Map<String, String?>
open fun toMap(): Map<String, String?>
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String