Contents

showPreferencesForExtension(withIdentifier:completionHandler:)

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

Declaration

class func showPreferencesForExtension(withIdentifier identifier: String, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
class func showPreferencesForExtension(withIdentifier identifier: String) async throws

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.

Discussion

See Also

Working with Windows