MEMessageSecurityHandler

Trait MEMessageSecurityHandler 

Source
pub unsafe trait MEMessageSecurityHandler:
    MEMessageEncoder
    + MEMessageDecoder
    + MainThreadOnly {
    // Provided methods
    unsafe fn extensionViewControllerForMessageSigners(
        &self,
        message_signers: &NSArray<MEMessageSigner>,
    ) -> Option<Retained<MEExtensionViewController>>
       where Self: Sized + Message { ... }
    unsafe fn extensionViewControllerForMessageContext(
        &self,
        context: &NSData,
    ) -> Option<Retained<MEExtensionViewController>>
       where Self: Sized + Message { ... }
    unsafe fn primaryActionClickedForMessageContext_completionHandler(
        &self,
        context: &NSData,
        completion_handler: &DynBlock<dyn Fn(*mut MEExtensionViewController)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate features MEMessageDecoder and MEMessageEncoder and MEMessageSecurityHandler only.
Expand description

Provided Methods§

Source

unsafe fn extensionViewControllerForMessageSigners( &self, message_signers: &NSArray<MEMessageSigner>, ) -> Option<Retained<MEExtensionViewController>>
where Self: Sized + Message,

Available on crate features MEExtensionViewController and MEMessageSigner and objc2-app-kit only.

Invoked by Mail to request a subclass of MEExtensionViewController.Extensions can maintain any additional state in their subclasses and associate it with messsageComposeSessioninstance.

Source

unsafe fn extensionViewControllerForMessageContext( &self, context: &NSData, ) -> Option<Retained<MEExtensionViewController>>
where Self: Sized + Message,

Available on crate features MEExtensionViewController and objc2-app-kit only.

Invoked by Mail to request a subclass of MEExtensionViewControllerwhen the user clicks a banner or on the extensions icon in the message header view.

Source

unsafe fn primaryActionClickedForMessageContext_completionHandler( &self, context: &NSData, completion_handler: &DynBlock<dyn Fn(*mut MEExtensionViewController)>, )
where Self: Sized + Message,

Available on crate features MEExtensionViewController and block2 and objc2-app-kit only.

Invoked when the primary action for the message banner is clicked. The extension can provide an optional view controller to render any additional information.

Trait Implementations§

Source§

impl ProtocolType for dyn MEMessageSecurityHandler

Source§

const NAME: &'static str = "MEMessageSecurityHandler"

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 MEMessageSecurityHandler

Implementations on Foreign Types§

Source§

impl<T> MEMessageSecurityHandler for ProtocolObject<T>

Implementors§