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