#[cfg(feature = "block2")]
use block2::*;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MEExtensionManager;
unsafe impl ClassType for MEExtensionManager {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for MEExtensionManager {}
extern_methods!(
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(feature = "block2")]
#[method(reloadContentBlockerWithIdentifier:completionHandler:)]
pub unsafe fn reloadContentBlockerWithIdentifier_completionHandler(
identifier: &NSString,
completion_handler: Option<&Block<dyn Fn(*mut NSError)>>,
);
#[cfg(feature = "block2")]
#[method(reloadVisibleMessagesWithCompletionHandler:)]
pub unsafe fn reloadVisibleMessagesWithCompletionHandler(
completion_handler: Option<&Block<dyn Fn(*mut NSError)>>,
);
}
);