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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software