objc2_cloud_kit/generated/
CKDiscoverUserIdentitiesOperation.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(CKOperation, NSOperation, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "CKOperation")]
15 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
16 pub struct CKDiscoverUserIdentitiesOperation;
17);
18
19#[cfg(feature = "CKOperation")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for CKDiscoverUserIdentitiesOperation {}
22);
23
24#[cfg(feature = "CKOperation")]
25impl CKDiscoverUserIdentitiesOperation {
26 extern_methods!(
27 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
28 #[unsafe(method(init))]
29 #[unsafe(method_family = init)]
30 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
31
32 #[cfg(feature = "CKUserIdentityLookupInfo")]
33 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
34 #[unsafe(method(initWithUserIdentityLookupInfos:))]
35 #[unsafe(method_family = init)]
36 pub unsafe fn initWithUserIdentityLookupInfos(
37 this: Allocated<Self>,
38 user_identity_lookup_infos: &NSArray<CKUserIdentityLookupInfo>,
39 ) -> Retained<Self>;
40
41 #[cfg(feature = "CKUserIdentityLookupInfo")]
42 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
48 #[unsafe(method(userIdentityLookupInfos))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn userIdentityLookupInfos(&self)
51 -> Retained<NSArray<CKUserIdentityLookupInfo>>;
52
53 #[cfg(feature = "CKUserIdentityLookupInfo")]
54 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
62 #[unsafe(method(setUserIdentityLookupInfos:))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn setUserIdentityLookupInfos(
65 &self,
66 user_identity_lookup_infos: &NSArray<CKUserIdentityLookupInfo>,
67 );
68
69 #[cfg(all(
70 feature = "CKUserIdentity",
71 feature = "CKUserIdentityLookupInfo",
72 feature = "block2"
73 ))]
74 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
90 #[unsafe(method(userIdentityDiscoveredBlock))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn userIdentityDiscoveredBlock(
93 &self,
94 ) -> *mut block2::DynBlock<dyn Fn(NonNull<CKUserIdentity>, NonNull<CKUserIdentityLookupInfo>)>;
95
96 #[cfg(all(
97 feature = "CKUserIdentity",
98 feature = "CKUserIdentityLookupInfo",
99 feature = "block2"
100 ))]
101 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
109 #[unsafe(method(setUserIdentityDiscoveredBlock:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setUserIdentityDiscoveredBlock(
112 &self,
113 user_identity_discovered_block: Option<
114 &block2::DynBlock<
115 dyn Fn(NonNull<CKUserIdentity>, NonNull<CKUserIdentityLookupInfo>),
116 >,
117 >,
118 );
119
120 #[cfg(feature = "block2")]
121 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
143 #[unsafe(method(discoverUserIdentitiesCompletionBlock))]
144 #[unsafe(method_family = none)]
145 pub unsafe fn discoverUserIdentitiesCompletionBlock(
146 &self,
147 ) -> *mut block2::DynBlock<dyn Fn(*mut NSError)>;
148
149 #[cfg(feature = "block2")]
150 #[deprecated = "No longer supported. Please see Sharing CloudKit Data with Other iCloud Users."]
158 #[unsafe(method(setDiscoverUserIdentitiesCompletionBlock:))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn setDiscoverUserIdentitiesCompletionBlock(
161 &self,
162 discover_user_identities_completion_block: Option<
163 &block2::DynBlock<dyn Fn(*mut NSError)>,
164 >,
165 );
166 );
167}
168
169#[cfg(feature = "CKOperation")]
171impl CKDiscoverUserIdentitiesOperation {
172 extern_methods!(
173 #[unsafe(method(new))]
174 #[unsafe(method_family = new)]
175 pub unsafe fn new() -> Retained<Self>;
176 );
177}