objc2_ui_kit/generated/
UISceneSystemProtectionManager.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 pub static UISceneSystemProtectionDidChangeNotification: &'static NSNotificationName;
15}
16
17extern_class!(
18 #[unsafe(super(NSObject))]
20 #[thread_kind = MainThreadOnly]
21 #[derive(Debug, PartialEq, Eq, Hash)]
22 pub struct UISceneSystemProtectionManager;
23);
24
25unsafe impl NSObjectProtocol for UISceneSystemProtectionManager {}
26
27impl UISceneSystemProtectionManager {
28 extern_methods!(
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[unsafe(method(new))]
34 #[unsafe(method_family = new)]
35 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
36
37 #[unsafe(method(isUserAuthenticationEnabled))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn isUserAuthenticationEnabled(&self) -> bool;
46 );
47}
48
49#[cfg(all(feature = "UIResponder", feature = "UIScene"))]
51impl UIScene {
52 extern_methods!(
53 #[unsafe(method(systemProtectionManager))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn systemProtectionManager(
56 &self,
57 ) -> Option<Retained<UISceneSystemProtectionManager>>;
58 );
59}