icrate/generated/CallKit/
CXSetMutedCallAction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::CallKit::*;
5use crate::Foundation::*;
6
7extern_class!(
8    #[derive(Debug, PartialEq, Eq, Hash)]
9    #[cfg(feature = "CallKit_CXSetMutedCallAction")]
10    pub struct CXSetMutedCallAction;
11
12    #[cfg(feature = "CallKit_CXSetMutedCallAction")]
13    unsafe impl ClassType for CXSetMutedCallAction {
14        #[inherits(CXAction, NSObject)]
15        type Super = CXCallAction;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "CallKit_CXSetMutedCallAction")]
21unsafe impl NSCoding for CXSetMutedCallAction {}
22
23#[cfg(feature = "CallKit_CXSetMutedCallAction")]
24unsafe impl NSCopying for CXSetMutedCallAction {}
25
26#[cfg(feature = "CallKit_CXSetMutedCallAction")]
27unsafe impl NSObjectProtocol for CXSetMutedCallAction {}
28
29#[cfg(feature = "CallKit_CXSetMutedCallAction")]
30unsafe impl NSSecureCoding for CXSetMutedCallAction {}
31
32extern_methods!(
33    #[cfg(feature = "CallKit_CXSetMutedCallAction")]
34    unsafe impl CXSetMutedCallAction {
35        #[cfg(feature = "Foundation_NSUUID")]
36        #[method_id(@__retain_semantics Init initWithCallUUID:muted:)]
37        pub unsafe fn initWithCallUUID_muted(
38            this: Allocated<Self>,
39            call_uuid: &NSUUID,
40            muted: bool,
41        ) -> Id<Self>;
42
43        #[cfg(feature = "Foundation_NSCoder")]
44        #[method_id(@__retain_semantics Init initWithCoder:)]
45        pub unsafe fn initWithCoder(this: Allocated<Self>, a_decoder: &NSCoder)
46            -> Option<Id<Self>>;
47
48        #[cfg(feature = "Foundation_NSUUID")]
49        #[method_id(@__retain_semantics Init initWithCallUUID:)]
50        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID) -> Id<Self>;
51
52        #[method(isMuted)]
53        pub unsafe fn isMuted(&self) -> bool;
54
55        #[method(setMuted:)]
56        pub unsafe fn setMuted(&self, muted: bool);
57    }
58);
59
60extern_methods!(
61    /// Methods declared on superclass `CXCallAction`
62    #[cfg(feature = "CallKit_CXSetMutedCallAction")]
63    unsafe impl CXSetMutedCallAction {
64        #[method_id(@__retain_semantics Init init)]
65        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
66    }
67);
68
69extern_methods!(
70    /// Methods declared on superclass `NSObject`
71    #[cfg(feature = "CallKit_CXSetMutedCallAction")]
72    unsafe impl CXSetMutedCallAction {
73        #[method_id(@__retain_semantics New new)]
74        pub unsafe fn new() -> Id<Self>;
75    }
76);