objc2_ui_kit/generated/
UIWindowSceneActivationInteraction.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12#[cfg(all(
22 feature = "UIWindowSceneActivationConfiguration",
23 feature = "block2",
24 feature = "objc2-core-foundation"
25))]
26pub type UIWindowSceneActivationInteractionConfigurationProvider = *mut block2::DynBlock<
27 dyn Fn(
28 NonNull<UIWindowSceneActivationInteraction>,
29 CGPoint,
30 ) -> *mut UIWindowSceneActivationConfiguration,
31>;
32
33extern_class!(
34 #[unsafe(super(NSObject))]
39 #[thread_kind = MainThreadOnly]
40 #[derive(Debug, PartialEq, Eq, Hash)]
41 pub struct UIWindowSceneActivationInteraction;
42);
43
44extern_conformance!(
45 unsafe impl NSObjectProtocol for UIWindowSceneActivationInteraction {}
46);
47
48#[cfg(feature = "UIInteraction")]
49extern_conformance!(
50 unsafe impl UIInteraction for UIWindowSceneActivationInteraction {}
51);
52
53impl UIWindowSceneActivationInteraction {
54 extern_methods!(
55 #[cfg(all(
56 feature = "UIWindowSceneActivationConfiguration",
57 feature = "block2",
58 feature = "objc2-core-foundation"
59 ))]
60 #[unsafe(method(initWithConfigurationProvider:errorHandler:))]
72 #[unsafe(method_family = init)]
73 pub unsafe fn initWithConfigurationProvider_errorHandler(
74 this: Allocated<Self>,
75 configuration_provider: UIWindowSceneActivationInteractionConfigurationProvider,
76 error_handler: &block2::DynBlock<dyn Fn(NonNull<NSError>)>,
77 ) -> Retained<Self>;
78
79 #[unsafe(method(init))]
80 #[unsafe(method_family = init)]
81 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
82
83 #[unsafe(method(new))]
84 #[unsafe(method_family = new)]
85 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
86 );
87}