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"))]
19extern_conformance!(
20 unsafe impl NSCoding for CXStartCallAction {}
21);
22
23#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
24extern_conformance!(
25 unsafe impl NSCopying for CXStartCallAction {}
26);
27
28#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
29unsafe impl CopyingHelper for CXStartCallAction {
30 type Result = Self;
31}
32
33#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for CXStartCallAction {}
36);
37
38#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
39extern_conformance!(
40 unsafe impl NSSecureCoding for CXStartCallAction {}
41);
42
43#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
44impl CXStartCallAction {
45 extern_methods!(
46 #[cfg(feature = "CXHandle")]
47 #[unsafe(method(initWithCallUUID:handle:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithCallUUID_handle(
50 this: Allocated<Self>,
51 call_uuid: &NSUUID,
52 handle: &CXHandle,
53 ) -> Retained<Self>;
54
55 #[unsafe(method(initWithCoder:))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn initWithCoder(
61 this: Allocated<Self>,
62 a_decoder: &NSCoder,
63 ) -> Option<Retained<Self>>;
64
65 #[unsafe(method(initWithCallUUID:))]
66 #[unsafe(method_family = init)]
67 pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
68 -> Retained<Self>;
69
70 #[cfg(feature = "CXHandle")]
71 #[unsafe(method(handle))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn handle(&self) -> Retained<CXHandle>;
75
76 #[cfg(feature = "CXHandle")]
77 #[unsafe(method(setHandle:))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn setHandle(&self, handle: &CXHandle);
83
84 #[unsafe(method(contactIdentifier))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn contactIdentifier(&self) -> Option<Retained<NSString>>;
87
88 #[unsafe(method(setContactIdentifier:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn setContactIdentifier(&self, contact_identifier: Option<&NSString>);
94
95 #[unsafe(method(isVideo))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn isVideo(&self) -> bool;
98
99 #[unsafe(method(setVideo:))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn setVideo(&self, video: bool);
103
104 #[unsafe(method(fulfillWithDateStarted:))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn fulfillWithDateStarted(&self, date_started: &NSDate);
108 );
109}
110
111#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
113impl CXStartCallAction {
114 extern_methods!(
115 #[unsafe(method(init))]
116 #[unsafe(method_family = init)]
117 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
118 );
119}
120
121#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
123impl CXStartCallAction {
124 extern_methods!(
125 #[unsafe(method(new))]
126 #[unsafe(method_family = new)]
127 pub unsafe fn new() -> Retained<Self>;
128 );
129}