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
//! 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!(
/// [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckdiscoveruseridentitiesoperation?language=objc)
#[unsafe(super(CKOperation, NSOperation, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CKOperation")]
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
pub struct CKDiscoverUserIdentitiesOperation;
);
#[cfg(feature = "CKOperation")]
extern_conformance!(
unsafe impl NSObjectProtocol for CKDiscoverUserIdentitiesOperation {}
);
#[cfg(feature = "CKOperation")]
impl CKDiscoverUserIdentitiesOperation {
extern_methods!(
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "CKUserIdentityLookupInfo")]
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(initWithUserIdentityLookupInfos:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithUserIdentityLookupInfos(
this: Allocated<Self>,
user_identity_lookup_infos: &NSArray<CKUserIdentityLookupInfo>,
) -> Retained<Self>;
#[cfg(feature = "CKUserIdentityLookupInfo")]
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(userIdentityLookupInfos))]
#[unsafe(method_family = none)]
pub unsafe fn userIdentityLookupInfos(&self)
-> Retained<NSArray<CKUserIdentityLookupInfo>>;
#[cfg(feature = "CKUserIdentityLookupInfo")]
/// Setter for [`userIdentityLookupInfos`][Self::userIdentityLookupInfos].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(setUserIdentityLookupInfos:))]
#[unsafe(method_family = none)]
pub unsafe fn setUserIdentityLookupInfos(
&self,
user_identity_lookup_infos: &NSArray<CKUserIdentityLookupInfo>,
);
#[cfg(all(
feature = "CKUserIdentity",
feature = "CKUserIdentityLookupInfo",
feature = "block2"
))]
/// Called once for each user identity lookup info that was successfully discovered on the server
///
///
/// 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.
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(userIdentityDiscoveredBlock))]
#[unsafe(method_family = none)]
pub unsafe fn userIdentityDiscoveredBlock(
&self,
) -> *mut block2::DynBlock<dyn Fn(NonNull<CKUserIdentity>, NonNull<CKUserIdentityLookupInfo>)>;
#[cfg(all(
feature = "CKUserIdentity",
feature = "CKUserIdentityLookupInfo",
feature = "block2"
))]
/// Setter for [`userIdentityDiscoveredBlock`][Self::userIdentityDiscoveredBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(setUserIdentityDiscoveredBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setUserIdentityDiscoveredBlock(
&self,
user_identity_discovered_block: Option<
&block2::DynBlock<
dyn Fn(NonNull<CKUserIdentity>, NonNull<CKUserIdentityLookupInfo>),
>,
>,
);
#[cfg(feature = "block2")]
/// This block is called when the operation completes.
///
///
/// The
///
/// ```text
/// -[NSOperation completionBlock]
/// ```
///
/// will also be called if both are set.
/// 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.
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(discoverUserIdentitiesCompletionBlock))]
#[unsafe(method_family = none)]
pub unsafe fn discoverUserIdentitiesCompletionBlock(
&self,
) -> *mut block2::DynBlock<dyn Fn(*mut NSError)>;
#[cfg(feature = "block2")]
/// Setter for [`discoverUserIdentitiesCompletionBlock`][Self::discoverUserIdentitiesCompletionBlock].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// This might not be thread-safe.
#[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
#[unsafe(method(setDiscoverUserIdentitiesCompletionBlock:))]
#[unsafe(method_family = none)]
pub unsafe fn setDiscoverUserIdentitiesCompletionBlock(
&self,
discover_user_identities_completion_block: Option<
&block2::DynBlock<dyn Fn(*mut NSError)>,
>,
);
);
}
/// Methods declared on superclass `NSObject`.
#[cfg(feature = "CKOperation")]
impl CKDiscoverUserIdentitiesOperation {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}