Icon TStorageChangeEvent

Unit: WebComps

TStorageChangeEvent = procedure (Sender: TObject; const Key:
      String; const NewValue: String; const OldValue: String; const
      URL: String) of object

Available In: Client and Server Applications

The TStorageChangeEvent event type is used by the TPersistentStorage OnChange event to indicate when the persistent local storage (but not the session-only local storage) is changed by another session in the host web browser.

The Key parameter indicates the key of the item that was updated. This parameter will be blank if the contents of the persistent local storage were removed using the ClearAll method.

The NewValue parameter indicates the value of the item that was updated. This parameter will be blank if the contents of the persistent local storage were removed using the ClearAll method, or if the item was removed using the Clear method.

const Key: String;
const NewValue: String; const OldValue: String;
const URL: String

The Request parameter indicates the server request that triggered the event, and the StatusCode property of the server request can be examined to determine if the request completed successfully.
Image