objc2_core_audio_kit/generated/
CAInterDeviceAudioViewController.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-app-kit")]
6#[cfg(target_os = "macos")]
7use objc2_app_kit::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// A view controller object that manages a view displaying iOS devices that are connected to the Mac and support inter-device audio. The user can select one of those peripherals and connect it to their mac. This class is only available in 64-bit runtimes.
14    ///
15    ///
16    /// To use this class, create an instance of the CAInterDeviceAudioController, get the view and add it as a subview of a NSWindow.
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreaudiokit/cainterdeviceaudioviewcontroller?language=objc)
19    #[unsafe(super(NSViewController, NSResponder, NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    #[cfg(feature = "objc2-app-kit")]
22    #[cfg(target_os = "macos")]
23    pub struct CAInterDeviceAudioViewController;
24);
25
26#[cfg(feature = "objc2-app-kit")]
27#[cfg(target_os = "macos")]
28extern_conformance!(
29    unsafe impl NSCoding for CAInterDeviceAudioViewController {}
30);
31
32#[cfg(feature = "objc2-app-kit")]
33#[cfg(target_os = "macos")]
34extern_conformance!(
35    unsafe impl NSEditor for CAInterDeviceAudioViewController {}
36);
37
38#[cfg(feature = "objc2-app-kit")]
39#[cfg(target_os = "macos")]
40extern_conformance!(
41    unsafe impl NSObjectProtocol for CAInterDeviceAudioViewController {}
42);
43
44#[cfg(feature = "objc2-app-kit")]
45#[cfg(target_os = "macos")]
46extern_conformance!(
47    unsafe impl NSSeguePerforming for CAInterDeviceAudioViewController {}
48);
49
50#[cfg(feature = "objc2-app-kit")]
51#[cfg(target_os = "macos")]
52extern_conformance!(
53    unsafe impl NSUserInterfaceItemIdentification for CAInterDeviceAudioViewController {}
54);
55
56#[cfg(feature = "objc2-app-kit")]
57#[cfg(target_os = "macos")]
58impl CAInterDeviceAudioViewController {
59    extern_methods!();
60}
61
62/// Methods declared on superclass `NSViewController`.
63#[cfg(feature = "objc2-app-kit")]
64#[cfg(target_os = "macos")]
65impl CAInterDeviceAudioViewController {
66    extern_methods!(
67        #[unsafe(method(initWithNibName:bundle:))]
68        #[unsafe(method_family = init)]
69        pub unsafe fn initWithNibName_bundle(
70            this: Allocated<Self>,
71            nib_name_or_nil: Option<&NSNibName>,
72            nib_bundle_or_nil: Option<&NSBundle>,
73        ) -> Retained<Self>;
74
75        /// # Safety
76        ///
77        /// `coder` possibly has further requirements.
78        #[unsafe(method(initWithCoder:))]
79        #[unsafe(method_family = init)]
80        pub unsafe fn initWithCoder(
81            this: Allocated<Self>,
82            coder: &NSCoder,
83        ) -> Option<Retained<Self>>;
84    );
85}
86
87/// Methods declared on superclass `NSResponder`.
88#[cfg(feature = "objc2-app-kit")]
89#[cfg(target_os = "macos")]
90impl CAInterDeviceAudioViewController {
91    extern_methods!(
92        #[unsafe(method(init))]
93        #[unsafe(method_family = init)]
94        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
95    );
96}
97
98/// Methods declared on superclass `NSObject`.
99#[cfg(feature = "objc2-app-kit")]
100#[cfg(target_os = "macos")]
101impl CAInterDeviceAudioViewController {
102    extern_methods!(
103        #[unsafe(method(new))]
104        #[unsafe(method_family = new)]
105        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
106    );
107}