public final class StorageEvent extends JavaScriptObject
Experimental API: This API is still under development and is subject to change.
A Storage Event is fired when a storage area changes, as described in these two sections (for session storage, for local storage).
Modifier and Type | Class and Description |
---|---|
static interface |
StorageEvent.Handler
Represents an Event handler for
StorageEvent s. |
Modifier | Constructor and Description |
---|---|
protected |
StorageEvent() |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns the key being changed.
|
String |
getNewValue()
Returns the new value of the key being changed.
|
String |
getOldValue()
Returns the old value of the key being changed.
|
Storage |
getStorageArea()
Returns the
Storage object that was affected. |
String |
getUrl()
Returns the address of the document whose key changed.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public String getKey()
public String getNewValue()
public String getOldValue()
public Storage getStorageArea()
Storage
object that was affected.Storage
object that was affectedpublic String getUrl()
Copyright © 2018. All rights reserved.