objc2_ui_kit/generated/
UISceneDestructionCondition.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[thread_kind = MainThreadOnly]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 pub struct UISceneDestructionCondition;
17);
18
19extern_conformance!(
20 unsafe impl NSCopying for UISceneDestructionCondition {}
21);
22
23unsafe impl CopyingHelper for UISceneDestructionCondition {
24 type Result = Self;
25}
26
27extern_conformance!(
28 unsafe impl NSObjectProtocol for UISceneDestructionCondition {}
29);
30
31impl UISceneDestructionCondition {
32 extern_methods!(
33 #[unsafe(method(userInitiatedDismissal))]
36 #[unsafe(method_family = none)]
37 pub fn userInitiatedDismissal(mtm: MainThreadMarker) -> Retained<Self>;
38
39 #[unsafe(method(systemDisconnection))]
42 #[unsafe(method_family = none)]
43 pub fn systemDisconnection(mtm: MainThreadMarker) -> Retained<Self>;
44
45 #[unsafe(method(init))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49 #[unsafe(method(new))]
50 #[unsafe(method_family = new)]
51 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
52 );
53}