1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
/// This operation will fetch records changes across the given record zones
///
///
/// For each
/// `previousServerChangeToken`passed in with a
/// `CKFetchRecordZoneChangesConfiguration,`only records that have changed since that anchor will be fetched.
/// If this is your first fetch of a zone or if you wish to re-fetch all records within a zone, do not include a
/// `previousServerChangeToken.`Change tokens are opaque tokens and clients should not infer any behavior based on their content.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation?language=objc)
#[unsafe(super(CKDatabaseOperation, CKOperation, NSOperation, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "CKDatabaseOperation", feature = "CKOperation"))]
pub struct CKFetchRecordZoneChangesOperation;
);
#[cfg(all(feature = "CKDatabaseOperation", feature = "CKOperation"))]
extern_conformance!(
unsafe impl NSObjectProtocol for CKFetchRecordZoneChangesOperation {}
);
#[cfg(all(feature = "CKDatabaseOperation", feature = "CKOperation"))]
impl CKFetchRecordZoneChangesOperation {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "CKRecordZoneID")]
#[unsafe(method(initWithRecordZoneIDs:configurationsByRecordZoneID:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithRecordZoneIDs_configurationsByRecordZoneID(
this: Allocated<Self>,
record_zone_i_ds: &NSArray<CKRecordZoneID>,
configurations_by_record_zone_id: Option<
&NSDictionary<CKRecordZoneID, CKFetchRecordZoneChangesConfiguration>,
>,
) -> Retained<Self>;
#[cfg(feature = "CKRecordZoneID")]
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(recordZoneIDs))]
#[unsafe(method_family = none)]
pub unsafe fn recordZoneIDs(&self) -> Option<Retained<NSArray<CKRecordZoneID>>>;
#[cfg(feature = "CKRecordZoneID")]
/// Setter for [`recordZoneIDs`][Self::recordZoneIDs].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setRecordZoneIDs:))]
#[unsafe(method_family = none)]
pub unsafe fn setRecordZoneIDs(&self, record_zone_i_ds: Option<&NSArray<CKRecordZoneID>>);
#[cfg(feature = "CKRecordZoneID")]
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(configurationsByRecordZoneID))]
#[unsafe(method_family = none)]
pub unsafe fn configurationsByRecordZoneID(
&self,
) -> Option<Retained<NSDictionary<CKRecordZoneID, CKFetchRecordZoneChangesConfiguration>>>;
#[cfg(feature = "CKRecordZoneID")]
/// Setter for [`configurationsByRecordZoneID`][Self::configurationsByRecordZoneID].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setConfigurationsByRecordZoneID:))]
#[unsafe(method_family = none)]
pub unsafe fn setConfigurationsByRecordZoneID(
&self,
configurations_by_record_zone_id: Option<
&NSDictionary<CKRecordZoneID, CKFetchRecordZoneChangesConfiguration>,
>,
);
/// Determines if the operation should fetch all changes from the server before completing.
///
///
/// When set to YES, this operation will send repeated requests to the server until all record changes have been fetched.
/// `recordZoneChangeTokensUpdatedBlock`will be invoked periodically, to give clients an updated change token so that already-fetched record changes don't need to be re-fetched on a subsequent operation.
/// `recordZoneFetchCompletionBlock`will only be called once and
/// `moreComing`will always be NO.
///
/// When set to NO, it is the responsibility of the caller to issue subsequent fetch-changes operations when
/// `moreComing`is YES in a
/// `recordZoneFetchCompletionBlock`invocation.
///
/// `fetchAllChanges`is YES by default
///
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(fetchAllChanges))]
#[unsafe(method_family = none)]
pub unsafe fn fetchAllChanges(&self) -> bool;
/// Setter for [`fetchAllChanges`][Self::fetchAllChanges].
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setFetchAllChanges:))]
#[unsafe(method_family = none)]
pub unsafe fn setFetchAllChanges(&self, fetch_all_changes: bool);
#[cfg(all(feature = "CKRecord", feature = "block2"))]
/// If the replacement callback
/// `recordWasChangedBlock`is set, this callback block is ignored.
/// Each
/// `CKOperation`instance has a private serial queue. This queue is used for all callback block invocations.
/// This block may share mutable state with other blocks assigned to this operation, but any such mutable state
/// should not be concurrently used outside of blocks assigned to this operation.
///
/// This property is not atomic.
///
/// # Safety
///
/// - The returned block's argument must be a valid pointer.
/// - This might not be thread-safe.
#[deprecated = "Use recordWasChangedBlock instead, which surfaces per-record errors"]
#[unsafe(method(recordChangedBlock))]
#[unsafe(method_family = none)]
pub unsafe fn recordChangedBlock(&self)
-> *mut block2::DynBlock<dyn Fn(NonNull<CKRecord>)>;
#[cfg(all(feature = "CKRecord", feature = "block2"))]
/// Setter for [`recordChangedBlock`][Self::recordChangedBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated = "Use recordWasChangedBlock instead, which surfaces per-record errors"]
#[unsafe(method(setRecordChangedBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setRecordChangedBlock(
&self,
record_changed_block: Option<&block2::DynBlock<dyn Fn(NonNull<CKRecord>)>>,
);
#[cfg(all(feature = "CKRecord", feature = "CKRecordID", feature = "block2"))]
/// If a record fails in post-processing (say, a network failure materializing a
/// `CKAsset`record field), the per-record error will be passed here.
/// Each
/// `CKOperation`instance has a private serial queue. This queue is used for all callback block invocations.
/// This block may share mutable state with other blocks assigned to this operation, but any such mutable state
/// should not be concurrently used outside of blocks assigned to this operation.
///
/// This property is not atomic.
///
/// # Safety
///
/// - The returned block's argument 1 must be a valid pointer.
/// - The returned block's argument 2 must be a valid pointer or null.
/// - The returned block's argument 3 must be a valid pointer or null.
/// - This might not be thread-safe.
#[unsafe(method(recordWasChangedBlock))]
#[unsafe(method_family = none)]
pub unsafe fn recordWasChangedBlock(
&self,
) -> *mut block2::DynBlock<dyn Fn(NonNull<CKRecordID>, *mut CKRecord, *mut NSError)>;
#[cfg(all(feature = "CKRecord", feature = "CKRecordID", feature = "block2"))]
/// Setter for [`recordWasChangedBlock`][Self::recordWasChangedBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setRecordWasChangedBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setRecordWasChangedBlock(
&self,
record_was_changed_block: Option<
&block2::DynBlock<dyn Fn(NonNull<CKRecordID>, *mut CKRecord, *mut NSError)>,
>,
);
#[cfg(all(feature = "CKRecord", feature = "CKRecordID", feature = "block2"))]
/// Each
/// `CKOperation`instance has a private serial queue. This queue is used for all callback block invocations.
/// This block may share mutable state with other blocks assigned to this operation, but any such mutable state
/// should not be concurrently used outside of blocks assigned to this operation.
///
/// This property is not atomic.
///
/// # Safety
///
/// - The returned block's argument 1 must be a valid pointer.
/// - The returned block's argument 2 must be a valid pointer.
/// - This might not be thread-safe.
#[unsafe(method(recordWithIDWasDeletedBlock))]
#[unsafe(method_family = none)]
pub unsafe fn recordWithIDWasDeletedBlock(
&self,
) -> *mut block2::DynBlock<dyn Fn(NonNull<CKRecordID>, NonNull<CKRecordType>)>;
#[cfg(all(feature = "CKRecord", feature = "CKRecordID", feature = "block2"))]
/// Setter for [`recordWithIDWasDeletedBlock`][Self::recordWithIDWasDeletedBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setRecordWithIDWasDeletedBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setRecordWithIDWasDeletedBlock(
&self,
record_with_id_was_deleted_block: Option<
&block2::DynBlock<dyn Fn(NonNull<CKRecordID>, NonNull<CKRecordType>)>,
>,
);
#[cfg(all(
feature = "CKRecordZoneID",
feature = "CKServerChangeToken",
feature = "block2"
))]
/// Clients are responsible for saving this per-recordZone
/// `serverChangeToken`and passing it in to the next call to
/// `CKFetchRecordZoneChangesOperation.`Note that a fetch can fail partway. If that happens, an updated change token may be returned in this block so that already fetched records don't need to be re-downloaded on a subsequent operation.
/// `recordZoneChangeTokensUpdatedBlock`will not be called after the last batch of changes in a zone; the
/// `recordZoneFetchCompletionBlock`block will be called instead.
/// The
/// `clientChangeTokenData`from the most recent
/// `CKModifyRecordsOperation`issued on this zone is also returned, or nil if none was provided.
/// If the server returns a
/// `CKErrorChangeTokenExpired`error, the
/// `serverChangeToken`used for this record zone when initting this operation was too old and the client should toss its local cache and re-fetch the changes in this record zone starting with a nil
/// `serverChangeToken.``recordZoneChangeTokensUpdatedBlock`will not be called if
/// `fetchAllChanges`is NO.
/// Each
/// `CKOperation`instance has a private serial queue. This queue is used for all callback block invocations.
/// This block may share mutable state with other blocks assigned to this operation, but any such mutable state
/// should not be concurrently used outside of blocks assigned to this operation.
///
/// This property is not atomic.
///
/// # Safety
///
/// - The returned block's argument 1 must be a valid pointer.
/// - The returned block's argument 2 must be a valid pointer or null.
/// - The returned block's argument 3 must be a valid pointer or null.
/// - This might not be thread-safe.
#[unsafe(method(recordZoneChangeTokensUpdatedBlock))]
#[unsafe(method_family = none)]
pub unsafe fn recordZoneChangeTokensUpdatedBlock(
&self,
) -> *mut block2::DynBlock<
dyn Fn(NonNull<CKRecordZoneID>, *mut CKServerChangeToken, *mut NSData),
>;
#[cfg(all(
feature = "CKRecordZoneID",
feature = "CKServerChangeToken",
feature = "block2"
))]
/// Setter for [`recordZoneChangeTokensUpdatedBlock`][Self::recordZoneChangeTokensUpdatedBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setRecordZoneChangeTokensUpdatedBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setRecordZoneChangeTokensUpdatedBlock(
&self,
record_zone_change_tokens_updated_block: Option<
&block2::DynBlock<
dyn Fn(NonNull<CKRecordZoneID>, *mut CKServerChangeToken, *mut NSData),
>,
>,
);
#[cfg(all(
feature = "CKRecordZoneID",
feature = "CKServerChangeToken",
feature = "block2"
))]
/// This property is not atomic.
///
/// # Safety
///
/// - The returned block's argument 1 must be a valid pointer.
/// - The returned block's argument 2 must be a valid pointer or null.
/// - The returned block's argument 3 must be a valid pointer or null.
/// - The returned block's argument 5 must be a valid pointer or null.
/// - This might not be thread-safe.
#[unsafe(method(recordZoneFetchCompletionBlock))]
#[unsafe(method_family = none)]
pub unsafe fn recordZoneFetchCompletionBlock(
&self,
) -> *mut block2::DynBlock<
dyn Fn(
NonNull<CKRecordZoneID>,
*mut CKServerChangeToken,
*mut NSData,
Bool,
*mut NSError,
),
>;
#[cfg(all(
feature = "CKRecordZoneID",
feature = "CKServerChangeToken",
feature = "block2"
))]
/// Setter for [`recordZoneFetchCompletionBlock`][Self::recordZoneFetchCompletionBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setRecordZoneFetchCompletionBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setRecordZoneFetchCompletionBlock(
&self,
record_zone_fetch_completion_block: Option<
&block2::DynBlock<
dyn Fn(
NonNull<CKRecordZoneID>,
*mut CKServerChangeToken,
*mut NSData,
Bool,
*mut NSError,
),
>,
>,
);
#[cfg(feature = "block2")]
/// This block is called when the operation completes.
///
///
/// `serverChangeToken-s`previously returned via a
/// `recordZoneChangeTokensUpdatedBlock`or
/// `recordZoneFetchCompletionBlock`invocation, along with the record changes that preceded it, are valid even if there is a subsequent
/// `operationError`If the error is
/// `CKErrorPartialFailure,`the error's userInfo dictionary contains a dictionary of recordIDs and zoneIDs to errors keyed off of
/// `CKPartialErrorsByItemIDKey.`Each
/// `CKOperation`instance has a private serial queue. This queue is used for all callback block invocations.
/// This block may share mutable state with other blocks assigned to this operation, but any such mutable state
/// should not be concurrently used outside of blocks assigned to this operation.
///
/// This property is not atomic.
///
/// # Safety
///
/// - The returned block's argument must be a valid pointer or null.
/// - This might not be thread-safe.
#[unsafe(method(fetchRecordZoneChangesCompletionBlock))]
#[unsafe(method_family = none)]
pub unsafe fn fetchRecordZoneChangesCompletionBlock(
&self,
) -> *mut block2::DynBlock<dyn Fn(*mut NSError)>;
#[cfg(feature = "block2")]
/// Setter for [`fetchRecordZoneChangesCompletionBlock`][Self::fetchRecordZoneChangesCompletionBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(setFetchRecordZoneChangesCompletionBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setFetchRecordZoneChangesCompletionBlock(
&self,
fetch_record_zone_changes_completion_block: Option<
&block2::DynBlock<dyn Fn(*mut NSError)>,
>,
);
);
}
/// Methods declared on superclass `NSObject`.
#[cfg(all(feature = "CKDatabaseOperation", feature = "CKOperation"))]
impl CKFetchRecordZoneChangesOperation {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
/// Deprecated.
#[cfg(all(feature = "CKDatabaseOperation", feature = "CKOperation"))]
impl CKFetchRecordZoneChangesOperation {
extern_methods!(
#[cfg(feature = "CKRecordZoneID")]
#[deprecated]
#[unsafe(method(initWithRecordZoneIDs:optionsByRecordZoneID:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithRecordZoneIDs_optionsByRecordZoneID(
this: Allocated<Self>,
record_zone_i_ds: &NSArray<CKRecordZoneID>,
options_by_record_zone_id: Option<
&NSDictionary<CKRecordZoneID, CKFetchRecordZoneChangesOptions>,
>,
) -> Retained<Self>;
#[cfg(feature = "CKRecordZoneID")]
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated]
#[unsafe(method(optionsByRecordZoneID))]
#[unsafe(method_family = none)]
pub unsafe fn optionsByRecordZoneID(
&self,
) -> Option<Retained<NSDictionary<CKRecordZoneID, CKFetchRecordZoneChangesOptions>>>;
#[cfg(feature = "CKRecordZoneID")]
/// Setter for [`optionsByRecordZoneID`][Self::optionsByRecordZoneID].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated]
#[unsafe(method(setOptionsByRecordZoneID:))]
#[unsafe(method_family = none)]
pub unsafe fn setOptionsByRecordZoneID(
&self,
options_by_record_zone_id: Option<
&NSDictionary<CKRecordZoneID, CKFetchRecordZoneChangesOptions>,
>,
);
);
}
extern_class!(
/// [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CKFetchRecordZoneChangesConfiguration;
);
extern_conformance!(
unsafe impl NSCoding for CKFetchRecordZoneChangesConfiguration {}
);
extern_conformance!(
unsafe impl NSCopying for CKFetchRecordZoneChangesConfiguration {}
);
unsafe impl CopyingHelper for CKFetchRecordZoneChangesConfiguration {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for CKFetchRecordZoneChangesConfiguration {}
);
extern_conformance!(
unsafe impl NSSecureCoding for CKFetchRecordZoneChangesConfiguration {}
);
impl CKFetchRecordZoneChangesConfiguration {
extern_methods!(
#[cfg(feature = "CKServerChangeToken")]
#[unsafe(method(previousServerChangeToken))]
#[unsafe(method_family = none)]
pub unsafe fn previousServerChangeToken(&self) -> Option<Retained<CKServerChangeToken>>;
#[cfg(feature = "CKServerChangeToken")]
/// Setter for [`previousServerChangeToken`][Self::previousServerChangeToken].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setPreviousServerChangeToken:))]
#[unsafe(method_family = none)]
pub unsafe fn setPreviousServerChangeToken(
&self,
previous_server_change_token: Option<&CKServerChangeToken>,
);
#[unsafe(method(resultsLimit))]
#[unsafe(method_family = none)]
pub unsafe fn resultsLimit(&self) -> NSUInteger;
/// Setter for [`resultsLimit`][Self::resultsLimit].
#[unsafe(method(setResultsLimit:))]
#[unsafe(method_family = none)]
pub unsafe fn setResultsLimit(&self, results_limit: NSUInteger);
#[cfg(feature = "CKRecord")]
/// Declares which user-defined keys should be fetched and added to the resulting CKRecords.
///
///
/// If nil, declares the entire record should be downloaded. If set to an empty array, declares that no user fields should be downloaded.
/// Defaults to
/// `nil.`
#[unsafe(method(desiredKeys))]
#[unsafe(method_family = none)]
pub unsafe fn desiredKeys(&self) -> Option<Retained<NSArray<CKRecordFieldKey>>>;
#[cfg(feature = "CKRecord")]
/// Setter for [`desiredKeys`][Self::desiredKeys].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setDesiredKeys:))]
#[unsafe(method_family = none)]
pub unsafe fn setDesiredKeys(&self, desired_keys: Option<&NSArray<CKRecordFieldKey>>);
);
}
/// Methods declared on superclass `NSObject`.
impl CKFetchRecordZoneChangesConfiguration {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
/// [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoptions?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated]
pub struct CKFetchRecordZoneChangesOptions;
);
extern_conformance!(
unsafe impl NSCoding for CKFetchRecordZoneChangesOptions {}
);
extern_conformance!(
unsafe impl NSCopying for CKFetchRecordZoneChangesOptions {}
);
unsafe impl CopyingHelper for CKFetchRecordZoneChangesOptions {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for CKFetchRecordZoneChangesOptions {}
);
extern_conformance!(
unsafe impl NSSecureCoding for CKFetchRecordZoneChangesOptions {}
);
impl CKFetchRecordZoneChangesOptions {
extern_methods!(
#[cfg(feature = "CKServerChangeToken")]
#[deprecated]
#[unsafe(method(previousServerChangeToken))]
#[unsafe(method_family = none)]
pub unsafe fn previousServerChangeToken(&self) -> Option<Retained<CKServerChangeToken>>;
#[cfg(feature = "CKServerChangeToken")]
/// Setter for [`previousServerChangeToken`][Self::previousServerChangeToken].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[deprecated]
#[unsafe(method(setPreviousServerChangeToken:))]
#[unsafe(method_family = none)]
pub unsafe fn setPreviousServerChangeToken(
&self,
previous_server_change_token: Option<&CKServerChangeToken>,
);
#[deprecated]
#[unsafe(method(resultsLimit))]
#[unsafe(method_family = none)]
pub unsafe fn resultsLimit(&self) -> NSUInteger;
/// Setter for [`resultsLimit`][Self::resultsLimit].
#[deprecated]
#[unsafe(method(setResultsLimit:))]
#[unsafe(method_family = none)]
pub unsafe fn setResultsLimit(&self, results_limit: NSUInteger);
#[cfg(feature = "CKRecord")]
#[deprecated]
#[unsafe(method(desiredKeys))]
#[unsafe(method_family = none)]
pub unsafe fn desiredKeys(&self) -> Option<Retained<NSArray<CKRecordFieldKey>>>;
#[cfg(feature = "CKRecord")]
/// Setter for [`desiredKeys`][Self::desiredKeys].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[deprecated]
#[unsafe(method(setDesiredKeys:))]
#[unsafe(method_family = none)]
pub unsafe fn setDesiredKeys(&self, desired_keys: Option<&NSArray<CKRecordFieldKey>>);
);
}
/// Methods declared on superclass `NSObject`.
impl CKFetchRecordZoneChangesOptions {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}