icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::MailKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MailKit_MEExtensionManager")]
    pub struct MEExtensionManager;

    #[cfg(feature = "MailKit_MEExtensionManager")]
    unsafe impl ClassType for MEExtensionManager {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "MailKit_MEExtensionManager")]
unsafe impl NSObjectProtocol for MEExtensionManager {}

extern_methods!(
    #[cfg(feature = "MailKit_MEExtensionManager")]
    unsafe impl MEExtensionManager {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[cfg(all(feature = "Foundation_NSError", feature = "Foundation_NSString"))]
        #[method(reloadContentBlockerWithIdentifier:completionHandler:)]
        pub unsafe fn reloadContentBlockerWithIdentifier_completionHandler(
            identifier: &NSString,
            completion_handler: Option<&Block<(*mut NSError,), ()>>,
        );

        #[cfg(feature = "Foundation_NSError")]
        #[method(reloadVisibleMessagesWithCompletionHandler:)]
        pub unsafe fn reloadVisibleMessagesWithCompletionHandler(
            completion_handler: Option<&Block<(*mut NSError,), ()>>,
        );
    }
);