MEContentBlocker

Trait MEContentBlocker 

Source
pub unsafe trait MEContentBlocker: NSObjectProtocol {
    // Provided method
    unsafe fn contentRulesJSON(&self) -> Retained<NSData>
       where Self: Sized + Message { ... }
}
Available on crate feature MEContentBlocker only.
Expand description

Methods in this protocol can be used by a mail app extension to block content in mail messages.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn contentRulesJSON(&self) -> Retained<NSData>
where Self: Sized + Message,

This is invoked when Mail configures its WKWebViewConfigurationor if the extension is enabled. The returned data should contain UTF8 encoded String data with the filter list.

Trait Implementations§

Source§

impl ProtocolType for dyn MEContentBlocker

Source§

const NAME: &'static str = "MEContentBlocker"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MEContentBlocker

Implementations on Foreign Types§

Source§

impl<T> MEContentBlocker for ProtocolObject<T>
where T: ?Sized + MEContentBlocker,

Implementors§