objc2_ui_kit/generated/
UIFocusSystem_UIKitAdditions.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[cfg(feature = "UIFocusSystem")]
12impl UIFocusSystem {
13 extern_methods!(
14 #[cfg(feature = "UIFocus")]
15 #[unsafe(method(registerURL:forSoundIdentifier:))]
17 #[unsafe(method_family = none)]
18 pub fn registerURL_forSoundIdentifier(
19 sound_file_url: &NSURL,
20 identifier: &UIFocusSoundIdentifier,
21 mtm: MainThreadMarker,
22 );
23 );
24}
25
26#[cfg(all(
28 feature = "UIResponder",
29 feature = "UIScene",
30 feature = "UIWindowScene"
31))]
32impl UIWindowScene {
33 extern_methods!(
34 #[cfg(feature = "UIFocusSystem")]
35 #[unsafe(method(focusSystem))]
37 #[unsafe(method_family = none)]
38 pub fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>;
39 );
40}