objc2_intents/generated/
INSearchForBillsIntent.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 = "INSearchForBillsIntent is deprecated. There is no replacement."]
16 pub struct INSearchForBillsIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INSearchForBillsIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INSearchForBillsIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INSearchForBillsIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INSearchForBillsIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INSearchForBillsIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INSearchForBillsIntent {
46 extern_methods!(
47 #[cfg(all(
48 feature = "INBillPayee",
49 feature = "INBillType",
50 feature = "INDateComponentsRange",
51 feature = "INPaymentStatus"
52 ))]
53 #[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
54 #[unsafe(method(initWithBillPayee:paymentDateRange:billType:status:dueDateRange:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithBillPayee_paymentDateRange_billType_status_dueDateRange(
57 this: Allocated<Self>,
58 bill_payee: Option<&INBillPayee>,
59 payment_date_range: Option<&INDateComponentsRange>,
60 bill_type: INBillType,
61 status: INPaymentStatus,
62 due_date_range: Option<&INDateComponentsRange>,
63 ) -> Retained<Self>;
64
65 #[cfg(feature = "INBillPayee")]
66 #[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
67 #[unsafe(method(billPayee))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn billPayee(&self) -> Option<Retained<INBillPayee>>;
70
71 #[cfg(feature = "INDateComponentsRange")]
72 #[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
73 #[unsafe(method(paymentDateRange))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn paymentDateRange(&self) -> Option<Retained<INDateComponentsRange>>;
76
77 #[cfg(feature = "INBillType")]
78 #[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
79 #[unsafe(method(billType))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn billType(&self) -> INBillType;
82
83 #[cfg(feature = "INPaymentStatus")]
84 #[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
85 #[unsafe(method(status))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn status(&self) -> INPaymentStatus;
88
89 #[cfg(feature = "INDateComponentsRange")]
90 #[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
91 #[unsafe(method(dueDateRange))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn dueDateRange(&self) -> Option<Retained<INDateComponentsRange>>;
94 );
95}
96
97#[cfg(feature = "INIntent")]
99impl INSearchForBillsIntent {
100 extern_methods!(
101 #[unsafe(method(init))]
102 #[unsafe(method_family = init)]
103 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
104
105 #[unsafe(method(new))]
106 #[unsafe(method_family = new)]
107 pub unsafe fn new() -> Retained<Self>;
108 );
109}
110
111extern_protocol!(
112 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
118 pub unsafe trait INSearchForBillsIntentHandling: NSObjectProtocol {
119 #[cfg(all(
120 feature = "INIntent",
121 feature = "INIntentResponse",
122 feature = "INSearchForBillsIntentResponse",
123 feature = "block2"
124 ))]
125 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
137 #[unsafe(method(handleSearchForBills:completion:))]
138 #[unsafe(method_family = none)]
139 unsafe fn handleSearchForBills_completion(
140 &self,
141 intent: &INSearchForBillsIntent,
142 completion: &block2::DynBlock<dyn Fn(NonNull<INSearchForBillsIntentResponse>)>,
143 );
144
145 #[cfg(all(
146 feature = "INIntent",
147 feature = "INIntentResponse",
148 feature = "INSearchForBillsIntentResponse",
149 feature = "block2"
150 ))]
151 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
163 #[optional]
164 #[unsafe(method(confirmSearchForBills:completion:))]
165 #[unsafe(method_family = none)]
166 unsafe fn confirmSearchForBills_completion(
167 &self,
168 intent: &INSearchForBillsIntent,
169 completion: &block2::DynBlock<dyn Fn(NonNull<INSearchForBillsIntentResponse>)>,
170 );
171
172 #[cfg(all(
173 feature = "INBillPayeeResolutionResult",
174 feature = "INIntent",
175 feature = "INIntentResolutionResult",
176 feature = "block2"
177 ))]
178 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
190 #[optional]
191 #[unsafe(method(resolveBillPayeeForSearchForBills:withCompletion:))]
192 #[unsafe(method_family = none)]
193 unsafe fn resolveBillPayeeForSearchForBills_withCompletion(
194 &self,
195 intent: &INSearchForBillsIntent,
196 completion: &block2::DynBlock<dyn Fn(NonNull<INBillPayeeResolutionResult>)>,
197 );
198
199 #[cfg(all(
200 feature = "INDateComponentsRangeResolutionResult",
201 feature = "INIntent",
202 feature = "INIntentResolutionResult",
203 feature = "block2"
204 ))]
205 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
206 #[optional]
207 #[unsafe(method(resolvePaymentDateRangeForSearchForBills:withCompletion:))]
208 #[unsafe(method_family = none)]
209 unsafe fn resolvePaymentDateRangeForSearchForBills_withCompletion(
210 &self,
211 intent: &INSearchForBillsIntent,
212 completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
213 );
214
215 #[cfg(all(
216 feature = "INBillTypeResolutionResult",
217 feature = "INIntent",
218 feature = "INIntentResolutionResult",
219 feature = "block2"
220 ))]
221 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
222 #[optional]
223 #[unsafe(method(resolveBillTypeForSearchForBills:withCompletion:))]
224 #[unsafe(method_family = none)]
225 unsafe fn resolveBillTypeForSearchForBills_withCompletion(
226 &self,
227 intent: &INSearchForBillsIntent,
228 completion: &block2::DynBlock<dyn Fn(NonNull<INBillTypeResolutionResult>)>,
229 );
230
231 #[cfg(all(
232 feature = "INIntent",
233 feature = "INIntentResolutionResult",
234 feature = "INPaymentStatusResolutionResult",
235 feature = "block2"
236 ))]
237 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
238 #[optional]
239 #[unsafe(method(resolveStatusForSearchForBills:withCompletion:))]
240 #[unsafe(method_family = none)]
241 unsafe fn resolveStatusForSearchForBills_withCompletion(
242 &self,
243 intent: &INSearchForBillsIntent,
244 completion: &block2::DynBlock<dyn Fn(NonNull<INPaymentStatusResolutionResult>)>,
245 );
246
247 #[cfg(all(
248 feature = "INDateComponentsRangeResolutionResult",
249 feature = "INIntent",
250 feature = "INIntentResolutionResult",
251 feature = "block2"
252 ))]
253 #[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
254 #[optional]
255 #[unsafe(method(resolveDueDateRangeForSearchForBills:withCompletion:))]
256 #[unsafe(method_family = none)]
257 unsafe fn resolveDueDateRangeForSearchForBills_withCompletion(
258 &self,
259 intent: &INSearchForBillsIntent,
260 completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
261 );
262 }
263);