Storage

abstract external class Storage(source)

Exposes the JavaScript Storage to Kotlin

Since Kotlin

1.1

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val length: Int
Since Kotlin 1.1

Functions

Link copied to clipboard
fun clear()
Since Kotlin 1.1
Link copied to clipboard
inline operator fun Storage.get(key: String): String?
Since Kotlin 1.1
Link copied to clipboard
fun getItem(key: String): String?
Since Kotlin 1.1
Link copied to clipboard
fun key(index: Int): String?
Since Kotlin 1.1
Link copied to clipboard
fun removeItem(key: String)
Since Kotlin 1.1
Link copied to clipboard
inline operator fun Storage.set(key: String, value: String)
Since Kotlin 1.1
Link copied to clipboard
fun setItem(key: String, value: String)
Since Kotlin 1.1