---
title: handlerForContentBlocker()
framework: mailkit
role: symbol
role_heading: Instance Method
path: mailkit/meextension/handlerforcontentblocker()
---

# handlerForContentBlocker()

Returns an object that provides rules that the message viewer uses to block content.

## Declaration

```swift
optional func handlerForContentBlocker() -> any MEContentBlocker
```

## Return Value

Return Value An object that provides rules for blocking content.
