objc2_cloud_kit/generated/
CKFetchShareParticipantsOperation.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 pub struct CKFetchShareParticipantsOperation;
16);
17
18#[cfg(feature = "CKOperation")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for CKFetchShareParticipantsOperation {}
21);
22
23#[cfg(feature = "CKOperation")]
24impl CKFetchShareParticipantsOperation {
25 extern_methods!(
26 #[unsafe(method(init))]
27 #[unsafe(method_family = init)]
28 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30 #[cfg(feature = "CKUserIdentityLookupInfo")]
31 #[unsafe(method(initWithUserIdentityLookupInfos:))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn initWithUserIdentityLookupInfos(
34 this: Allocated<Self>,
35 user_identity_lookup_infos: &NSArray<CKUserIdentityLookupInfo>,
36 ) -> Retained<Self>;
37
38 #[cfg(feature = "CKUserIdentityLookupInfo")]
39 #[unsafe(method(userIdentityLookupInfos))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn userIdentityLookupInfos(
42 &self,
43 ) -> Option<Retained<NSArray<CKUserIdentityLookupInfo>>>;
44
45 #[cfg(feature = "CKUserIdentityLookupInfo")]
46 #[unsafe(method(setUserIdentityLookupInfos:))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn setUserIdentityLookupInfos(
50 &self,
51 user_identity_lookup_infos: Option<&NSArray<CKUserIdentityLookupInfo>>,
52 );
53
54 #[cfg(all(feature = "CKShareParticipant", feature = "block2"))]
55 #[deprecated = "Use perShareParticipantCompletionBlock instead, which surfaces per-share-participant errors"]
65 #[unsafe(method(shareParticipantFetchedBlock))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn shareParticipantFetchedBlock(
68 &self,
69 ) -> *mut block2::DynBlock<dyn Fn(NonNull<CKShareParticipant>)>;
70
71 #[cfg(all(feature = "CKShareParticipant", feature = "block2"))]
72 #[deprecated = "Use perShareParticipantCompletionBlock instead, which surfaces per-share-participant errors"]
74 #[unsafe(method(setShareParticipantFetchedBlock:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn setShareParticipantFetchedBlock(
77 &self,
78 share_participant_fetched_block: Option<
79 &block2::DynBlock<dyn Fn(NonNull<CKShareParticipant>)>,
80 >,
81 );
82
83 #[cfg(all(
84 feature = "CKShareParticipant",
85 feature = "CKUserIdentityLookupInfo",
86 feature = "block2"
87 ))]
88 #[unsafe(method(perShareParticipantCompletionBlock))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn perShareParticipantCompletionBlock(
98 &self,
99 ) -> *mut block2::DynBlock<
100 dyn Fn(NonNull<CKUserIdentityLookupInfo>, *mut CKShareParticipant, *mut NSError),
101 >;
102
103 #[cfg(all(
104 feature = "CKShareParticipant",
105 feature = "CKUserIdentityLookupInfo",
106 feature = "block2"
107 ))]
108 #[unsafe(method(setPerShareParticipantCompletionBlock:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setPerShareParticipantCompletionBlock(
112 &self,
113 per_share_participant_completion_block: Option<
114 &block2::DynBlock<
115 dyn Fn(
116 NonNull<CKUserIdentityLookupInfo>,
117 *mut CKShareParticipant,
118 *mut NSError,
119 ),
120 >,
121 >,
122 );
123
124 #[cfg(feature = "block2")]
125 #[unsafe(method(fetchShareParticipantsCompletionBlock))]
144 #[unsafe(method_family = none)]
145 pub unsafe fn fetchShareParticipantsCompletionBlock(
146 &self,
147 ) -> *mut block2::DynBlock<dyn Fn(*mut NSError)>;
148
149 #[cfg(feature = "block2")]
150 #[unsafe(method(setFetchShareParticipantsCompletionBlock:))]
152 #[unsafe(method_family = none)]
153 pub unsafe fn setFetchShareParticipantsCompletionBlock(
154 &self,
155 fetch_share_participants_completion_block: Option<
156 &block2::DynBlock<dyn Fn(*mut NSError)>,
157 >,
158 );
159 );
160}
161
162#[cfg(feature = "CKOperation")]
164impl CKFetchShareParticipantsOperation {
165 extern_methods!(
166 #[unsafe(method(new))]
167 #[unsafe(method_family = new)]
168 pub unsafe fn new() -> Retained<Self>;
169 );
170}