objc2_ui_kit/generated/
UIFocusSystem_UIKitAdditions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10/// Sound.
11#[cfg(feature = "UIFocusSystem")]
12impl UIFocusSystem {
13    extern_methods!(
14        #[cfg(feature = "UIFocus")]
15        /// Registers a sound file for a given identifier.
16        #[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/// UIFocusSystem.
27#[cfg(all(
28    feature = "UIResponder",
29    feature = "UIScene",
30    feature = "UIWindowScene"
31))]
32impl UIWindowScene {
33    extern_methods!(
34        #[cfg(feature = "UIFocusSystem")]
35        /// Returns the focus system that is responsible for this scene or nil if this scene does not support focus.
36        #[unsafe(method(focusSystem))]
37        #[unsafe(method_family = none)]
38        pub fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>;
39    );
40}