Class

SafariExtensionCompanion

A SafariExtensionCompanion object is an app extension for your macOS app that receives and responds to secure messages from your Safari extension. Sending a message to a Safari extension companion is similar to sending a message to an injected script; simply call the dispatchMessage method on the extension companion object. See Communicating with your OS X App for more information on extension companions.

Declaration

interface SafariExtensionCompanion

Topics

Sending Messages Between Safari and Your App

dispatchMessage

Sends messages securely between your Safari extension and the extension companion for your app.

Relationships

Inherits From