icrate 0.0.1

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::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSExtensionContext;

    unsafe impl ClassType for NSExtensionContext {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSExtensionContext {
        #[method_id(@__retain_semantics Other inputItems)]
        pub unsafe fn inputItems(&self) -> Id<NSArray, Shared>;

        #[method(completeRequestReturningItems:completionHandler:)]
        pub unsafe fn completeRequestReturningItems_completionHandler(
            &self,
            items: Option<&NSArray>,
            completionHandler: Option<&Block<(Bool,), ()>>,
        );

        #[method(cancelRequestWithError:)]
        pub unsafe fn cancelRequestWithError(&self, error: &NSError);

        #[method(openURL:completionHandler:)]
        pub unsafe fn openURL_completionHandler(
            &self,
            URL: &NSURL,
            completionHandler: Option<&Block<(Bool,), ()>>,
        );
    }
);

extern_static!(NSExtensionItemsAndErrorsKey: Option<&'static NSString>);

extern_static!(NSExtensionHostWillEnterForegroundNotification: Option<&'static NSString>);

extern_static!(NSExtensionHostDidEnterBackgroundNotification: Option<&'static NSString>);

extern_static!(NSExtensionHostWillResignActiveNotification: Option<&'static NSString>);

extern_static!(NSExtensionHostDidBecomeActiveNotification: Option<&'static NSString>);