Trait objc2_mail_kit::MEComposeSessionHandler

source ·
pub unsafe trait MEComposeSessionHandler: NSObjectProtocol {
    // Provided methods
    unsafe fn mailComposeSessionDidBegin(&self, session: &MEComposeSession)
       where Self: Sized + Message { ... }
    unsafe fn mailComposeSessionDidEnd(&self, session: &MEComposeSession)
       where Self: Sized + Message { ... }
    unsafe fn viewControllerForSession(
        &self,
        session: &MEComposeSession,
        mtm: MainThreadMarker
    ) -> Retained<MEExtensionViewController>
       where Self: Sized + Message { ... }
    unsafe fn session_annotateAddressesWithCompletionHandler(
        &self,
        session: &MEComposeSession,
        completion_handler: &Block<dyn Fn(NonNull<NSDictionary<MEEmailAddress, MEAddressAnnotation>>)>
    )
       where Self: Sized + Message { ... }
    unsafe fn session_canSendMessageWithCompletionHandler(
        &self,
        session: &MEComposeSession,
        completion: &Block<dyn Fn(*mut NSError)>
    )
       where Self: Sized + Message { ... }
    unsafe fn additionalHeadersForSession(
        &self,
        session: &MEComposeSession
    ) -> Retained<NSDictionary<NSString, NSArray<NSString>>>
       where Self: Sized + Message { ... }
}
Available on crate feature MEComposeSession only.

Provided Methods§

source

unsafe fn mailComposeSessionDidBegin(&self, session: &MEComposeSession)
where Self: Sized + Message,

source

unsafe fn mailComposeSessionDidEnd(&self, session: &MEComposeSession)
where Self: Sized + Message,

source

unsafe fn viewControllerForSession( &self, session: &MEComposeSession, mtm: MainThreadMarker ) -> Retained<MEExtensionViewController>
where Self: Sized + Message,

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

unsafe fn session_annotateAddressesWithCompletionHandler( &self, session: &MEComposeSession, completion_handler: &Block<dyn Fn(NonNull<NSDictionary<MEEmailAddress, MEAddressAnnotation>>)> )
where Self: Sized + Message,

Available on crate features MEAddressAnnotation and MEEmailAddress and block2 only.
source

unsafe fn session_canSendMessageWithCompletionHandler( &self, session: &MEComposeSession, completion: &Block<dyn Fn(*mut NSError)> )
where Self: Sized + Message,

Available on crate feature block2 only.
source

unsafe fn additionalHeadersForSession( &self, session: &MEComposeSession ) -> Retained<NSDictionary<NSString, NSArray<NSString>>>
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn MEComposeSessionHandler

source§

const NAME: &'static str = "MEComposeSessionHandler"

The name of the Objective-C protocol that this type represents.
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 MEComposeSessionHandler

Implementations on Foreign Types§

source§

impl<T> MEComposeSessionHandler for ProtocolObject<T>

Implementors§