Safari Developer Library

Developer

Safari Extensions Reference

Introduction

Classes  

Safari extensions provide a way for you to add features to the Safari browser and extend the browsing experience. Extensions can add custom buttons to the Safari toolbar, create additional bars, add contextual menu items, display content, and inject scripts and style sheets into webpages.

Classes

SafariActivateEvent

Describes the event for indicating window and tab activation.

SafariApplication

Describes a class that allows a Safari extension to interact with the Safari application.

SafariAvailableEvent

Describes events used to indicate Safari Reader availability.

SafariBeforeNavigateEvent

Describes events sent before navigation takes place.

SafariBeforeSearchEvent

Describes an event that fires before the Unified toolbar takes action.

SafariBrowserTab

Describes a class that represent tabs in the Safari browser window.

SafariBrowserWindow

Describes a class that represents Safari browser windows.

SafariCloseEvent

Describes the event sent when a tab or window is closed.

SafariCommandEvent

Describes a class that represents events being used to send a command.

SafariContentBrowserTabProxy

Describes a class that is used as a proxy for a browser tab.

SafariContentExtension

Describes a class represents Safari extensions to injected scripts.

SafariContentNamespace

Describes a namespace class used by injected scripts to access to the Safari Extensions functionality.

SafariContentReader

Describes a class that allows injection into the Reader view.

SafariContentWebPage

New document that describes a class that represents a Safari web content area.

SafariDeactivateEvent

Describes events sent when a tab or window is deactivated.

SafariEvent

Describes a base class used to encapsulate Safari Extension events.

SafariEventTarget

New document that describes the base class for all objects that participate in the Safari Extensions event-dispatch hierarchy.

SafariExtension

Describes a class that represents a Safari Extension to scripts outside of the web content.

SafariExtensionBar

Describes a class that represents a bar provided by a Safari Extension.

SafariExtensionContextMenu

Describes a class the represents a contextual menu.

SafariExtensionContextMenuEvent

Describes a class used to notify listeners when a context menu is about to be displayed.

SafariExtensionContextMenuItem

Describes a class that represents contextual menu items.

SafariExtensionContextMenuItemCommandEvent

Describes a class used to send command events from a context menu item.

SafariExtensionContextMenuItemValidateEvent

Describes a class used to notify listeners when a context menu is about to be displayed.

SafariExtensionGlobalPage

Describes a class that represents the global page of a Safari Extension.

SafariExtensionMenu

Describes a class that represents a menu.

SafariExtensionMenuItem

Describes a class that represents a menu item.

SafariExtensionMessageEvent

Describes a class used to pass messages between injected scripts and the rest of the extension.

SafariExtensionPopover

Describes a class that represents a popover.

SafariExtensionSecureSettings

Describes a class used to store settings securely.

SafariExtensionSettings

Describes a class used to store extension settings.

SafariExtensionSettingsChangeEvent

Describes a class used to notify listeners when settings have been changed.

SafariExtensionToolbarItem

Describes a class that represents toolbar items.

SafariNamespace

Describes a namespace class used to access to the Safari Extensions functionality outside of injected scripts.

SafariNavigateEvent

Describes a class that represents events sent when navigating to a webpage.

SafariOpenEvent

Describes a class that represents events sent when opening a window or tab.

SafariPrivateBrowsing

Describes how to distinguish if the browser is running in private browsing mode.

SafariReader

New document that describes a class that represents a Reader.

SafariValidateEvent

Describes a class used to encapsulate a validate event.

SafariWebPageProxy

Describes a class that is used as a proxy for a webpage.