Type Method

reloadContentBlocker(withIdentifier:completionHandler:)

Tells Safari to reload the specified extension’s content-blocking rules.

Declaration

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

Parameters

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.