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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software