objc2_intents/generated/
INStartAudioCallIntent.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(INIntent, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "INIntent")]
15 #[deprecated = "INStartAudioCallIntent is deprecated. Please adopt INStartCallIntent instead"]
16 pub struct INStartAudioCallIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INStartAudioCallIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INStartAudioCallIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INStartAudioCallIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INStartAudioCallIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INStartAudioCallIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INStartAudioCallIntent {
46 extern_methods!(
47 #[cfg(all(feature = "INCallDestinationType", feature = "INPerson"))]
48 #[unsafe(method(initWithDestinationType:contacts:))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn initWithDestinationType_contacts(
51 this: Allocated<Self>,
52 destination_type: INCallDestinationType,
53 contacts: Option<&NSArray<INPerson>>,
54 ) -> Retained<Self>;
55
56 #[cfg(feature = "INCallDestinationType")]
57 #[unsafe(method(destinationType))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn destinationType(&self) -> INCallDestinationType;
60
61 #[cfg(feature = "INPerson")]
62 #[deprecated = "INStartAudioCallIntent is deprecated. Please adopt INStartCallIntent instead"]
63 #[unsafe(method(contacts))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn contacts(&self) -> Option<Retained<NSArray<INPerson>>>;
66 );
67}
68
69#[cfg(feature = "INIntent")]
71impl INStartAudioCallIntent {
72 extern_methods!(
73 #[unsafe(method(init))]
74 #[unsafe(method_family = init)]
75 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
76
77 #[unsafe(method(new))]
78 #[unsafe(method_family = new)]
79 pub unsafe fn new() -> Retained<Self>;
80 );
81}
82
83extern_protocol!(
84 #[deprecated = "INStartAudioCallIntent is deprecated. Please adopt INStartCallIntent instead"]
90 pub unsafe trait INStartAudioCallIntentHandling: NSObjectProtocol {
91 #[cfg(all(
92 feature = "INIntent",
93 feature = "INIntentResponse",
94 feature = "INStartAudioCallIntentResponse",
95 feature = "block2"
96 ))]
97 #[deprecated = "INStartAudioCallIntent is deprecated. Please adopt INStartCallIntent instead"]
109 #[unsafe(method(handleStartAudioCall:completion:))]
110 #[unsafe(method_family = none)]
111 unsafe fn handleStartAudioCall_completion(
112 &self,
113 intent: &INStartAudioCallIntent,
114 completion: &block2::DynBlock<dyn Fn(NonNull<INStartAudioCallIntentResponse>)>,
115 );
116
117 #[cfg(all(
118 feature = "INIntent",
119 feature = "INIntentResponse",
120 feature = "INStartAudioCallIntentResponse",
121 feature = "block2"
122 ))]
123 #[deprecated = "INStartAudioCallIntent is deprecated. Please adopt INStartCallIntent instead"]
135 #[optional]
136 #[unsafe(method(confirmStartAudioCall:completion:))]
137 #[unsafe(method_family = none)]
138 unsafe fn confirmStartAudioCall_completion(
139 &self,
140 intent: &INStartAudioCallIntent,
141 completion: &block2::DynBlock<dyn Fn(NonNull<INStartAudioCallIntentResponse>)>,
142 );
143
144 #[cfg(all(
145 feature = "INCallDestinationTypeResolutionResult",
146 feature = "INIntent",
147 feature = "INIntentResolutionResult",
148 feature = "block2"
149 ))]
150 #[optional]
162 #[unsafe(method(resolveDestinationTypeForStartAudioCall:withCompletion:))]
163 #[unsafe(method_family = none)]
164 unsafe fn resolveDestinationTypeForStartAudioCall_withCompletion(
165 &self,
166 intent: &INStartAudioCallIntent,
167 completion: &block2::DynBlock<dyn Fn(NonNull<INCallDestinationTypeResolutionResult>)>,
168 );
169
170 #[cfg(all(
171 feature = "INIntent",
172 feature = "INIntentResolutionResult",
173 feature = "INPersonResolutionResult",
174 feature = "block2"
175 ))]
176 #[deprecated = "INStartAudioCallIntent is deprecated. Please adopt INStartCallIntent instead"]
177 #[optional]
178 #[unsafe(method(resolveContactsForStartAudioCall:withCompletion:))]
179 #[unsafe(method_family = none)]
180 unsafe fn resolveContactsForStartAudioCall_withCompletion(
181 &self,
182 intent: &INStartAudioCallIntent,
183 completion: &block2::DynBlock<dyn Fn(NonNull<NSArray<INPersonResolutionResult>>)>,
184 );
185 }
186);