objc2_call_kit/generated/
CXSetHeldCallAction.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(CXCallAction, CXAction, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
15 pub struct CXSetHeldCallAction;
16);
17
18#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
19extern_conformance!(
20 unsafe impl NSCoding for CXSetHeldCallAction {}
21);
22
23#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
24extern_conformance!(
25 unsafe impl NSCopying for CXSetHeldCallAction {}
26);
27
28#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
29unsafe impl CopyingHelper for CXSetHeldCallAction {
30 type Result = Self;
31}
32
33#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for CXSetHeldCallAction {}
36);
37
38#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
39extern_conformance!(
40 unsafe impl NSSecureCoding for CXSetHeldCallAction {}
41);
42
43#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
44impl CXSetHeldCallAction {
45 extern_methods!(
46 #[unsafe(method(initWithCallUUID:onHold:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithCallUUID_onHold(
49 this: Allocated<Self>,
50 call_uuid: &NSUUID,
51 on_hold: bool,
52 ) -> Retained<Self>;
53
54 #[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(isOnHold))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn isOnHold(&self) -> bool;
72
73 #[unsafe(method(setOnHold:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn setOnHold(&self, on_hold: bool);
77 );
78}
79
80#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
82impl CXSetHeldCallAction {
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#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
92impl CXSetHeldCallAction {
93 extern_methods!(
94 #[unsafe(method(new))]
95 #[unsafe(method_family = new)]
96 pub unsafe fn new() -> Retained<Self>;
97 );
98}