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"))]
19unsafe impl NSCoding for CXSetHeldCallAction {}
20
21#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
22unsafe impl NSCopying for CXSetHeldCallAction {}
23
24#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
25unsafe impl CopyingHelper for CXSetHeldCallAction {
26 type Result = Self;
27}
28
29#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
30unsafe impl NSObjectProtocol for CXSetHeldCallAction {}
31
32#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
33unsafe impl NSSecureCoding for CXSetHeldCallAction {}
34
35#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
36impl CXSetHeldCallAction {
37 extern_methods!(
38 #[unsafe(method(initWithCallUUID:onHold:))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn initWithCallUUID_onHold(
41 this: Allocated<Self>,
42 call_uuid: &NSUUID,
43 on_hold: 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(isOnHold))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn isOnHold(&self) -> bool;
61
62 #[unsafe(method(setOnHold:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn setOnHold(&self, on_hold: bool);
66 );
67}
68
69#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
71impl CXSetHeldCallAction {
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#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
81impl CXSetHeldCallAction {
82 extern_methods!(
83 #[unsafe(method(new))]
84 #[unsafe(method_family = new)]
85 pub unsafe fn new() -> Retained<Self>;
86 );
87}