---
title: "reloadContentBlocker(withIdentifier:completionHandler:)"
framework: safariservices
role: symbol
role_heading: Type Method
path: "safariservices/sfcontentblockermanager/reloadcontentblocker(withidentifier:completionhandler:)"
---

# reloadContentBlocker(withIdentifier:completionHandler:)

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

## Declaration

```swift
class func reloadContentBlocker(withIdentifier identifier: String, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
```

```swift
class func reloadContentBlocker(withIdentifier identifier: String) async throws
```

## Parameters

- `identifier`: The bundle identifier of your content blocker extension.
- `completionHandler`: The code to run after the content-blocking rules are reloaded.

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: class func reloadContentBlocker(withIdentifier identifier: String) async throws For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously. Call this method when your extension’s content-blocking rules change.
