A proxy for a Safari webpage.


class SFSafariPage : NSObject


Use an SFSafariPage object in your Safari app extension to send messages to injected content scripts, access page properties, and reload the page.


Messaging Injected Scripts

func dispatchMessageToScript(withName: String, userInfo: [String : Any]?)

Dispatches a message from the app extension to the content script injected in this page.

Getting Page Information

Reloading the Page

func reload()

Tells Safari to reload the webpage.


Inherits From

See Also

Safari App Extensions

Safari App Extensions

Learn how Safari app extensions extend the web-browsing experience in Safari by leveraging web technologies and native code.

class SFSafariExtension

A proxy for the Safari extension.

class SFSafariApplication

A proxy for the Safari app.

class SFSafariWindow

A proxy for a Safari window.

class SFSafariTab

A proxy for a tab in a Safari window.