pureweb.client. SessionStorageChangedEventArgs

An event arguments class describing changes to session storage.

Method Summary

getChangeType
Returns the content of the "changeType" argument of the event object.
getKey
Returns the content of the "key" argument of the event object.
getNewValue
Returns the content of the "newValue" argument of the event object.
isDeletion
Returns a Boolean value that indicates whether the change was a deletion.
isSet
Returns a Boolean value that indicates whether the change was an set (insert or change).

Constructor

new SessionStorageChangedEventArgs(key, newValue, changeType)

Initializes a new instance of SessionStorageChangedEventArgs.
Parameters:
Name Type Argument Description
key string <nullable>
The key in session storage where the change occurred.
newValue string <nullable>
The value at the specified path after the change.
changeType pureweb.client.SessionStorageMessageType The type of change.

Method Detail

getChangeType() → {pureweb.client.SessionStorageMessageType}

Returns the content of the "changeType" argument of the event object.
This is the type of change, such as insertion or deletion.

getKey() → {string}

Returns the content of the "key" argument of the event object.
This is the key in the session storage that changed, triggering the event.

getNewValue() → {string}

Returns the content of the "newValue" argument of the event object.
This is the value of the element at the specified path, after the change occurred.

isDeletion() → {boolean}

Returns a Boolean value that indicates whether the change was a deletion.

isSet() → {boolean}

Returns a Boolean value that indicates whether the change was an set (insert or change).