objc2_call_kit/generated/
CXSetMutedCallAction.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
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/callkit/cxsetmutedcallaction?language=objc)
12    #[unsafe(super(CXCallAction, CXAction, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
15    pub struct CXSetMutedCallAction;
16);
17
18#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
19extern_conformance!(
20    unsafe impl NSCoding for CXSetMutedCallAction {}
21);
22
23#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
24extern_conformance!(
25    unsafe impl NSCopying for CXSetMutedCallAction {}
26);
27
28#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
29unsafe impl CopyingHelper for CXSetMutedCallAction {
30    type Result = Self;
31}
32
33#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
34extern_conformance!(
35    unsafe impl NSObjectProtocol for CXSetMutedCallAction {}
36);
37
38#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
39extern_conformance!(
40    unsafe impl NSSecureCoding for CXSetMutedCallAction {}
41);
42
43#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
44impl CXSetMutedCallAction {
45    extern_methods!(
46        #[unsafe(method(initWithCallUUID:muted:))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn initWithCallUUID_muted(
49            this: Allocated<Self>,
50            call_uuid: &NSUUID,
51            muted: bool,
52        ) -> Retained<Self>;
53
54        /// # Safety
55        ///
56        /// `a_decoder` possibly has further requirements.
57        #[unsafe(method(initWithCoder:))]
58        #[unsafe(method_family = init)]
59        pub unsafe fn initWithCoder(
60            this: Allocated<Self>,
61            a_decoder: &NSCoder,
62        ) -> Option<Retained<Self>>;
63
64        #[unsafe(method(initWithCallUUID:))]
65        #[unsafe(method_family = init)]
66        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
67            -> Retained<Self>;
68
69        #[unsafe(method(isMuted))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn isMuted(&self) -> bool;
72
73        /// Setter for [`isMuted`][Self::isMuted].
74        #[unsafe(method(setMuted:))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn setMuted(&self, muted: bool);
77    );
78}
79
80/// Methods declared on superclass `CXCallAction`.
81#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
82impl CXSetMutedCallAction {
83    extern_methods!(
84        #[unsafe(method(init))]
85        #[unsafe(method_family = init)]
86        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
87    );
88}
89
90/// Methods declared on superclass `NSObject`.
91#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
92impl CXSetMutedCallAction {
93    extern_methods!(
94        #[unsafe(method(new))]
95        #[unsafe(method_family = new)]
96        pub unsafe fn new() -> Retained<Self>;
97    );
98}