MEContentBlocker
An object that provides a set of rules to block content when displaying a message.
Declaration
protocol MEContentBlocker : NSObjectProtocolOverview
A mail content blocker is similar to content blockers for Safari. Mail uses content blockers when it displays message content in a user’s mailbox. If your extension’s Info.plist file contains MEContentBlocker in the list of MEExtensionCapabilities, MailKit invokes handlerForContentBlocker() to get the object that provides content-blocking rules. The handler returns the content-blocking rules as JSON data from the contentRulesJSON() method.
For more information about content blockers, see Creating a content blocker.
To indicate that your extension contains a content blocker, add MEContentBlocker to the MEExtensionCapabilities array in the extension’s Info.plist file:
<key>NSExtensionAttributes</key>
<dict>
<key>MEExtensionCapabilities</key>
<array>
<string>MEContentBlocker</string>
</array>
</dict>