objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

mod private_NSExtensionContextShareExtension {
    pub trait Sealed {}
}

/// Category "ShareExtension" on [`NSExtensionContext`].
#[doc(alias = "ShareExtension")]
pub unsafe trait NSExtensionContextShareExtension:
    ClassType + Sized + private_NSExtensionContextShareExtension::Sealed
{
    extern_methods!(
        #[cfg(feature = "INIntent")]
        #[unsafe(method(intent))]
        #[unsafe(method_family = none)]
        unsafe fn intent(&self) -> Option<Retained<INIntent>>;
    );
}

impl private_NSExtensionContextShareExtension::Sealed for NSExtensionContext {}
unsafe impl NSExtensionContextShareExtension for NSExtensionContext {}