objc2_call_kit/generated/
CXStartCallAction.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 CXStartCallAction;
16);
17
18#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
19unsafe impl NSCoding for CXStartCallAction {}
20
21#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
22unsafe impl NSCopying for CXStartCallAction {}
23
24#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
25unsafe impl CopyingHelper for CXStartCallAction {
26 type Result = Self;
27}
28
29#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
30unsafe impl NSObjectProtocol for CXStartCallAction {}
31
32#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
33unsafe impl NSSecureCoding for CXStartCallAction {}
34
35#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
36impl CXStartCallAction {
37 extern_methods!(
38 #[cfg(feature = "CXHandle")]
39 #[unsafe(method(initWithCallUUID:handle:))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn initWithCallUUID_handle(
42 this: Allocated<Self>,
43 call_uuid: &NSUUID,
44 handle: &CXHandle,
45 ) -> Retained<Self>;
46
47 #[unsafe(method(initWithCoder:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithCoder(
50 this: Allocated<Self>,
51 a_decoder: &NSCoder,
52 ) -> Option<Retained<Self>>;
53
54 #[unsafe(method(initWithCallUUID:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
57 -> Retained<Self>;
58
59 #[cfg(feature = "CXHandle")]
60 #[unsafe(method(handle))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn handle(&self) -> Retained<CXHandle>;
64
65 #[cfg(feature = "CXHandle")]
66 #[unsafe(method(setHandle:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setHandle(&self, handle: &CXHandle);
70
71 #[unsafe(method(contactIdentifier))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn contactIdentifier(&self) -> Option<Retained<NSString>>;
74
75 #[unsafe(method(setContactIdentifier:))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn setContactIdentifier(&self, contact_identifier: Option<&NSString>);
79
80 #[unsafe(method(isVideo))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn isVideo(&self) -> bool;
83
84 #[unsafe(method(setVideo:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setVideo(&self, video: bool);
88
89 #[unsafe(method(fulfillWithDateStarted:))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn fulfillWithDateStarted(&self, date_started: &NSDate);
93 );
94}
95
96#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
98impl CXStartCallAction {
99 extern_methods!(
100 #[unsafe(method(init))]
101 #[unsafe(method_family = init)]
102 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
103 );
104}
105
106#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
108impl CXStartCallAction {
109 extern_methods!(
110 #[unsafe(method(new))]
111 #[unsafe(method_family = new)]
112 pub unsafe fn new() -> Retained<Self>;
113 );
114}