Safari Developer Library

Developer

SafariExtensionSettingsChangeEvent Class Reference

Options
Deployment Target:

On This Page

SafariExtensionSettingsChangeEvent

Instances of the SafariExtensionsSettingsChangeEvent class are used to provide a description of a change made to the extension’s settings. A settings change event is sent when your extension changes a setting as well as when a setting is changed outside your extension (for example, a setting changed in the Safari preferences). More...

Inheritance


Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

Availability


Available in Safari 5.0 and later.
  • key Property

    The key identifier of the setting that was changed.

    Declaration

    JavaScript

    readonly attribute DOMString key

    Discussion

    If all of the settings have been removed, this value is null.

    Availability

    Available in Safari 5.0 and later.

  • newValue Property

    The value after the settings change.

    Declaration

    JavaScript

    readonly attribute any newValue

    Discussion

    If the key was removed or all settings have been removed, this value is null.

    Availability

    Available in Safari 5.0 and later.

  • oldValue Property

    The value before the settings change.

    Declaration

    JavaScript

    readonly attribute any oldValue

    Discussion

    If the key was added or all settings have been removed, this value is null.

    Availability

    Available in Safari 5.0 and later.