objc2_mail_kit/generated/
MEContentBlocker.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_protocol!(
10    /// Methods in this protocol can be used by a mail app extension to block content in mail messages.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/mailkit/mecontentblocker?language=objc)
13    pub unsafe trait MEContentBlocker: NSObjectProtocol {
14        /// This is invoked when Mail configures its
15        /// `WKWebViewConfiguration`or if the extension is enabled. The returned data should contain UTF8 encoded String data with the filter list.
16        #[unsafe(method(contentRulesJSON))]
17        #[unsafe(method_family = none)]
18        unsafe fn contentRulesJSON(&self) -> Retained<NSData>;
19    }
20);