All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.web.storage.StorageEvent.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.storage

import web.events.Event
import web.events.EventInit
import web.url.URL

external interface StorageEventInit : EventInit {
    var key: String?
    var newValue: String?
    var oldValue: String?
    var storageArea: Storage?
    var url: String?
}

open external class StorageEvent(
    type: String,
    init: StorageEventInit = definedExternally,
) : Event {
    /** Returns the key of the storage item being changed. */
    val key: String?

    /** Returns the new value of the key of the storage item whose value is being changed. */
    val newValue: String?

    /** Returns the old value of the key of the storage item whose value is being changed. */
    val oldValue: String?

    /** Returns the Storage object that was affected. */
    val storageArea: Storage?

    /** Returns the URL of the document whose storage item changed. */
    val url: String
    fun initStorageEvent(
        type: String,
        bubbles: Boolean = definedExternally,
        cancelable: Boolean = definedExternally,
        key: String? = definedExternally,
        oldValue: String? = definedExternally,
        newValue: String? = definedExternally,
        url: URL,
        storageArea: Storage? = definedExternally,
    )

    companion object
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy