A proxy for a Safari window.


class SFSafariWindow : NSObject


Working with Tabs

func getActiveTab(completionHandler: (SFSafariTab?) -> Void)

Calls the completion handler with the active tab in the target window.

Getting the Toolbar Item

func getToolbarItem(completionHandler: (SFSafariToolbarItem?) -> Void)

Gets the extension’s toolbar item from the target window.


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 SFSafariPage

A proxy for a Safari webpage.

class SFSafariTab

A proxy for a tab in a Safari window.