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"))]
19unsafe impl NSCoding for CXSetMutedCallAction {}
20
21#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
22unsafe impl NSCopying for CXSetMutedCallAction {}
23
24#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
25unsafe impl CopyingHelper for CXSetMutedCallAction {
26    type Result = Self;
27}
28
29#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
30unsafe impl NSObjectProtocol for CXSetMutedCallAction {}
31
32#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
33unsafe impl NSSecureCoding for CXSetMutedCallAction {}
34
35#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
36impl CXSetMutedCallAction {
37    extern_methods!(
38        #[unsafe(method(initWithCallUUID:muted:))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn initWithCallUUID_muted(
41            this: Allocated<Self>,
42            call_uuid: &NSUUID,
43            muted: bool,
44        ) -> Retained<Self>;
45
46        #[unsafe(method(initWithCoder:))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn initWithCoder(
49            this: Allocated<Self>,
50            a_decoder: &NSCoder,
51        ) -> Option<Retained<Self>>;
52
53        #[unsafe(method(initWithCallUUID:))]
54        #[unsafe(method_family = init)]
55        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
56            -> Retained<Self>;
57
58        #[unsafe(method(isMuted))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn isMuted(&self) -> bool;
61
62        /// Setter for [`isMuted`][Self::isMuted].
63        #[unsafe(method(setMuted:))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn setMuted(&self, muted: bool);
66    );
67}
68
69/// Methods declared on superclass `CXCallAction`.
70#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
71impl CXSetMutedCallAction {
72    extern_methods!(
73        #[unsafe(method(init))]
74        #[unsafe(method_family = init)]
75        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
76    );
77}
78
79/// Methods declared on superclass `NSObject`.
80#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
81impl CXSetMutedCallAction {
82    extern_methods!(
83        #[unsafe(method(new))]
84        #[unsafe(method_family = new)]
85        pub unsafe fn new() -> Retained<Self>;
86    );
87}