Type Method

reloadContentBlockerWithIdentifier:completionHandler:

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

Declaration

+ (void)reloadContentBlockerWithIdentifier:(NSString *)identifier completionHandler:(void (^)(NSError *error))completionHandler;

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.