Class

SFSafariPage

A proxy for a Safari webpage.

Overview

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

Topics

Messaging Injected Scripts

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

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.

Relationships

Inherits From

Conforms To

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 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.