Type Method

showPreferencesForExtension(withIdentifier:completionHandler:)

Launches Safari and opens the preferences panel for a Safari app extension.

Declaration

class func showPreferencesForExtension(withIdentifier identifier: String, completionHandler: ((Error?) -> Void)? = nil)

Parameters

identifier

The identifier for a Safari app extension in your app bundle.

completionHandler

A completion handler called after the operation completes. The completion handler takes the following parameter:

error

If an error occurred, this parameter describes the error. If the operation succeeded, this parameter holds nil.

See Also

Working with Windows

class func getActiveWindow(completionHandler: (SFSafariWindow?) -> Void)

Calls the completion handler with the active browser window.