reloadContentBlocker(withIdentifier:completionHandler:)
Tells Safari to reload the specified extension’s content-blocking rules.
Declaration
class func reloadContentBlocker(withIdentifier identifier: String, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)class func reloadContentBlocker(withIdentifier identifier: String) async throwsParameters
- identifier:
The bundle identifier of your content blocker extension.
- completionHandler:
The code to run after the content-blocking rules are reloaded.
Discussion
Call this method when your extension’s content-blocking rules change.