Storage

abstract external class Storage

Exposes the JavaScript Storage to Kotlin

Constructors

Link copied to clipboard
fun Storage()

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun getItem(key: String): String?
Link copied to clipboard
fun key(index: Int): String?
Link copied to clipboard
fun removeItem(key: String)
Link copied to clipboard
fun setItem(key: String, value: String)

Properties

Link copied to clipboard
open val length: Int

Extensions

Link copied to clipboard
inline operator fun Storage.get(key: String): String?
Link copied to clipboard
inline operator fun Storage.set(key: String, value: String)