objc2_shared_with_you/generated/
SWRemoveParticipantAlert.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9#[cfg(feature = "objc2-shared-with-you-core")]
10use objc2_shared_with_you_core::*;
11
12use crate::*;
13
14extern_class!(
15    /// [Apple's documentation](https://developer.apple.com/documentation/sharedwithyou/swremoveparticipantalert?language=objc)
16    #[unsafe(super(NSObject))]
17    #[derive(Debug, PartialEq, Eq, Hash)]
18    pub struct SWRemoveParticipantAlert;
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for SWRemoveParticipantAlert {}
23);
24
25impl SWRemoveParticipantAlert {
26    extern_methods!(
27        #[cfg(all(
28            feature = "SWCollaborationHighlight",
29            feature = "SWHighlight",
30            feature = "objc2-app-kit",
31            feature = "objc2-shared-with-you-core"
32        ))]
33        #[cfg(target_os = "macos")]
34        #[unsafe(method(showAlertWithParticipant:highlight:inWindow:))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn showAlertWithParticipant_highlight_inWindow(
37            participant: &SWPerson,
38            highlight: &SWCollaborationHighlight,
39            window: Option<&NSWindow>,
40        );
41
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46        #[unsafe(method(new))]
47        #[unsafe(method_family = new)]
48        pub unsafe fn new() -> Retained<Self>;
49    );
50}