objc2_ui_kit/generated/
UNNotificationResponse_UIKitAdditions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4#[cfg(feature = "objc2-user-notifications")]
5use objc2_user_notifications::*;
6
7use crate::*;
8
9mod private_UNNotificationResponseUIKitAdditions {
10    pub trait Sealed {}
11}
12
13/// Category "UIKitAdditions" on [`UNNotificationResponse`].
14#[doc(alias = "UIKitAdditions")]
15pub unsafe trait UNNotificationResponseUIKitAdditions:
16    ClassType + Sized + private_UNNotificationResponseUIKitAdditions::Sealed
17{
18    extern_methods!(
19        #[cfg(all(feature = "UIResponder", feature = "UIScene"))]
20        #[unsafe(method(targetScene))]
21        #[unsafe(method_family = none)]
22        unsafe fn targetScene(&self, mtm: MainThreadMarker) -> Option<Retained<UIScene>>;
23    );
24}
25
26#[cfg(feature = "objc2-user-notifications")]
27impl private_UNNotificationResponseUIKitAdditions::Sealed for UNNotificationResponse {}
28#[cfg(feature = "objc2-user-notifications")]
29unsafe impl UNNotificationResponseUIKitAdditions for UNNotificationResponse {}