objc2_intents/generated/
INStartVideoCallIntent.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 = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
16 pub struct INStartVideoCallIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INStartVideoCallIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INStartVideoCallIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INStartVideoCallIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INStartVideoCallIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INStartVideoCallIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INStartVideoCallIntent {
46 extern_methods!(
47 #[cfg(feature = "INPerson")]
48 #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
49 #[unsafe(method(initWithContacts:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithContacts(
52 this: Allocated<Self>,
53 contacts: Option<&NSArray<INPerson>>,
54 ) -> Retained<Self>;
55
56 #[cfg(feature = "INPerson")]
57 #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
58 #[unsafe(method(contacts))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn contacts(&self) -> Option<Retained<NSArray<INPerson>>>;
61 );
62}
63
64#[cfg(feature = "INIntent")]
66impl INStartVideoCallIntent {
67 extern_methods!(
68 #[unsafe(method(init))]
69 #[unsafe(method_family = init)]
70 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
71
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new() -> Retained<Self>;
75 );
76}
77
78extern_protocol!(
79 #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
85 pub unsafe trait INStartVideoCallIntentHandling: NSObjectProtocol {
86 #[cfg(all(
87 feature = "INIntent",
88 feature = "INIntentResponse",
89 feature = "INStartVideoCallIntentResponse",
90 feature = "block2"
91 ))]
92 #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
104 #[unsafe(method(handleStartVideoCall:completion:))]
105 #[unsafe(method_family = none)]
106 unsafe fn handleStartVideoCall_completion(
107 &self,
108 intent: &INStartVideoCallIntent,
109 completion: &block2::DynBlock<dyn Fn(NonNull<INStartVideoCallIntentResponse>)>,
110 );
111
112 #[cfg(all(
113 feature = "INIntent",
114 feature = "INIntentResponse",
115 feature = "INStartVideoCallIntentResponse",
116 feature = "block2"
117 ))]
118 #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
130 #[optional]
131 #[unsafe(method(confirmStartVideoCall:completion:))]
132 #[unsafe(method_family = none)]
133 unsafe fn confirmStartVideoCall_completion(
134 &self,
135 intent: &INStartVideoCallIntent,
136 completion: &block2::DynBlock<dyn Fn(NonNull<INStartVideoCallIntentResponse>)>,
137 );
138
139 #[cfg(all(
140 feature = "INIntent",
141 feature = "INIntentResolutionResult",
142 feature = "INPersonResolutionResult",
143 feature = "block2"
144 ))]
145 #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
157 #[optional]
158 #[unsafe(method(resolveContactsForStartVideoCall:withCompletion:))]
159 #[unsafe(method_family = none)]
160 unsafe fn resolveContactsForStartVideoCall_withCompletion(
161 &self,
162 intent: &INStartVideoCallIntent,
163 completion: &block2::DynBlock<dyn Fn(NonNull<NSArray<INPersonResolutionResult>>)>,
164 );
165 }
166);