· 6 years ago · Oct 21, 2019, 08:50 AM
1public enum _ABPropertyType : uint
2{
3 ErrorInProperty = 0,
4 StringProperty = 1,
5 IntegerProperty = 2,
6 RealProperty = 3,
7 DateProperty = 4,
8 ArrayProperty = 5,
9 DictionaryProperty = 6,
10 DataProperty = 7,
11 DateComponentsProperty = 8,
12 MultiStringProperty = 256 | StringProperty,
13 MultiIntegerProperty = 256 | IntegerProperty,
14 MultiRealProperty = 256 | RealProperty,
15 MultiDateProperty = 256 | DateProperty,
16 MultiArrayProperty = 256 | ArrayProperty,
17 MultiDictionaryProperty = 256 | DictionaryProperty,
18 MultiDataProperty = 256 | DataProperty,
19 MultiDateComponentsProperty = 256 | DateComponentsProperty
20}
21
22public enum _ABSearchComparison : uint
23{
24 Equal,
25 NotEqual,
26 LessThan,
27 LessThanOrEqual,
28 GreaterThan,
29 GreaterThanOrEqual,
30 EqualCaseInsensitive,
31 ContainsSubString,
32 ContainsSubStringCaseInsensitive,
33 PrefixMatch,
34 PrefixMatchCaseInsensitive,
35 BitsInBitFieldMatch,
36 DoesNotContainSubString,
37 DoesNotContainSubStringCaseInsensitive,
38 NotEqualCaseInsensitive,
39 SuffixMatch,
40 SuffixMatchCaseInsensitive,
41 WithinIntervalAroundToday,
42 WithinIntervalAroundTodayYearless,
43 NotWithinIntervalAroundToday,
44 NotWithinIntervalAroundTodayYearless,
45 WithinIntervalFromToday,
46 WithinIntervalFromTodayYearless,
47 NotWithinIntervalFromToday,
48 NotWithinIntervalFromTodayYearless
49}
50
51public enum _ABSearchConjunction : uint
52{
53 And,
54 Or
55}
56
57[Static]
58[Verify (ConstantsInterfaceAssociation)]
59partial interface Constants
60{
61 // extern NSString *const kABUIDProperty;
62 [Field ("kABUIDProperty")]
63 NSString kABUIDProperty { get; }
64
65 // extern NSString *const kABCreationDateProperty;
66 [Field ("kABCreationDateProperty")]
67 NSString kABCreationDateProperty { get; }
68
69 // extern NSString *const kABModificationDateProperty;
70 [Field ("kABModificationDateProperty")]
71 NSString kABModificationDateProperty { get; }
72
73 // extern NSString *const kABFirstNameProperty;
74 [Field ("kABFirstNameProperty")]
75 NSString kABFirstNameProperty { get; }
76
77 // extern NSString *const kABLastNameProperty;
78 [Field ("kABLastNameProperty")]
79 NSString kABLastNameProperty { get; }
80
81 // extern NSString *const kABFirstNamePhoneticProperty;
82 [Field ("kABFirstNamePhoneticProperty")]
83 NSString kABFirstNamePhoneticProperty { get; }
84
85 // extern NSString *const kABLastNamePhoneticProperty;
86 [Field ("kABLastNamePhoneticProperty")]
87 NSString kABLastNamePhoneticProperty { get; }
88
89 // extern NSString *const kABNicknameProperty;
90 [Field ("kABNicknameProperty")]
91 NSString kABNicknameProperty { get; }
92
93 // extern NSString *const kABMaidenNameProperty;
94 [Field ("kABMaidenNameProperty")]
95 NSString kABMaidenNameProperty { get; }
96
97 // extern NSString *const kABBirthdayProperty;
98 [Field ("kABBirthdayProperty")]
99 NSString kABBirthdayProperty { get; }
100
101 // extern NSString *const kABBirthdayComponentsProperty __attribute__((availability(macos, introduced=10.7)));
102 [Mac (10, 7)]
103 [Field ("kABBirthdayComponentsProperty")]
104 NSString kABBirthdayComponentsProperty { get; }
105
106 // extern NSString *const kABAlternateBirthdayComponentsProperty;
107 [Field ("kABAlternateBirthdayComponentsProperty")]
108 NSString kABAlternateBirthdayComponentsProperty { get; }
109
110 // extern NSString *const kABOrganizationProperty;
111 [Field ("kABOrganizationProperty")]
112 NSString kABOrganizationProperty { get; }
113
114 // extern NSString *const kABOrganizationPhoneticProperty;
115 [Field ("kABOrganizationPhoneticProperty")]
116 NSString kABOrganizationPhoneticProperty { get; }
117
118 // extern NSString *const kABJobTitleProperty;
119 [Field ("kABJobTitleProperty")]
120 NSString kABJobTitleProperty { get; }
121
122 // extern NSString *const kABHomePageProperty;
123 [Field ("kABHomePageProperty")]
124 NSString kABHomePageProperty { get; }
125
126 // extern NSString *const kABURLsProperty __attribute__((availability(macos, introduced=10.4)));
127 [Mac (10, 4)]
128 [Field ("kABURLsProperty")]
129 NSString kABURLsProperty { get; }
130
131 // extern NSString *const kABHomePageLabel __attribute__((availability(macos, introduced=10.4)));
132 [Mac (10, 4)]
133 [Field ("kABHomePageLabel")]
134 NSString kABHomePageLabel { get; }
135
136 // extern NSString *const kABCalendarURIsProperty __attribute__((availability(macos, introduced=10.5)));
137 [Mac (10, 5)]
138 [Field ("kABCalendarURIsProperty")]
139 NSString kABCalendarURIsProperty { get; }
140
141 // extern NSString *const kABEmailProperty;
142 [Field ("kABEmailProperty")]
143 NSString kABEmailProperty { get; }
144
145 // extern NSString *const kABEmailWorkLabel;
146 [Field ("kABEmailWorkLabel")]
147 NSString kABEmailWorkLabel { get; }
148
149 // extern NSString *const kABEmailHomeLabel;
150 [Field ("kABEmailHomeLabel")]
151 NSString kABEmailHomeLabel { get; }
152
153 // extern NSString *const kABEmailMobileMeLabel;
154 [Field ("kABEmailMobileMeLabel")]
155 NSString kABEmailMobileMeLabel { get; }
156
157 // extern NSString *const kABAddressProperty;
158 [Field ("kABAddressProperty")]
159 NSString kABAddressProperty { get; }
160
161 // extern NSString *const kABAddressStreetKey;
162 [Field ("kABAddressStreetKey")]
163 NSString kABAddressStreetKey { get; }
164
165 // extern NSString *const kABAddressCityKey;
166 [Field ("kABAddressCityKey")]
167 NSString kABAddressCityKey { get; }
168
169 // extern NSString *const kABAddressStateKey;
170 [Field ("kABAddressStateKey")]
171 NSString kABAddressStateKey { get; }
172
173 // extern NSString *const kABAddressZIPKey;
174 [Field ("kABAddressZIPKey")]
175 NSString kABAddressZIPKey { get; }
176
177 // extern NSString *const kABAddressCountryKey;
178 [Field ("kABAddressCountryKey")]
179 NSString kABAddressCountryKey { get; }
180
181 // extern NSString *const kABAddressCountryCodeKey;
182 [Field ("kABAddressCountryCodeKey")]
183 NSString kABAddressCountryCodeKey { get; }
184
185 // extern NSString *const kABAddressHomeLabel;
186 [Field ("kABAddressHomeLabel")]
187 NSString kABAddressHomeLabel { get; }
188
189 // extern NSString *const kABAddressWorkLabel;
190 [Field ("kABAddressWorkLabel")]
191 NSString kABAddressWorkLabel { get; }
192
193 // extern NSString *const kABOtherDatesProperty __attribute__((availability(macos, introduced=10.3)));
194 [Mac (10, 3)]
195 [Field ("kABOtherDatesProperty")]
196 NSString kABOtherDatesProperty { get; }
197
198 // extern NSString *const kABOtherDateComponentsProperty __attribute__((availability(macos, introduced=10.7)));
199 [Mac (10, 7)]
200 [Field ("kABOtherDateComponentsProperty")]
201 NSString kABOtherDateComponentsProperty { get; }
202
203 // extern NSString *const kABAnniversaryLabel __attribute__((availability(macos, introduced=10.3)));
204 [Mac (10, 3)]
205 [Field ("kABAnniversaryLabel")]
206 NSString kABAnniversaryLabel { get; }
207
208 // extern NSString *const kABRelatedNamesProperty __attribute__((availability(macos, introduced=10.3)));
209 [Mac (10, 3)]
210 [Field ("kABRelatedNamesProperty")]
211 NSString kABRelatedNamesProperty { get; }
212
213 // extern NSString *const kABFatherLabel __attribute__((availability(macos, introduced=10.3)));
214 [Mac (10, 3)]
215 [Field ("kABFatherLabel")]
216 NSString kABFatherLabel { get; }
217
218 // extern NSString *const kABMotherLabel __attribute__((availability(macos, introduced=10.3)));
219 [Mac (10, 3)]
220 [Field ("kABMotherLabel")]
221 NSString kABMotherLabel { get; }
222
223 // extern NSString *const kABParentLabel __attribute__((availability(macos, introduced=10.3)));
224 [Mac (10, 3)]
225 [Field ("kABParentLabel")]
226 NSString kABParentLabel { get; }
227
228 // extern NSString *const kABBrotherLabel __attribute__((availability(macos, introduced=10.3)));
229 [Mac (10, 3)]
230 [Field ("kABBrotherLabel")]
231 NSString kABBrotherLabel { get; }
232
233 // extern NSString *const kABSisterLabel __attribute__((availability(macos, introduced=10.3)));
234 [Mac (10, 3)]
235 [Field ("kABSisterLabel")]
236 NSString kABSisterLabel { get; }
237
238 // extern NSString *const kABChildLabel __attribute__((availability(macos, introduced=10.3)));
239 [Mac (10, 3)]
240 [Field ("kABChildLabel")]
241 NSString kABChildLabel { get; }
242
243 // extern NSString *const kABFriendLabel __attribute__((availability(macos, introduced=10.3)));
244 [Mac (10, 3)]
245 [Field ("kABFriendLabel")]
246 NSString kABFriendLabel { get; }
247
248 // extern NSString *const kABSpouseLabel __attribute__((availability(macos, introduced=10.3)));
249 [Mac (10, 3)]
250 [Field ("kABSpouseLabel")]
251 NSString kABSpouseLabel { get; }
252
253 // extern NSString *const kABPartnerLabel __attribute__((availability(macos, introduced=10.3)));
254 [Mac (10, 3)]
255 [Field ("kABPartnerLabel")]
256 NSString kABPartnerLabel { get; }
257
258 // extern NSString *const kABAssistantLabel __attribute__((availability(macos, introduced=10.3)));
259 [Mac (10, 3)]
260 [Field ("kABAssistantLabel")]
261 NSString kABAssistantLabel { get; }
262
263 // extern NSString *const kABManagerLabel __attribute__((availability(macos, introduced=10.3)));
264 [Mac (10, 3)]
265 [Field ("kABManagerLabel")]
266 NSString kABManagerLabel { get; }
267
268 // extern NSString *const kABDepartmentProperty __attribute__((availability(macos, introduced=10.3)));
269 [Mac (10, 3)]
270 [Field ("kABDepartmentProperty")]
271 NSString kABDepartmentProperty { get; }
272
273 // extern NSString *const kABPersonFlags __attribute__((availability(macos, introduced=10.3)));
274 [Mac (10, 3)]
275 [Field ("kABPersonFlags")]
276 NSString kABPersonFlags { get; }
277
278 // extern NSString *const kABPhoneProperty;
279 [Field ("kABPhoneProperty")]
280 NSString kABPhoneProperty { get; }
281
282 // extern NSString *const kABPhoneWorkLabel;
283 [Field ("kABPhoneWorkLabel")]
284 NSString kABPhoneWorkLabel { get; }
285
286 // extern NSString *const kABPhoneHomeLabel;
287 [Field ("kABPhoneHomeLabel")]
288 NSString kABPhoneHomeLabel { get; }
289
290 // extern NSString *const kABPhoneiPhoneLabel;
291 [Field ("kABPhoneiPhoneLabel")]
292 NSString kABPhoneiPhoneLabel { get; }
293
294 // extern NSString *const kABPhoneMobileLabel;
295 [Field ("kABPhoneMobileLabel")]
296 NSString kABPhoneMobileLabel { get; }
297
298 // extern NSString *const kABPhoneMainLabel;
299 [Field ("kABPhoneMainLabel")]
300 NSString kABPhoneMainLabel { get; }
301
302 // extern NSString *const kABPhoneHomeFAXLabel;
303 [Field ("kABPhoneHomeFAXLabel")]
304 NSString kABPhoneHomeFAXLabel { get; }
305
306 // extern NSString *const kABPhoneWorkFAXLabel;
307 [Field ("kABPhoneWorkFAXLabel")]
308 NSString kABPhoneWorkFAXLabel { get; }
309
310 // extern NSString *const kABPhonePagerLabel;
311 [Field ("kABPhonePagerLabel")]
312 NSString kABPhonePagerLabel { get; }
313
314 // extern NSString *const kABAIMInstantProperty __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
315 [Introduced (PlatformName.MacOSX, 10, 0)]
316 [Deprecated (PlatformName.MacOSX, 10, 7)]
317 [Field ("kABAIMInstantProperty")]
318 NSString kABAIMInstantProperty { get; }
319
320 // extern NSString *const kABAIMWorkLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
321 [Introduced (PlatformName.MacOSX, 10, 0)]
322 [Deprecated (PlatformName.MacOSX, 10, 7)]
323 [Field ("kABAIMWorkLabel")]
324 NSString kABAIMWorkLabel { get; }
325
326 // extern NSString *const kABAIMHomeLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
327 [Introduced (PlatformName.MacOSX, 10, 0)]
328 [Deprecated (PlatformName.MacOSX, 10, 7)]
329 [Field ("kABAIMHomeLabel")]
330 NSString kABAIMHomeLabel { get; }
331
332 // extern NSString *const kABAIMMobileMeLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
333 [Introduced (PlatformName.MacOSX, 10, 0)]
334 [Deprecated (PlatformName.MacOSX, 10, 7)]
335 [Field ("kABAIMMobileMeLabel")]
336 NSString kABAIMMobileMeLabel { get; }
337
338 // extern NSString *const kABJabberInstantProperty __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
339 [Introduced (PlatformName.MacOSX, 10, 0)]
340 [Deprecated (PlatformName.MacOSX, 10, 7)]
341 [Field ("kABJabberInstantProperty")]
342 NSString kABJabberInstantProperty { get; }
343
344 // extern NSString *const kABJabberWorkLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
345 [Introduced (PlatformName.MacOSX, 10, 0)]
346 [Deprecated (PlatformName.MacOSX, 10, 7)]
347 [Field ("kABJabberWorkLabel")]
348 NSString kABJabberWorkLabel { get; }
349
350 // extern NSString *const kABJabberHomeLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
351 [Introduced (PlatformName.MacOSX, 10, 0)]
352 [Deprecated (PlatformName.MacOSX, 10, 7)]
353 [Field ("kABJabberHomeLabel")]
354 NSString kABJabberHomeLabel { get; }
355
356 // extern NSString *const kABMSNInstantProperty __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
357 [Introduced (PlatformName.MacOSX, 10, 0)]
358 [Deprecated (PlatformName.MacOSX, 10, 7)]
359 [Field ("kABMSNInstantProperty")]
360 NSString kABMSNInstantProperty { get; }
361
362 // extern NSString *const kABMSNWorkLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
363 [Introduced (PlatformName.MacOSX, 10, 0)]
364 [Deprecated (PlatformName.MacOSX, 10, 7)]
365 [Field ("kABMSNWorkLabel")]
366 NSString kABMSNWorkLabel { get; }
367
368 // extern NSString *const kABMSNHomeLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
369 [Introduced (PlatformName.MacOSX, 10, 0)]
370 [Deprecated (PlatformName.MacOSX, 10, 7)]
371 [Field ("kABMSNHomeLabel")]
372 NSString kABMSNHomeLabel { get; }
373
374 // extern NSString *const kABYahooInstantProperty __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
375 [Introduced (PlatformName.MacOSX, 10, 0)]
376 [Deprecated (PlatformName.MacOSX, 10, 7)]
377 [Field ("kABYahooInstantProperty")]
378 NSString kABYahooInstantProperty { get; }
379
380 // extern NSString *const kABYahooWorkLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
381 [Introduced (PlatformName.MacOSX, 10, 0)]
382 [Deprecated (PlatformName.MacOSX, 10, 7)]
383 [Field ("kABYahooWorkLabel")]
384 NSString kABYahooWorkLabel { get; }
385
386 // extern NSString *const kABYahooHomeLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
387 [Introduced (PlatformName.MacOSX, 10, 0)]
388 [Deprecated (PlatformName.MacOSX, 10, 7)]
389 [Field ("kABYahooHomeLabel")]
390 NSString kABYahooHomeLabel { get; }
391
392 // extern NSString *const kABICQInstantProperty __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
393 [Introduced (PlatformName.MacOSX, 10, 0)]
394 [Deprecated (PlatformName.MacOSX, 10, 7)]
395 [Field ("kABICQInstantProperty")]
396 NSString kABICQInstantProperty { get; }
397
398 // extern NSString *const kABICQWorkLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
399 [Introduced (PlatformName.MacOSX, 10, 0)]
400 [Deprecated (PlatformName.MacOSX, 10, 7)]
401 [Field ("kABICQWorkLabel")]
402 NSString kABICQWorkLabel { get; }
403
404 // extern NSString *const kABICQHomeLabel __attribute__((availability(macos, introduced=10.0, deprecated=10.7)));
405 [Introduced (PlatformName.MacOSX, 10, 0)]
406 [Deprecated (PlatformName.MacOSX, 10, 7)]
407 [Field ("kABICQHomeLabel")]
408 NSString kABICQHomeLabel { get; }
409
410 // extern NSString *const kABInstantMessageProperty __attribute__((availability(macos, introduced=10.7)));
411 [Mac (10, 7)]
412 [Field ("kABInstantMessageProperty")]
413 NSString kABInstantMessageProperty { get; }
414
415 // extern NSString *const kABInstantMessageUsernameKey __attribute__((availability(macos, introduced=10.7)));
416 [Mac (10, 7)]
417 [Field ("kABInstantMessageUsernameKey")]
418 NSString kABInstantMessageUsernameKey { get; }
419
420 // extern NSString *const kABInstantMessageServiceKey __attribute__((availability(macos, introduced=10.7)));
421 [Mac (10, 7)]
422 [Field ("kABInstantMessageServiceKey")]
423 NSString kABInstantMessageServiceKey { get; }
424
425 // extern NSString *const kABInstantMessageServiceAIM __attribute__((availability(macos, introduced=10.7)));
426 [Mac (10, 7)]
427 [Field ("kABInstantMessageServiceAIM")]
428 NSString kABInstantMessageServiceAIM { get; }
429
430 // extern NSString *const kABInstantMessageServiceFacebook __attribute__((availability(macos, introduced=10.7)));
431 [Mac (10, 7)]
432 [Field ("kABInstantMessageServiceFacebook")]
433 NSString kABInstantMessageServiceFacebook { get; }
434
435 // extern NSString *const kABInstantMessageServiceGaduGadu __attribute__((availability(macos, introduced=10.7)));
436 [Mac (10, 7)]
437 [Field ("kABInstantMessageServiceGaduGadu")]
438 NSString kABInstantMessageServiceGaduGadu { get; }
439
440 // extern NSString *const kABInstantMessageServiceGoogleTalk __attribute__((availability(macos, introduced=10.7)));
441 [Mac (10, 7)]
442 [Field ("kABInstantMessageServiceGoogleTalk")]
443 NSString kABInstantMessageServiceGoogleTalk { get; }
444
445 // extern NSString *const kABInstantMessageServiceICQ __attribute__((availability(macos, introduced=10.7)));
446 [Mac (10, 7)]
447 [Field ("kABInstantMessageServiceICQ")]
448 NSString kABInstantMessageServiceICQ { get; }
449
450 // extern NSString *const kABInstantMessageServiceJabber __attribute__((availability(macos, introduced=10.7)));
451 [Mac (10, 7)]
452 [Field ("kABInstantMessageServiceJabber")]
453 NSString kABInstantMessageServiceJabber { get; }
454
455 // extern NSString *const kABInstantMessageServiceMSN __attribute__((availability(macos, introduced=10.7)));
456 [Mac (10, 7)]
457 [Field ("kABInstantMessageServiceMSN")]
458 NSString kABInstantMessageServiceMSN { get; }
459
460 // extern NSString *const kABInstantMessageServiceQQ __attribute__((availability(macos, introduced=10.7)));
461 [Mac (10, 7)]
462 [Field ("kABInstantMessageServiceQQ")]
463 NSString kABInstantMessageServiceQQ { get; }
464
465 // extern NSString *const kABInstantMessageServiceSkype __attribute__((availability(macos, introduced=10.7)));
466 [Mac (10, 7)]
467 [Field ("kABInstantMessageServiceSkype")]
468 NSString kABInstantMessageServiceSkype { get; }
469
470 // extern NSString *const kABInstantMessageServiceYahoo __attribute__((availability(macos, introduced=10.7)));
471 [Mac (10, 7)]
472 [Field ("kABInstantMessageServiceYahoo")]
473 NSString kABInstantMessageServiceYahoo { get; }
474
475 // extern NSString *const kABSocialProfileProperty __attribute__((availability(macos, introduced=10.7)));
476 [Mac (10, 7)]
477 [Field ("kABSocialProfileProperty")]
478 NSString kABSocialProfileProperty { get; }
479
480 // extern NSString *const kABSocialProfileURLKey __attribute__((availability(macos, introduced=10.7)));
481 [Mac (10, 7)]
482 [Field ("kABSocialProfileURLKey")]
483 NSString kABSocialProfileURLKey { get; }
484
485 // extern NSString *const kABSocialProfileUsernameKey __attribute__((availability(macos, introduced=10.7)));
486 [Mac (10, 7)]
487 [Field ("kABSocialProfileUsernameKey")]
488 NSString kABSocialProfileUsernameKey { get; }
489
490 // extern NSString *const kABSocialProfileUserIdentifierKey __attribute__((availability(macos, introduced=10.7)));
491 [Mac (10, 7)]
492 [Field ("kABSocialProfileUserIdentifierKey")]
493 NSString kABSocialProfileUserIdentifierKey { get; }
494
495 // extern NSString *const kABSocialProfileServiceKey __attribute__((availability(macos, introduced=10.7)));
496 [Mac (10, 7)]
497 [Field ("kABSocialProfileServiceKey")]
498 NSString kABSocialProfileServiceKey { get; }
499
500 // extern NSString *const kABSocialProfileServiceTwitter __attribute__((availability(macos, introduced=10.7)));
501 [Mac (10, 7)]
502 [Field ("kABSocialProfileServiceTwitter")]
503 NSString kABSocialProfileServiceTwitter { get; }
504
505 // extern NSString *const kABSocialProfileServiceFacebook __attribute__((availability(macos, introduced=10.7)));
506 [Mac (10, 7)]
507 [Field ("kABSocialProfileServiceFacebook")]
508 NSString kABSocialProfileServiceFacebook { get; }
509
510 // extern NSString *const kABSocialProfileServiceLinkedIn __attribute__((availability(macos, introduced=10.7)));
511 [Mac (10, 7)]
512 [Field ("kABSocialProfileServiceLinkedIn")]
513 NSString kABSocialProfileServiceLinkedIn { get; }
514
515 // extern NSString *const kABSocialProfileServiceFlickr __attribute__((availability(macos, introduced=10.7)));
516 [Mac (10, 7)]
517 [Field ("kABSocialProfileServiceFlickr")]
518 NSString kABSocialProfileServiceFlickr { get; }
519
520 // extern NSString *const kABSocialProfileServiceMySpace __attribute__((availability(macos, introduced=10.7)));
521 [Mac (10, 7)]
522 [Field ("kABSocialProfileServiceMySpace")]
523 NSString kABSocialProfileServiceMySpace { get; }
524
525 // extern NSString *const kABSocialProfileServiceSinaWeibo __attribute__((availability(macos, introduced=10.8)));
526 [Mac (10, 8)]
527 [Field ("kABSocialProfileServiceSinaWeibo")]
528 NSString kABSocialProfileServiceSinaWeibo { get; }
529
530 // extern NSString *const kABSocialProfileServiceTencentWeibo __attribute__((availability(macos, introduced=10.9)));
531 [Mac (10, 9)]
532 [Field ("kABSocialProfileServiceTencentWeibo")]
533 NSString kABSocialProfileServiceTencentWeibo { get; }
534
535 // extern NSString *const kABSocialProfileServiceYelp __attribute__((availability(macos, introduced=10.9)));
536 [Mac (10, 9)]
537 [Field ("kABSocialProfileServiceYelp")]
538 NSString kABSocialProfileServiceYelp { get; }
539
540 // extern NSString *const kABNoteProperty;
541 [Field ("kABNoteProperty")]
542 NSString kABNoteProperty { get; }
543
544 // extern NSString *const kABMiddleNameProperty;
545 [Field ("kABMiddleNameProperty")]
546 NSString kABMiddleNameProperty { get; }
547
548 // extern NSString *const kABMiddleNamePhoneticProperty;
549 [Field ("kABMiddleNamePhoneticProperty")]
550 NSString kABMiddleNamePhoneticProperty { get; }
551
552 // extern NSString *const kABTitleProperty;
553 [Field ("kABTitleProperty")]
554 NSString kABTitleProperty { get; }
555
556 // extern NSString *const kABSuffixProperty;
557 [Field ("kABSuffixProperty")]
558 NSString kABSuffixProperty { get; }
559
560 // extern NSString *const kABGroupNameProperty;
561 [Field ("kABGroupNameProperty")]
562 NSString kABGroupNameProperty { get; }
563
564 // extern NSString *const kABWorkLabel;
565 [Field ("kABWorkLabel")]
566 NSString kABWorkLabel { get; }
567
568 // extern NSString *const kABHomeLabel;
569 [Field ("kABHomeLabel")]
570 NSString kABHomeLabel { get; }
571
572 // extern NSString *const kABOtherLabel;
573 [Field ("kABOtherLabel")]
574 NSString kABOtherLabel { get; }
575
576 // extern NSString *const kABMobileMeLabel __attribute__((availability(macos, introduced=10.7)));
577 [Mac (10, 7)]
578 [Field ("kABMobileMeLabel")]
579 NSString kABMobileMeLabel { get; }
580
581 // extern NSString *const kABDatabaseChangedNotification;
582 [Field ("kABDatabaseChangedNotification")]
583 NSString kABDatabaseChangedNotification { get; }
584
585 // extern NSString *const kABDatabaseChangedExternallyNotification;
586 [Field ("kABDatabaseChangedExternallyNotification")]
587 NSString kABDatabaseChangedExternallyNotification { get; }
588
589 // extern NSString *const kABInsertedRecords __attribute__((availability(macos, introduced=10.3)));
590 [Mac (10, 3)]
591 [Field ("kABInsertedRecords")]
592 NSString kABInsertedRecords { get; }
593
594 // extern NSString *const kABUpdatedRecords __attribute__((availability(macos, introduced=10.3)));
595 [Mac (10, 3)]
596 [Field ("kABUpdatedRecords")]
597 NSString kABUpdatedRecords { get; }
598
599 // extern NSString *const kABDeletedRecords __attribute__((availability(macos, introduced=10.3)));
600 [Mac (10, 3)]
601 [Field ("kABDeletedRecords")]
602 NSString kABDeletedRecords { get; }
603}
604
605static class CFunctions
606{
607 // extern NSString * ABLocalizedPropertyOrLabel (NSString *propertyOrLabel);
608 [DllImport ("__Internal")]
609 [Verify (PlatformInvoke)]
610 static extern NSString ABLocalizedPropertyOrLabel (NSString propertyOrLabel);
611
612 // extern ABAddressBookRef ABGetSharedAddressBook ();
613 [DllImport ("__Internal")]
614 [Verify (PlatformInvoke)]
615 static extern unsafe ABAddressBookRef* ABGetSharedAddressBook ();
616
617 // extern CFArrayRef ABCopyArrayOfMatchingRecords (ABAddressBookRef addressBook, ABSearchElementRef search);
618 [DllImport ("__Internal")]
619 [Verify (PlatformInvoke)]
620 static extern unsafe CFArrayRef* ABCopyArrayOfMatchingRecords (ABAddressBookRef* addressBook, ABSearchElementRef* search);
621
622 // extern _Bool ABSave (ABAddressBookRef addressBook);
623 [DllImport ("__Internal")]
624 [Verify (PlatformInvoke)]
625 static extern unsafe bool ABSave (ABAddressBookRef* addressBook);
626
627 // extern _Bool ABHasUnsavedChanges (ABAddressBookRef addressBook);
628 [DllImport ("__Internal")]
629 [Verify (PlatformInvoke)]
630 static extern unsafe bool ABHasUnsavedChanges (ABAddressBookRef* addressBook);
631
632 // extern ABPersonRef ABGetMe (ABAddressBookRef addressBook);
633 [DllImport ("__Internal")]
634 [Verify (PlatformInvoke)]
635 static extern unsafe ABPersonRef* ABGetMe (ABAddressBookRef* addressBook);
636
637 // extern void ABSetMe (ABAddressBookRef addressBook, ABPersonRef moi);
638 [DllImport ("__Internal")]
639 [Verify (PlatformInvoke)]
640 static extern unsafe void ABSetMe (ABAddressBookRef* addressBook, ABPersonRef* moi);
641
642 // extern CFStringRef ABCopyRecordTypeFromUniqueId (ABAddressBookRef addressBook, CFStringRef uniqueId) __attribute__((availability(macos, introduced=10.3)));
643 [Mac (10,3)]
644 [DllImport ("__Internal")]
645 [Verify (PlatformInvoke)]
646 static extern unsafe CFStringRef* ABCopyRecordTypeFromUniqueId (ABAddressBookRef* addressBook, CFStringRef* uniqueId);
647
648 // extern CFIndex ABAddPropertiesAndTypes (ABAddressBookRef addressBook, CFStringRef recordType, CFDictionaryRef propertiesAndTypes);
649 [DllImport ("__Internal")]
650 [Verify (PlatformInvoke)]
651 static extern unsafe nint ABAddPropertiesAndTypes (ABAddressBookRef* addressBook, CFStringRef* recordType, CFDictionaryRef* propertiesAndTypes);
652
653 // extern CFIndex ABRemoveProperties (ABAddressBookRef addressBook, CFStringRef recordType, CFArrayRef properties);
654 [DllImport ("__Internal")]
655 [Verify (PlatformInvoke)]
656 static extern unsafe nint ABRemoveProperties (ABAddressBookRef* addressBook, CFStringRef* recordType, CFArrayRef* properties);
657
658 // extern CFArrayRef ABCopyArrayOfPropertiesForRecordType (ABAddressBookRef addressBook, CFStringRef recordType);
659 [DllImport ("__Internal")]
660 [Verify (PlatformInvoke)]
661 static extern unsafe CFArrayRef* ABCopyArrayOfPropertiesForRecordType (ABAddressBookRef* addressBook, CFStringRef* recordType);
662
663 // extern ABPropertyType ABTypeOfProperty (ABAddressBookRef addressBook, CFStringRef recordType, CFStringRef property);
664 [DllImport ("__Internal")]
665 [Verify (PlatformInvoke)]
666 static extern unsafe nint ABTypeOfProperty (ABAddressBookRef* addressBook, CFStringRef* recordType, CFStringRef* property);
667
668 // extern ABRecordRef ABCopyRecordForUniqueId (ABAddressBookRef addressBook, CFStringRef uniqueId);
669 [DllImport ("__Internal")]
670 [Verify (PlatformInvoke)]
671 static extern unsafe void* ABCopyRecordForUniqueId (ABAddressBookRef* addressBook, CFStringRef* uniqueId);
672
673 // extern _Bool ABAddRecord (ABAddressBookRef addressBook, ABRecordRef record);
674 [DllImport ("__Internal")]
675 [Verify (PlatformInvoke)]
676 static extern unsafe bool ABAddRecord (ABAddressBookRef* addressBook, void* record);
677
678 // extern _Bool ABRemoveRecord (ABAddressBookRef addressBook, ABRecordRef record);
679 [DllImport ("__Internal")]
680 [Verify (PlatformInvoke)]
681 static extern unsafe bool ABRemoveRecord (ABAddressBookRef* addressBook, void* record);
682
683 // extern CFArrayRef ABCopyArrayOfAllPeople (ABAddressBookRef addressBook);
684 [DllImport ("__Internal")]
685 [Verify (PlatformInvoke)]
686 static extern unsafe CFArrayRef* ABCopyArrayOfAllPeople (ABAddressBookRef* addressBook);
687
688 // extern CFArrayRef ABCopyArrayOfAllGroups (ABAddressBookRef addressBook);
689 [DllImport ("__Internal")]
690 [Verify (PlatformInvoke)]
691 static extern unsafe CFArrayRef* ABCopyArrayOfAllGroups (ABAddressBookRef* addressBook);
692
693 // extern ABRecordRef ABRecordCreateCopy (ABRecordRef record) __attribute__((availability(macos, introduced=10.4)));
694 [Mac (10,4)]
695 [DllImport ("__Internal")]
696 [Verify (PlatformInvoke)]
697 static extern unsafe void* ABRecordCreateCopy (void* record);
698
699 // extern CFStringRef ABRecordCopyRecordType (ABRecordRef record);
700 [DllImport ("__Internal")]
701 [Verify (PlatformInvoke)]
702 static extern unsafe CFStringRef* ABRecordCopyRecordType (void* record);
703
704 // extern CFTypeRef ABRecordCopyValue (ABRecordRef record, CFStringRef property);
705 [DllImport ("__Internal")]
706 [Verify (PlatformInvoke)]
707 static extern unsafe void* ABRecordCopyValue (void* record, CFStringRef* property);
708
709 // extern _Bool ABRecordSetValue (ABRecordRef record, CFStringRef property, CFTypeRef value);
710 [DllImport ("__Internal")]
711 [Verify (PlatformInvoke)]
712 static extern unsafe bool ABRecordSetValue (void* record, CFStringRef* property, void* value);
713
714 // extern _Bool ABRecordRemoveValue (ABRecordRef record, CFStringRef property);
715 [DllImport ("__Internal")]
716 [Verify (PlatformInvoke)]
717 static extern unsafe bool ABRecordRemoveValue (void* record, CFStringRef* property);
718
719 // extern _Bool ABRecordIsReadOnly (ABRecordRef record) __attribute__((availability(macos, introduced=10.4)));
720 [Mac (10,4)]
721 [DllImport ("__Internal")]
722 [Verify (PlatformInvoke)]
723 static extern unsafe bool ABRecordIsReadOnly (void* record);
724
725 // extern CFStringRef ABRecordCopyUniqueId (ABRecordRef record);
726 [DllImport ("__Internal")]
727 [Verify (PlatformInvoke)]
728 static extern unsafe CFStringRef* ABRecordCopyUniqueId (void* record);
729
730 // extern ABPersonRef ABPersonCreate ();
731 [DllImport ("__Internal")]
732 [Verify (PlatformInvoke)]
733 static extern unsafe ABPersonRef* ABPersonCreate ();
734
735 // extern ABPersonRef ABPersonCreateWithVCardRepresentation (CFDataRef vCard);
736 [DllImport ("__Internal")]
737 [Verify (PlatformInvoke)]
738 static extern unsafe ABPersonRef* ABPersonCreateWithVCardRepresentation (CFDataRef* vCard);
739
740 // extern CFDataRef ABPersonCopyVCardRepresentation (ABPersonRef person);
741 [DllImport ("__Internal")]
742 [Verify (PlatformInvoke)]
743 static extern unsafe CFDataRef* ABPersonCopyVCardRepresentation (ABPersonRef* person);
744
745 // extern CFArrayRef ABPersonCopyParentGroups (ABPersonRef person);
746 [DllImport ("__Internal")]
747 [Verify (PlatformInvoke)]
748 static extern unsafe CFArrayRef* ABPersonCopyParentGroups (ABPersonRef* person);
749
750 // extern ABSearchElementRef ABPersonCreateSearchElement (CFStringRef property, CFStringRef label, CFStringRef key, CFTypeRef value, ABSearchComparison comparison);
751 [DllImport ("__Internal")]
752 [Verify (PlatformInvoke)]
753 static extern unsafe ABSearchElementRef* ABPersonCreateSearchElement (CFStringRef* property, CFStringRef* label, CFStringRef* key, void* value, nint comparison);
754
755 // extern ABGroupRef ABGroupCreate ();
756 [DllImport ("__Internal")]
757 [Verify (PlatformInvoke)]
758 static extern unsafe ABGroupRef* ABGroupCreate ();
759
760 // extern CFArrayRef ABGroupCopyArrayOfAllMembers (ABGroupRef group);
761 [DllImport ("__Internal")]
762 [Verify (PlatformInvoke)]
763 static extern unsafe CFArrayRef* ABGroupCopyArrayOfAllMembers (ABGroupRef* group);
764
765 // extern _Bool ABGroupAddMember (ABGroupRef group, ABPersonRef personToAdd);
766 [DllImport ("__Internal")]
767 [Verify (PlatformInvoke)]
768 static extern unsafe bool ABGroupAddMember (ABGroupRef* group, ABPersonRef* personToAdd);
769
770 // extern _Bool ABGroupRemoveMember (ABGroupRef group, ABPersonRef personToRemove);
771 [DllImport ("__Internal")]
772 [Verify (PlatformInvoke)]
773 static extern unsafe bool ABGroupRemoveMember (ABGroupRef* group, ABPersonRef* personToRemove);
774
775 // extern CFArrayRef ABGroupCopyArrayOfAllSubgroups (ABGroupRef group);
776 [DllImport ("__Internal")]
777 [Verify (PlatformInvoke)]
778 static extern unsafe CFArrayRef* ABGroupCopyArrayOfAllSubgroups (ABGroupRef* group);
779
780 // extern _Bool ABGroupAddGroup (ABGroupRef group, ABGroupRef groupToAdd);
781 [DllImport ("__Internal")]
782 [Verify (PlatformInvoke)]
783 static extern unsafe bool ABGroupAddGroup (ABGroupRef* group, ABGroupRef* groupToAdd);
784
785 // extern _Bool ABGroupRemoveGroup (ABGroupRef group, ABGroupRef groupToRemove);
786 [DllImport ("__Internal")]
787 [Verify (PlatformInvoke)]
788 static extern unsafe bool ABGroupRemoveGroup (ABGroupRef* group, ABGroupRef* groupToRemove);
789
790 // extern CFArrayRef ABGroupCopyParentGroups (ABGroupRef group);
791 [DllImport ("__Internal")]
792 [Verify (PlatformInvoke)]
793 static extern unsafe CFArrayRef* ABGroupCopyParentGroups (ABGroupRef* group);
794
795 // extern _Bool ABGroupSetDistributionIdentifier (ABGroupRef group, ABPersonRef person, CFStringRef property, CFStringRef identifier);
796 [DllImport ("__Internal")]
797 [Verify (PlatformInvoke)]
798 static extern unsafe bool ABGroupSetDistributionIdentifier (ABGroupRef* group, ABPersonRef* person, CFStringRef* property, CFStringRef* identifier);
799
800 // extern CFStringRef ABGroupCopyDistributionIdentifier (ABGroupRef group, ABPersonRef person, CFStringRef property);
801 [DllImport ("__Internal")]
802 [Verify (PlatformInvoke)]
803 static extern unsafe CFStringRef* ABGroupCopyDistributionIdentifier (ABGroupRef* group, ABPersonRef* person, CFStringRef* property);
804
805 // extern ABSearchElementRef ABGroupCreateSearchElement (CFStringRef property, CFStringRef label, CFStringRef key, CFTypeRef value, ABSearchComparison comparison);
806 [DllImport ("__Internal")]
807 [Verify (PlatformInvoke)]
808 static extern unsafe ABSearchElementRef* ABGroupCreateSearchElement (CFStringRef* property, CFStringRef* label, CFStringRef* key, void* value, nint comparison);
809
810 // extern ABSearchElementRef ABSearchElementCreateWithConjunction (ABSearchConjunction conjunction, CFArrayRef childrenSearchElement);
811 [DllImport ("__Internal")]
812 [Verify (PlatformInvoke)]
813 static extern unsafe ABSearchElementRef* ABSearchElementCreateWithConjunction (nint conjunction, CFArrayRef* childrenSearchElement);
814
815 // extern _Bool ABSearchElementMatchesRecord (ABSearchElementRef searchElement, ABRecordRef record);
816 [DllImport ("__Internal")]
817 [Verify (PlatformInvoke)]
818 static extern unsafe bool ABSearchElementMatchesRecord (ABSearchElementRef* searchElement, void* record);
819
820 // extern ABMultiValueRef ABMultiValueCreate ();
821 [DllImport ("__Internal")]
822 [Verify (PlatformInvoke)]
823 static extern unsafe ABMultiValueRef* ABMultiValueCreate ();
824
825 // extern CFIndex ABMultiValueCount (ABMultiValueRef multiValue);
826 [DllImport ("__Internal")]
827 [Verify (PlatformInvoke)]
828 static extern unsafe nint ABMultiValueCount (ABMultiValueRef* multiValue);
829
830 // extern CFTypeRef ABMultiValueCopyValueAtIndex (ABMultiValueRef multiValue, CFIndex index);
831 [DllImport ("__Internal")]
832 [Verify (PlatformInvoke)]
833 static extern unsafe void* ABMultiValueCopyValueAtIndex (ABMultiValueRef* multiValue, nint index);
834
835 // extern CFStringRef ABMultiValueCopyLabelAtIndex (ABMultiValueRef multiValue, CFIndex index);
836 [DllImport ("__Internal")]
837 [Verify (PlatformInvoke)]
838 static extern unsafe CFStringRef* ABMultiValueCopyLabelAtIndex (ABMultiValueRef* multiValue, nint index);
839
840 // extern CFStringRef ABMultiValueCopyPrimaryIdentifier (ABMultiValueRef multiValue);
841 [DllImport ("__Internal")]
842 [Verify (PlatformInvoke)]
843 static extern unsafe CFStringRef* ABMultiValueCopyPrimaryIdentifier (ABMultiValueRef* multiValue);
844
845 // extern CFIndex ABMultiValueIndexForIdentifier (ABMultiValueRef multiValue, CFStringRef identifier);
846 [DllImport ("__Internal")]
847 [Verify (PlatformInvoke)]
848 static extern unsafe nint ABMultiValueIndexForIdentifier (ABMultiValueRef* multiValue, CFStringRef* identifier);
849
850 // extern CFStringRef ABMultiValueCopyIdentifierAtIndex (ABMultiValueRef multiValue, CFIndex index);
851 [DllImport ("__Internal")]
852 [Verify (PlatformInvoke)]
853 static extern unsafe CFStringRef* ABMultiValueCopyIdentifierAtIndex (ABMultiValueRef* multiValue, nint index);
854
855 // extern ABPropertyType ABMultiValuePropertyType (ABMultiValueRef multiValue);
856 [DllImport ("__Internal")]
857 [Verify (PlatformInvoke)]
858 static extern unsafe nint ABMultiValuePropertyType (ABMultiValueRef* multiValue);
859
860 // extern ABMultiValueRef ABMultiValueCreateCopy (ABMultiValueRef multiValue);
861 [DllImport ("__Internal")]
862 [Verify (PlatformInvoke)]
863 static extern unsafe ABMultiValueRef* ABMultiValueCreateCopy (ABMultiValueRef* multiValue);
864
865 // extern ABMutableMultiValueRef ABMultiValueCreateMutable ();
866 [DllImport ("__Internal")]
867 [Verify (PlatformInvoke)]
868 static extern unsafe ABMutableMultiValueRef* ABMultiValueCreateMutable ();
869
870 // extern _Bool ABMultiValueAdd (ABMutableMultiValueRef multiValue, CFTypeRef value, CFStringRef label, CFStringRef *outIdentifier);
871 [DllImport ("__Internal")]
872 [Verify (PlatformInvoke)]
873 static extern unsafe bool ABMultiValueAdd (ABMutableMultiValueRef* multiValue, void* value, CFStringRef* label, CFStringRef** outIdentifier);
874
875 // extern _Bool ABMultiValueInsert (ABMutableMultiValueRef multiValue, CFTypeRef value, CFStringRef label, CFIndex index, CFStringRef *outIdentifier);
876 [DllImport ("__Internal")]
877 [Verify (PlatformInvoke)]
878 static extern unsafe bool ABMultiValueInsert (ABMutableMultiValueRef* multiValue, void* value, CFStringRef* label, nint index, CFStringRef** outIdentifier);
879
880 // extern _Bool ABMultiValueRemove (ABMutableMultiValueRef multiValue, CFIndex index);
881 [DllImport ("__Internal")]
882 [Verify (PlatformInvoke)]
883 static extern unsafe bool ABMultiValueRemove (ABMutableMultiValueRef* multiValue, nint index);
884
885 // extern _Bool ABMultiValueReplaceValue (ABMutableMultiValueRef multiValue, CFTypeRef value, CFIndex index);
886 [DllImport ("__Internal")]
887 [Verify (PlatformInvoke)]
888 static extern unsafe bool ABMultiValueReplaceValue (ABMutableMultiValueRef* multiValue, void* value, nint index);
889
890 // extern _Bool ABMultiValueReplaceLabel (ABMutableMultiValueRef multiValue, CFStringRef label, CFIndex index);
891 [DllImport ("__Internal")]
892 [Verify (PlatformInvoke)]
893 static extern unsafe bool ABMultiValueReplaceLabel (ABMutableMultiValueRef* multiValue, CFStringRef* label, nint index);
894
895 // extern _Bool ABMultiValueSetPrimaryIdentifier (ABMutableMultiValueRef multiValue, CFStringRef identifier);
896 [DllImport ("__Internal")]
897 [Verify (PlatformInvoke)]
898 static extern unsafe bool ABMultiValueSetPrimaryIdentifier (ABMutableMultiValueRef* multiValue, CFStringRef* identifier);
899
900 // extern ABMutableMultiValueRef ABMultiValueCreateMutableCopy (ABMultiValueRef multiValue);
901 [DllImport ("__Internal")]
902 [Verify (PlatformInvoke)]
903 static extern unsafe ABMutableMultiValueRef* ABMultiValueCreateMutableCopy (ABMultiValueRef* multiValue);
904
905 // extern CFStringRef ABCopyLocalizedPropertyOrLabel (CFStringRef labelOrProperty);
906 [DllImport ("__Internal")]
907 [Verify (PlatformInvoke)]
908 static extern unsafe CFStringRef* ABCopyLocalizedPropertyOrLabel (CFStringRef* labelOrProperty);
909
910 // extern CFStringRef ABCreateFormattedAddressFromDictionary (ABAddressBookRef addressBook, CFDictionaryRef address) __attribute__((availability(macos, introduced=10.3)));
911 [Mac (10,3)]
912 [DllImport ("__Internal")]
913 [Verify (PlatformInvoke)]
914 static extern unsafe CFStringRef* ABCreateFormattedAddressFromDictionary (ABAddressBookRef* addressBook, CFDictionaryRef* address);
915
916 // extern CFStringRef ABCopyDefaultCountryCode (ABAddressBookRef addressBook) __attribute__((availability(macos, introduced=10.3)));
917 [Mac (10,3)]
918 [DllImport ("__Internal")]
919 [Verify (PlatformInvoke)]
920 static extern unsafe CFStringRef* ABCopyDefaultCountryCode (ABAddressBookRef* addressBook);
921
922 // extern _Bool ABPersonSetImageData (ABPersonRef person, CFDataRef imageData);
923 [DllImport ("__Internal")]
924 [Verify (PlatformInvoke)]
925 static extern unsafe bool ABPersonSetImageData (ABPersonRef* person, CFDataRef* imageData);
926
927 // extern CFDataRef ABPersonCopyImageData (ABPersonRef person);
928 [DllImport ("__Internal")]
929 [Verify (PlatformInvoke)]
930 static extern unsafe CFDataRef* ABPersonCopyImageData (ABPersonRef* person);
931
932 // extern CFIndex ABBeginLoadingImageDataForClient (ABPersonRef person, ABImageClientCallback callback, void *refcon);
933 [DllImport ("__Internal")]
934 [Verify (PlatformInvoke)]
935 static extern unsafe nint ABBeginLoadingImageDataForClient (ABPersonRef* person, ABImageClientCallback* callback, void* refcon);
936
937 // extern void ABCancelLoadingImageDataForTag (CFIndex tag);
938 [DllImport ("__Internal")]
939 [Verify (PlatformInvoke)]
940 static extern void ABCancelLoadingImageDataForTag (nint tag);
941
942 // extern ABPickerRef ABPickerCreate () __attribute__((availability(macos, introduced=10.3)));
943 [Mac (10,3)]
944 [DllImport ("__Internal")]
945 [Verify (PlatformInvoke)]
946 static extern unsafe ABPickerRef* ABPickerCreate ();
947
948 // extern void ABPickerSetFrame (ABPickerRef inPicker, const HIRect *inFrame) __attribute__((availability(macos, introduced=10.3)));
949 [Mac (10,3)]
950 [DllImport ("__Internal")]
951 [Verify (PlatformInvoke)]
952 static extern unsafe void ABPickerSetFrame (ABPickerRef* inPicker, HIRect* inFrame);
953
954 // extern void ABPickerGetFrame (ABPickerRef inPicker, HIRect *outFrame) __attribute__((availability(macos, introduced=10.3)));
955 [Mac (10,3)]
956 [DllImport ("__Internal")]
957 [Verify (PlatformInvoke)]
958 static extern unsafe void ABPickerGetFrame (ABPickerRef* inPicker, HIRect* outFrame);
959
960 // extern void ABPickerSetVisibility (ABPickerRef inPicker, _Bool visible) __attribute__((availability(macos, introduced=10.3)));
961 [Mac (10,3)]
962 [DllImport ("__Internal")]
963 [Verify (PlatformInvoke)]
964 static extern unsafe void ABPickerSetVisibility (ABPickerRef* inPicker, bool visible);
965
966 // extern _Bool ABPickerIsVisible (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
967 [Mac (10,3)]
968 [DllImport ("__Internal")]
969 [Verify (PlatformInvoke)]
970 static extern unsafe bool ABPickerIsVisible (ABPickerRef* inPicker);
971
972 // extern ABPickerAttributes ABPickerGetAttributes (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
973 [Mac (10,3)]
974 [DllImport ("__Internal")]
975 [Verify (PlatformInvoke)]
976 static extern unsafe uint ABPickerGetAttributes (ABPickerRef* inPicker);
977
978 // extern void ABPickerChangeAttributes (ABPickerRef inPicker, ABPickerAttributes inAttributesToSet, ABPickerAttributes inAttributesToClear) __attribute__((availability(macos, introduced=10.3)));
979 [Mac (10,3)]
980 [DllImport ("__Internal")]
981 [Verify (PlatformInvoke)]
982 static extern unsafe void ABPickerChangeAttributes (ABPickerRef* inPicker, uint inAttributesToSet, uint inAttributesToClear);
983
984 // extern void ABPickerAddProperty (ABPickerRef inPicker, CFStringRef inProperty) __attribute__((availability(macos, introduced=10.3)));
985 [Mac (10,3)]
986 [DllImport ("__Internal")]
987 [Verify (PlatformInvoke)]
988 static extern unsafe void ABPickerAddProperty (ABPickerRef* inPicker, CFStringRef* inProperty);
989
990 // extern void ABPickerRemoveProperty (ABPickerRef inPicker, CFStringRef inProperty) __attribute__((availability(macos, introduced=10.3)));
991 [Mac (10,3)]
992 [DllImport ("__Internal")]
993 [Verify (PlatformInvoke)]
994 static extern unsafe void ABPickerRemoveProperty (ABPickerRef* inPicker, CFStringRef* inProperty);
995
996 // extern CFArrayRef ABPickerCopyProperties (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
997 [Mac (10,3)]
998 [DllImport ("__Internal")]
999 [Verify (PlatformInvoke)]
1000 static extern unsafe CFArrayRef* ABPickerCopyProperties (ABPickerRef* inPicker);
1001
1002 // extern void ABPickerSetColumnTitle (ABPickerRef inPicker, CFStringRef inTitle, CFStringRef inProperty) __attribute__((availability(macos, introduced=10.3)));
1003 [Mac (10,3)]
1004 [DllImport ("__Internal")]
1005 [Verify (PlatformInvoke)]
1006 static extern unsafe void ABPickerSetColumnTitle (ABPickerRef* inPicker, CFStringRef* inTitle, CFStringRef* inProperty);
1007
1008 // extern CFStringRef ABPickerCopyColumnTitle (ABPickerRef inPicker, CFStringRef inProperty) __attribute__((availability(macos, introduced=10.3)));
1009 [Mac (10,3)]
1010 [DllImport ("__Internal")]
1011 [Verify (PlatformInvoke)]
1012 static extern unsafe CFStringRef* ABPickerCopyColumnTitle (ABPickerRef* inPicker, CFStringRef* inProperty);
1013
1014 // extern void ABPickerSetDisplayedProperty (ABPickerRef inPicker, CFStringRef inProperty) __attribute__((availability(macos, introduced=10.3)));
1015 [Mac (10,3)]
1016 [DllImport ("__Internal")]
1017 [Verify (PlatformInvoke)]
1018 static extern unsafe void ABPickerSetDisplayedProperty (ABPickerRef* inPicker, CFStringRef* inProperty);
1019
1020 // extern CFStringRef ABPickerCopyDisplayedProperty (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1021 [Mac (10,3)]
1022 [DllImport ("__Internal")]
1023 [Verify (PlatformInvoke)]
1024 static extern unsafe CFStringRef* ABPickerCopyDisplayedProperty (ABPickerRef* inPicker);
1025
1026 // extern CFArrayRef ABPickerCopySelectedGroups (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1027 [Mac (10,3)]
1028 [DllImport ("__Internal")]
1029 [Verify (PlatformInvoke)]
1030 static extern unsafe CFArrayRef* ABPickerCopySelectedGroups (ABPickerRef* inPicker);
1031
1032 // extern CFArrayRef ABPickerCopySelectedRecords (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1033 [Mac (10,3)]
1034 [DllImport ("__Internal")]
1035 [Verify (PlatformInvoke)]
1036 static extern unsafe CFArrayRef* ABPickerCopySelectedRecords (ABPickerRef* inPicker);
1037
1038 // extern CFArrayRef ABPickerCopySelectedIdentifiers (ABPickerRef inPicker, ABPersonRef inPerson) __attribute__((availability(macos, introduced=10.3)));
1039 [Mac (10,3)]
1040 [DllImport ("__Internal")]
1041 [Verify (PlatformInvoke)]
1042 static extern unsafe CFArrayRef* ABPickerCopySelectedIdentifiers (ABPickerRef* inPicker, ABPersonRef* inPerson);
1043
1044 // extern CFArrayRef ABPickerCopySelectedValues (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1045 [Mac (10,3)]
1046 [DllImport ("__Internal")]
1047 [Verify (PlatformInvoke)]
1048 static extern unsafe CFArrayRef* ABPickerCopySelectedValues (ABPickerRef* inPicker);
1049
1050 // extern void ABPickerSelectGroup (ABPickerRef inPicker, ABGroupRef inGroup, _Bool inExtendSelection) __attribute__((availability(macos, introduced=10.3)));
1051 [Mac (10,3)]
1052 [DllImport ("__Internal")]
1053 [Verify (PlatformInvoke)]
1054 static extern unsafe void ABPickerSelectGroup (ABPickerRef* inPicker, ABGroupRef* inGroup, bool inExtendSelection);
1055
1056 // extern void ABPickerSelectRecord (ABPickerRef inPicker, ABRecordRef inRecord, _Bool inExtendSelection) __attribute__((availability(macos, introduced=10.3)));
1057 [Mac (10,3)]
1058 [DllImport ("__Internal")]
1059 [Verify (PlatformInvoke)]
1060 static extern unsafe void ABPickerSelectRecord (ABPickerRef* inPicker, void* inRecord, bool inExtendSelection);
1061
1062 // extern void ABPickerSelectIdentifier (ABPickerRef inPicker, ABPersonRef inPerson, CFStringRef inIdentifier, _Bool inExtendSelection) __attribute__((availability(macos, introduced=10.3)));
1063 [Mac (10,3)]
1064 [DllImport ("__Internal")]
1065 [Verify (PlatformInvoke)]
1066 static extern unsafe void ABPickerSelectIdentifier (ABPickerRef* inPicker, ABPersonRef* inPerson, CFStringRef* inIdentifier, bool inExtendSelection);
1067
1068 // extern void ABPickerDeselectGroup (ABPickerRef inPicker, ABGroupRef inGroup) __attribute__((availability(macos, introduced=10.3)));
1069 [Mac (10,3)]
1070 [DllImport ("__Internal")]
1071 [Verify (PlatformInvoke)]
1072 static extern unsafe void ABPickerDeselectGroup (ABPickerRef* inPicker, ABGroupRef* inGroup);
1073
1074 // extern void ABPickerDeselectRecord (ABPickerRef inPicker, ABRecordRef inRecord) __attribute__((availability(macos, introduced=10.3)));
1075 [Mac (10,3)]
1076 [DllImport ("__Internal")]
1077 [Verify (PlatformInvoke)]
1078 static extern unsafe void ABPickerDeselectRecord (ABPickerRef* inPicker, void* inRecord);
1079
1080 // extern void ABPickerDeselectIdentifier (ABPickerRef inPicker, ABPersonRef inPerson, CFStringRef inIdentifier) __attribute__((availability(macos, introduced=10.3)));
1081 [Mac (10,3)]
1082 [DllImport ("__Internal")]
1083 [Verify (PlatformInvoke)]
1084 static extern unsafe void ABPickerDeselectIdentifier (ABPickerRef* inPicker, ABPersonRef* inPerson, CFStringRef* inIdentifier);
1085
1086 // extern void ABPickerDeselectAll (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1087 [Mac (10,3)]
1088 [DllImport ("__Internal")]
1089 [Verify (PlatformInvoke)]
1090 static extern unsafe void ABPickerDeselectAll (ABPickerRef* inPicker);
1091
1092 // extern void ABPickerSetDelegate (ABPickerRef inPicker, EventTargetRef inDelegate) __attribute__((availability(macos, introduced=10.3)));
1093 [Mac (10,3)]
1094 [DllImport ("__Internal")]
1095 [Verify (PlatformInvoke)]
1096 static extern unsafe void ABPickerSetDelegate (ABPickerRef* inPicker, EventTargetRef* inDelegate);
1097
1098 // extern EventTargetRef ABPickerGetDelegate (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1099 [Mac (10,3)]
1100 [DllImport ("__Internal")]
1101 [Verify (PlatformInvoke)]
1102 static extern unsafe EventTargetRef* ABPickerGetDelegate (ABPickerRef* inPicker);
1103
1104 // extern void ABPickerClearSearchField (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1105 [Mac (10,3)]
1106 [DllImport ("__Internal")]
1107 [Verify (PlatformInvoke)]
1108 static extern unsafe void ABPickerClearSearchField (ABPickerRef* inPicker);
1109
1110 // extern void ABPickerEditInAddressBook (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1111 [Mac (10,3)]
1112 [DllImport ("__Internal")]
1113 [Verify (PlatformInvoke)]
1114 static extern unsafe void ABPickerEditInAddressBook (ABPickerRef* inPicker);
1115
1116 // extern void ABPickerSelectInAddressBook (ABPickerRef inPicker) __attribute__((availability(macos, introduced=10.3)));
1117 [Mac (10,3)]
1118 [DllImport ("__Internal")]
1119 [Verify (PlatformInvoke)]
1120 static extern unsafe void ABPickerSelectInAddressBook (ABPickerRef* inPicker);
1121}
1122
1123[Verify (InferredFromMemberPrefix)]
1124public enum Ab : uint
1125{
1126 AddRecordsError = 1001,
1127 RemoveRecordsError = 1002,
1128 PropertyValueValidationError = 1012,
1129 PropertyUnsupportedBySourceError = 1013,
1130 PropertyReadOnlyError = 1014
1131}
1132
1133[Static]
1134[Verify (ConstantsInterfaceAssociation)]
1135partial interface Constants
1136{
1137 // extern NSString * ABAddressBookErrorDomain __attribute__((availability(macos, introduced=10.7)));
1138 [Mac (10, 7)]
1139 [Field ("ABAddressBookErrorDomain")]
1140 NSString ABAddressBookErrorDomain { get; }
1141
1142 // extern NSString * ABMultiValueIdentifiersErrorKey __attribute__((availability(macos, introduced=10.7)));
1143 [Mac (10, 7)]
1144 [Field ("ABMultiValueIdentifiersErrorKey")]
1145 NSString ABMultiValueIdentifiersErrorKey { get; }
1146}
1147
1148// @interface ABAddressBook : NSObject
1149[BaseType (typeof(NSObject))]
1150interface ABAddressBook
1151{
1152 // +(ABAddressBook *)sharedAddressBook;
1153 [Static]
1154 [Export ("sharedAddressBook")]
1155 [Verify (MethodToProperty)]
1156 ABAddressBook SharedAddressBook { get; }
1157
1158 // +(ABAddressBook *)addressBook __attribute__((availability(macos, introduced=10.5)));
1159 [Mac (10, 5)]
1160 [Static]
1161 [Export ("addressBook")]
1162 [Verify (MethodToProperty)]
1163 ABAddressBook AddressBook { get; }
1164
1165 // -(NSArray *)recordsMatchingSearchElement:(ABSearchElement *)search;
1166 [Export ("recordsMatchingSearchElement:")]
1167 [Verify (StronglyTypedNSArray)]
1168 NSObject[] RecordsMatchingSearchElement (ABSearchElement search);
1169
1170 // -(BOOL)save;
1171 [Export ("save")]
1172 [Verify (MethodToProperty)]
1173 bool Save { get; }
1174
1175 // -(BOOL)saveAndReturnError:(NSError **)error __attribute__((availability(macos, introduced=10.5)));
1176 [Mac (10,5)]
1177 [Export ("saveAndReturnError:")]
1178 bool SaveAndReturnError (out NSError error);
1179
1180 // -(BOOL)hasUnsavedChanges;
1181 [Export ("hasUnsavedChanges")]
1182 [Verify (MethodToProperty)]
1183 bool HasUnsavedChanges { get; }
1184
1185 // -(ABPerson *)me;
1186 // -(void)setMe:(ABPerson *)moi;
1187 [Export ("me")]
1188 [Verify (MethodToProperty)]
1189 ABPerson Me { get; set; }
1190
1191 // -(ABRecord *)recordForUniqueId:(NSString *)uniqueId;
1192 [Export ("recordForUniqueId:")]
1193 ABRecord RecordForUniqueId (string uniqueId);
1194
1195 // -(BOOL)addRecord:(ABRecord *)record error:(NSError **)error __attribute__((availability(macos, introduced=10.7)));
1196 [Mac (10,7)]
1197 [Export ("addRecord:error:")]
1198 bool AddRecord (ABRecord record, out NSError error);
1199
1200 // -(BOOL)addRecord:(ABRecord *)record;
1201 [Export ("addRecord:")]
1202 bool AddRecord (ABRecord record);
1203
1204 // -(BOOL)removeRecord:(ABRecord *)record error:(NSError **)error __attribute__((availability(macos, introduced=10.7)));
1205 [Mac (10,7)]
1206 [Export ("removeRecord:error:")]
1207 bool RemoveRecord (ABRecord record, out NSError error);
1208
1209 // -(BOOL)removeRecord:(ABRecord *)record;
1210 [Export ("removeRecord:")]
1211 bool RemoveRecord (ABRecord record);
1212
1213 // -(NSArray *)people;
1214 [Export ("people")]
1215 [Verify (StronglyTypedNSArray)]
1216 NSObject[] People ();
1217
1218 // -(NSArray *)groups;
1219 [Export ("groups")]
1220 [Verify (StronglyTypedNSArray)]
1221 NSObject[] Groups ();
1222
1223 // -(NSString *)recordClassFromUniqueId:(NSString *)uniqueId __attribute__((availability(macos, introduced=10.3)));
1224 [Mac (10,3)]
1225 [Export ("recordClassFromUniqueId:")]
1226 string RecordClassFromUniqueId (string uniqueId);
1227
1228 // -(NSAttributedString *)formattedAddressFromDictionary:(NSDictionary *)address __attribute__((availability(macos, introduced=10.3)));
1229 [Mac (10,3)]
1230 [Export ("formattedAddressFromDictionary:")]
1231 NSAttributedString FormattedAddressFromDictionary (NSDictionary address);
1232
1233 // -(NSString *)defaultCountryCode __attribute__((availability(macos, introduced=10.3)));
1234 [Mac (10,3)]
1235 [Export ("defaultCountryCode")]
1236 string DefaultCountryCode ();
1237
1238 // -(NSInteger)defaultNameOrdering __attribute__((availability(macos, introduced=10.3)));
1239 [Mac (10,3)]
1240 [Export ("defaultNameOrdering")]
1241 nint DefaultNameOrdering ();
1242}
1243
1244[StructLayout (LayoutKind.Sequential)]
1245public struct __ABBookflags
1246{
1247 public uint hasUnsavedChanges;
1248
1249 public uint readOnly;
1250
1251 public uint importMe;
1252
1253 public uint needConversion;
1254
1255 public uint cleanedUp;
1256
1257 public uint importTips;
1258
1259 public uint restoreFromMetaData;
1260
1261 public uint prefsNeedSync;
1262
1263 public uint waitingForReset;
1264
1265 public uint enforcesConstraints;
1266
1267 public uint tracksAllSources;
1268
1269 public uint _reserved;
1270}
1271
1272// @interface ABRecord : NSObject
1273[BaseType (typeof(NSObject))]
1274interface ABRecord
1275{
1276 // -(id)initWithAddressBook:(ABAddressBook *)addressBook __attribute__((availability(macos, introduced=10.5)));
1277 [Mac (10,5)]
1278 [Export ("initWithAddressBook:")]
1279 IntPtr Constructor (ABAddressBook addressBook);
1280
1281 // -(id)valueForProperty:(NSString *)property;
1282 [Export ("valueForProperty:")]
1283 NSObject ValueForProperty (string property);
1284
1285 // -(BOOL)setValue:(id)value forProperty:(NSString *)property error:(NSError **)error __attribute__((availability(macos, introduced=10.7)));
1286 [Mac (10,7)]
1287 [Export ("setValue:forProperty:error:")]
1288 bool SetValue (NSObject value, string property, out NSError error);
1289
1290 // -(BOOL)setValue:(id)value forProperty:(NSString *)property;
1291 [Export ("setValue:forProperty:")]
1292 bool SetValue (NSObject value, string property);
1293
1294 // -(BOOL)removeValueForProperty:(NSString *)property;
1295 [Export ("removeValueForProperty:")]
1296 bool RemoveValueForProperty (string property);
1297
1298 // -(BOOL)isReadOnly __attribute__((availability(macos, introduced=10.4)));
1299 [Mac (10, 4)]
1300 [Export ("isReadOnly")]
1301 [Verify (MethodToProperty)]
1302 bool IsReadOnly { get; }
1303}
1304
1305// @interface ABRecord_Convenience (ABRecord)
1306[Category]
1307[BaseType (typeof(ABRecord))]
1308interface ABRecord_ABRecord_Convenience
1309{
1310 // @property (readonly, copy) NSString * uniqueId;
1311 [Export ("uniqueId")]
1312 string UniqueId { get; }
1313
1314 // @property (readonly, copy) NSString * displayName __attribute__((availability(macos, introduced=10.10)));
1315 [Mac (10, 10)]
1316 [Export ("displayName")]
1317 string DisplayName { get; }
1318}
1319
1320// @interface ABGroup : ABRecord
1321[BaseType (typeof(ABRecord))]
1322interface ABGroup
1323{
1324 // -(NSArray *)members;
1325 [Export ("members")]
1326 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1327 NSObject[] Members { get; }
1328
1329 // -(BOOL)addMember:(ABPerson *)person;
1330 [Export ("addMember:")]
1331 bool AddMember (ABPerson person);
1332
1333 // -(BOOL)removeMember:(ABPerson *)person;
1334 [Export ("removeMember:")]
1335 bool RemoveMember (ABPerson person);
1336
1337 // -(NSArray *)subgroups;
1338 [Export ("subgroups")]
1339 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1340 NSObject[] Subgroups { get; }
1341
1342 // -(BOOL)addSubgroup:(ABGroup *)group;
1343 [Export ("addSubgroup:")]
1344 bool AddSubgroup (ABGroup group);
1345
1346 // -(BOOL)removeSubgroup:(ABGroup *)group;
1347 [Export ("removeSubgroup:")]
1348 bool RemoveSubgroup (ABGroup group);
1349
1350 // -(NSArray *)parentGroups;
1351 [Export ("parentGroups")]
1352 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1353 NSObject[] ParentGroups { get; }
1354
1355 // -(BOOL)setDistributionIdentifier:(NSString *)identifier forProperty:(NSString *)property person:(ABPerson *)person;
1356 [Export ("setDistributionIdentifier:forProperty:person:")]
1357 bool SetDistributionIdentifier (string identifier, string property, ABPerson person);
1358
1359 // -(NSString *)distributionIdentifierForProperty:(NSString *)property person:(ABPerson *)person;
1360 [Export ("distributionIdentifierForProperty:person:")]
1361 string DistributionIdentifierForProperty (string property, ABPerson person);
1362}
1363
1364// @interface ABGroup_Properties (ABGroup)
1365[Category]
1366[BaseType (typeof(ABGroup))]
1367interface ABGroup_ABGroup_Properties
1368{
1369 // +(NSInteger)addPropertiesAndTypes:(NSDictionary *)properties;
1370 [Static]
1371 [Export ("addPropertiesAndTypes:")]
1372 nint AddPropertiesAndTypes (NSDictionary properties);
1373
1374 // +(NSInteger)removeProperties:(NSArray *)properties;
1375 [Static]
1376 [Export ("removeProperties:")]
1377 [Verify (StronglyTypedNSArray)]
1378 nint RemoveProperties (NSObject[] properties);
1379
1380 // +(NSArray *)properties;
1381 [Static]
1382 [Export ("properties")]
1383 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1384 NSObject[] Properties { get; }
1385
1386 // +(ABPropertyType)typeOfProperty:(NSString *)property;
1387 [Static]
1388 [Export ("typeOfProperty:")]
1389 nint TypeOfProperty (string property);
1390}
1391
1392// @interface ABGroup_Searching (ABGroup)
1393[Category]
1394[BaseType (typeof(ABGroup))]
1395interface ABGroup_ABGroup_Searching
1396{
1397 // +(ABSearchElement *)searchElementForProperty:(NSString *)property label:(NSString *)label key:(NSString *)key value:(id)value comparison:(ABSearchComparison)comparison;
1398 [Static]
1399 [Export ("searchElementForProperty:label:key:value:comparison:")]
1400 ABSearchElement SearchElementForProperty (string property, string label, string key, NSObject value, nint comparison);
1401}
1402
1403// @interface ABPerson : ABRecord
1404[BaseType (typeof(ABRecord))]
1405interface ABPerson
1406{
1407 // -(NSArray *)parentGroups;
1408 [Export ("parentGroups")]
1409 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1410 NSObject[] ParentGroups { get; }
1411
1412 // -(NSArray *)linkedPeople __attribute__((availability(macos, introduced=10.8)));
1413 [Mac (10, 8)]
1414 [Export ("linkedPeople")]
1415 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1416 NSObject[] LinkedPeople { get; }
1417}
1418
1419// @interface ABPerson_Properties (ABPerson)
1420[Category]
1421[BaseType (typeof(ABPerson))]
1422interface ABPerson_ABPerson_Properties
1423{
1424 // +(NSInteger)addPropertiesAndTypes:(NSDictionary *)properties;
1425 [Static]
1426 [Export ("addPropertiesAndTypes:")]
1427 nint AddPropertiesAndTypes (NSDictionary properties);
1428
1429 // +(NSInteger)removeProperties:(NSArray *)properties;
1430 [Static]
1431 [Export ("removeProperties:")]
1432 [Verify (StronglyTypedNSArray)]
1433 nint RemoveProperties (NSObject[] properties);
1434
1435 // +(NSArray *)properties;
1436 [Static]
1437 [Export ("properties")]
1438 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1439 NSObject[] Properties { get; }
1440
1441 // +(ABPropertyType)typeOfProperty:(NSString *)property;
1442 [Static]
1443 [Export ("typeOfProperty:")]
1444 nint TypeOfProperty (string property);
1445}
1446
1447// @interface ABPerson_Searching (ABPerson)
1448[Category]
1449[BaseType (typeof(ABPerson))]
1450interface ABPerson_ABPerson_Searching
1451{
1452 // +(ABSearchElement *)searchElementForProperty:(NSString *)property label:(NSString *)label key:(NSString *)key value:(id)value comparison:(ABSearchComparison)comparison;
1453 [Static]
1454 [Export ("searchElementForProperty:label:key:value:comparison:")]
1455 ABSearchElement SearchElementForProperty (string property, string label, string key, NSObject value, nint comparison);
1456}
1457
1458// @interface ABPerson_vCard (ABPerson)
1459[Category]
1460[BaseType (typeof(ABPerson))]
1461interface ABPerson_ABPerson_vCard
1462{
1463 // -(id)initWithVCardRepresentation:(NSData *)vCardData;
1464 [Export ("initWithVCardRepresentation:")]
1465 IntPtr Constructor (NSData vCardData);
1466
1467 // -(NSData *)vCardRepresentation;
1468 [Export ("vCardRepresentation")]
1469 [Verify (MethodToProperty)]
1470 NSData VCardRepresentation { get; }
1471}
1472
1473// @protocol ABImageClient <NSObject>
1474/*
1475 Check whether adding [Model] to this declaration is appropriate.
1476 [Model] is used to generate a C# class that implements this protocol,
1477 and might be useful for protocols that consumers are supposed to implement,
1478 since consumers can subclass the generated class instead of implementing
1479 the generated interface. If consumers are not supposed to implement this
1480 protocol, then [Model] is redundant and will generate code that will never
1481 be used.
1482*/[Protocol]
1483[BaseType (typeof(NSObject))]
1484interface ABImageClient
1485{
1486 // @required -(void)consumeImageData:(NSData *)data forTag:(NSInteger)tag;
1487 [Abstract]
1488 [Export ("consumeImageData:forTag:")]
1489 void ForTag (NSData data, nint tag);
1490}
1491
1492// @interface ABPersonImageAdditions (ABPerson)
1493[Category]
1494[BaseType (typeof(ABPerson))]
1495interface ABPerson_ABPersonImageAdditions
1496{
1497 // -(BOOL)setImageData:(NSData *)data;
1498 [Export ("setImageData:")]
1499 bool SetImageData (NSData data);
1500
1501 // -(NSData *)imageData;
1502 [Export ("imageData")]
1503 [Verify (MethodToProperty)]
1504 NSData ImageData { get; }
1505
1506 // -(NSInteger)beginLoadingImageDataForClient:(id<ABImageClient>)client;
1507 [Export ("beginLoadingImageDataForClient:")]
1508 nint BeginLoadingImageDataForClient (ABImageClient client);
1509
1510 // +(void)cancelLoadingImageDataForTag:(NSInteger)tag;
1511 [Static]
1512 [Export ("cancelLoadingImageDataForTag:")]
1513 void CancelLoadingImageDataForTag (nint tag);
1514}
1515
1516// @interface ABSearchElement : NSObject
1517[BaseType (typeof(NSObject))]
1518interface ABSearchElement
1519{
1520 // +(ABSearchElement *)searchElementForConjunction:(ABSearchConjunction)conjuction children:(NSArray *)children;
1521 [Static]
1522 [Export ("searchElementForConjunction:children:")]
1523 [Verify (StronglyTypedNSArray)]
1524 ABSearchElement SearchElementForConjunction (nint conjuction, NSObject[] children);
1525
1526 // -(BOOL)matchesRecord:(ABRecord *)record;
1527 [Export ("matchesRecord:")]
1528 bool MatchesRecord (ABRecord record);
1529}
1530
1531// @interface ABMultiValue : NSObject <NSCopying, NSMutableCopying, NSFastEnumeration>
1532[BaseType (typeof(NSObject))]
1533interface ABMultiValue : INSCopying, INSMutableCopying, INSFastEnumeration
1534{
1535 // -(NSUInteger)count;
1536 [Export ("count")]
1537 [Verify (MethodToProperty)]
1538 nuint Count { get; }
1539
1540 // -(id)valueAtIndex:(NSUInteger)index;
1541 [Export ("valueAtIndex:")]
1542 NSObject ValueAtIndex (nuint index);
1543
1544 // -(NSString *)labelAtIndex:(NSUInteger)index;
1545 [Export ("labelAtIndex:")]
1546 string LabelAtIndex (nuint index);
1547
1548 // -(NSString *)identifierAtIndex:(NSUInteger)index;
1549 [Export ("identifierAtIndex:")]
1550 string IdentifierAtIndex (nuint index);
1551
1552 // -(NSUInteger)indexForIdentifier:(NSString *)identifier;
1553 [Export ("indexForIdentifier:")]
1554 nuint IndexForIdentifier (string identifier);
1555
1556 // -(NSString *)primaryIdentifier;
1557 [Export ("primaryIdentifier")]
1558 [Verify (MethodToProperty)]
1559 string PrimaryIdentifier { get; }
1560
1561 // -(ABPropertyType)propertyType;
1562 [Export ("propertyType")]
1563 [Verify (MethodToProperty)]
1564 nint PropertyType { get; }
1565
1566 // -(id)valueForIdentifier:(NSString *)identifier;
1567 [Export ("valueForIdentifier:")]
1568 NSObject ValueForIdentifier (string identifier);
1569
1570 // -(id)labelForIdentifier:(NSString *)identifier;
1571 [Export ("labelForIdentifier:")]
1572 NSObject LabelForIdentifier (string identifier);
1573}
1574
1575// @interface ABMutableMultiValue : ABMultiValue
1576[BaseType (typeof(ABMultiValue))]
1577interface ABMutableMultiValue
1578{
1579 // -(NSString *)addValue:(id)value withLabel:(NSString *)label;
1580 [Export ("addValue:withLabel:")]
1581 string AddValue (NSObject value, string label);
1582
1583 // -(NSString *)insertValue:(id)value withLabel:(NSString *)label atIndex:(NSUInteger)index;
1584 [Export ("insertValue:withLabel:atIndex:")]
1585 string InsertValue (NSObject value, string label, nuint index);
1586
1587 // -(BOOL)removeValueAndLabelAtIndex:(NSUInteger)index;
1588 [Export ("removeValueAndLabelAtIndex:")]
1589 bool RemoveValueAndLabelAtIndex (nuint index);
1590
1591 // -(BOOL)replaceValueAtIndex:(NSUInteger)index withValue:(id)value;
1592 [Export ("replaceValueAtIndex:withValue:")]
1593 bool ReplaceValueAtIndex (nuint index, NSObject value);
1594
1595 // -(BOOL)replaceLabelAtIndex:(NSUInteger)index withLabel:(NSString *)label;
1596 [Export ("replaceLabelAtIndex:withLabel:")]
1597 bool ReplaceLabelAtIndex (nuint index, string label);
1598
1599 // -(BOOL)setPrimaryIdentifier:(NSString *)identifier;
1600 [Export ("setPrimaryIdentifier:")]
1601 bool SetPrimaryIdentifier (string identifier);
1602}
1603
1604// @interface ABActionDelegate (NSObject)
1605[Category]
1606[BaseType (typeof(NSObject))]
1607interface NSObject_ABActionDelegate
1608{
1609 // -(NSString *)actionProperty;
1610 [Export ("actionProperty")]
1611 [Verify (MethodToProperty)]
1612 string ActionProperty { get; }
1613
1614 // -(NSString *)titleForPerson:(ABPerson *)person identifier:(NSString *)identifier;
1615 [Export ("titleForPerson:identifier:")]
1616 string TitleForPerson (ABPerson person, string identifier);
1617
1618 // -(void)performActionForPerson:(ABPerson *)person identifier:(NSString *)identifier;
1619 [Export ("performActionForPerson:identifier:")]
1620 void PerformActionForPerson (ABPerson person, string identifier);
1621
1622 // -(BOOL)shouldEnableActionForPerson:(ABPerson *)person identifier:(NSString *)identifier;
1623 [Export ("shouldEnableActionForPerson:identifier:")]
1624 bool ShouldEnableActionForPerson (ABPerson person, string identifier);
1625}
1626
1627public enum ABPeoplePickerSelectionBehavior : uint
1628{
1629 NoValueSelection = 0,
1630 SingleValueSelection = 1,
1631 MultipleValueSelection = 2
1632}
1633
1634// @interface ABPeoplePickerView : NSView
1635[Unavailable (PlatformName.MacCatalyst)]
1636[Mac (10,3)]
1637[Advice ("This API is not available when using UIKit on macOS.")]
1638[BaseType (typeof(NSView))]
1639interface ABPeoplePickerView
1640{
1641 // @property (retain, nonatomic) NSView * accessoryView __attribute__((iboutlet));
1642 [Export ("accessoryView", ArgumentSemantic.Retain)]
1643 NSView AccessoryView { get; set; }
1644
1645 // @property (assign, nonatomic) ABPeoplePickerSelectionBehavior valueSelectionBehavior;
1646 [Export ("valueSelectionBehavior", ArgumentSemantic.Assign)]
1647 ABPeoplePickerSelectionBehavior ValueSelectionBehavior { get; set; }
1648
1649 // @property (assign, nonatomic) BOOL allowsGroupSelection;
1650 [Export ("allowsGroupSelection")]
1651 bool AllowsGroupSelection { get; set; }
1652
1653 // @property (assign, nonatomic) BOOL allowsMultipleSelection;
1654 [Export ("allowsMultipleSelection")]
1655 bool AllowsMultipleSelection { get; set; }
1656
1657 // -(void)addProperty:(NSString *)property;
1658 [Export ("addProperty:")]
1659 void AddProperty (string property);
1660
1661 // -(void)removeProperty:(NSString *)property;
1662 [Export ("removeProperty:")]
1663 void RemoveProperty (string property);
1664
1665 // -(NSArray *)properties;
1666 [Export ("properties")]
1667 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1668 NSObject[] Properties { get; }
1669
1670 // -(void)setColumnTitle:(NSString *)title forProperty:(NSString *)property;
1671 [Export ("setColumnTitle:forProperty:")]
1672 void SetColumnTitle (string title, string property);
1673
1674 // -(NSString *)columnTitleForProperty:(NSString *)property;
1675 [Export ("columnTitleForProperty:")]
1676 string ColumnTitleForProperty (string property);
1677
1678 // @property (retain, nonatomic) NSString * displayedProperty;
1679 [Export ("displayedProperty", ArgumentSemantic.Retain)]
1680 string DisplayedProperty { get; set; }
1681
1682 // @property (retain, nonatomic) NSString * autosaveName;
1683 [Export ("autosaveName", ArgumentSemantic.Retain)]
1684 string AutosaveName { get; set; }
1685
1686 // @property (readonly) NSArray * selectedGroups;
1687 [Export ("selectedGroups")]
1688 [Verify (StronglyTypedNSArray)]
1689 NSObject[] SelectedGroups { get; }
1690
1691 // @property (readonly) NSArray * selectedRecords;
1692 [Export ("selectedRecords")]
1693 [Verify (StronglyTypedNSArray)]
1694 NSObject[] SelectedRecords { get; }
1695
1696 // -(NSArray *)selectedIdentifiersForPerson:(ABPerson *)person;
1697 [Export ("selectedIdentifiersForPerson:")]
1698 [Verify (StronglyTypedNSArray)]
1699 NSObject[] SelectedIdentifiersForPerson (ABPerson person);
1700
1701 // -(void)selectGroup:(ABGroup *)group byExtendingSelection:(BOOL)extend;
1702 [Export ("selectGroup:byExtendingSelection:")]
1703 void SelectGroup (ABGroup group, bool extend);
1704
1705 // -(void)selectRecord:(ABRecord *)record byExtendingSelection:(BOOL)extend;
1706 [Export ("selectRecord:byExtendingSelection:")]
1707 void SelectRecord (ABRecord record, bool extend);
1708
1709 // -(void)selectIdentifier:(NSString *)identifier forPerson:(ABPerson *)person byExtendingSelection:(BOOL)extend;
1710 [Export ("selectIdentifier:forPerson:byExtendingSelection:")]
1711 void SelectIdentifier (string identifier, ABPerson person, bool extend);
1712
1713 // -(void)deselectGroup:(ABGroup *)group;
1714 [Export ("deselectGroup:")]
1715 void DeselectGroup (ABGroup group);
1716
1717 // -(void)deselectRecord:(ABRecord *)record;
1718 [Export ("deselectRecord:")]
1719 void DeselectRecord (ABRecord record);
1720
1721 // -(void)deselectIdentifier:(NSString *)identifier forPerson:(ABPerson *)person;
1722 [Export ("deselectIdentifier:forPerson:")]
1723 void DeselectIdentifier (string identifier, ABPerson person);
1724
1725 // -(void)deselectAll:(id)sender;
1726 [Export ("deselectAll:")]
1727 void DeselectAll (NSObject sender);
1728
1729 // -(void)clearSearchField:(id)sender;
1730 [Export ("clearSearchField:")]
1731 void ClearSearchField (NSObject sender);
1732
1733 // @property (assign, nonatomic) id target;
1734 [Export ("target", ArgumentSemantic.Assign)]
1735 NSObject Target { get; set; }
1736
1737 // @property (assign, nonatomic) SEL groupDoubleAction;
1738 [Export ("groupDoubleAction", ArgumentSemantic.Assign)]
1739 Selector GroupDoubleAction { get; set; }
1740
1741 // @property (assign, nonatomic) SEL nameDoubleAction;
1742 [Export ("nameDoubleAction", ArgumentSemantic.Assign)]
1743 Selector NameDoubleAction { get; set; }
1744}
1745
1746[Static]
1747[Verify (ConstantsInterfaceAssociation)]
1748partial interface Constants
1749{
1750 // extern NSString *const ABPeoplePickerGroupSelectionDidChangeNotification __attribute__((availability(macos, introduced=10.3)));
1751 [Mac (10, 3)]
1752 [Field ("ABPeoplePickerGroupSelectionDidChangeNotification")]
1753 NSString ABPeoplePickerGroupSelectionDidChangeNotification { get; }
1754
1755 // extern NSString *const ABPeoplePickerNameSelectionDidChangeNotification __attribute__((availability(macos, introduced=10.3)));
1756 [Mac (10, 3)]
1757 [Field ("ABPeoplePickerNameSelectionDidChangeNotification")]
1758 NSString ABPeoplePickerNameSelectionDidChangeNotification { get; }
1759
1760 // extern NSString *const ABPeoplePickerValueSelectionDidChangeNotification __attribute__((availability(macos, introduced=10.3)));
1761 [Mac (10, 3)]
1762 [Field ("ABPeoplePickerValueSelectionDidChangeNotification")]
1763 NSString ABPeoplePickerValueSelectionDidChangeNotification { get; }
1764
1765 // extern NSString *const ABPeoplePickerDisplayedPropertyDidChangeNotification __attribute__((availability(macos, introduced=10.3)));
1766 [Mac (10, 3)]
1767 [Field ("ABPeoplePickerDisplayedPropertyDidChangeNotification")]
1768 NSString ABPeoplePickerDisplayedPropertyDidChangeNotification { get; }
1769}
1770
1771// @interface ABPeoplePickerConvenience (ABPeoplePickerView)
1772[Category]
1773[BaseType (typeof(ABPeoplePickerView))]
1774interface ABPeoplePickerView_ABPeoplePickerConvenience
1775{
1776 // -(NSArray *)selectedValues;
1777 [Export ("selectedValues")]
1778 [Verify (MethodToProperty), Verify (StronglyTypedNSArray)]
1779 NSObject[] SelectedValues { get; }
1780
1781 // -(void)editInAddressBook:(id)sender;
1782 [Export ("editInAddressBook:")]
1783 void EditInAddressBook (NSObject sender);
1784
1785 // -(void)selectInAddressBook:(id)sender;
1786 [Export ("selectInAddressBook:")]
1787 void SelectInAddressBook (NSObject sender);
1788}
1789
1790// @interface ABPersonView : NSView
1791[Unavailable (PlatformName.MacCatalyst)]
1792[Mac (10,7)]
1793[Advice ("This API is not available when using UIKit on macOS.")]
1794[BaseType (typeof(NSView))]
1795interface ABPersonView
1796{
1797 // @property (assign) BOOL editing;
1798 [Export ("editing")]
1799 bool Editing { get; set; }
1800
1801 // @property (readwrite, retain) ABPerson * person;
1802 [Export ("person", ArgumentSemantic.Retain)]
1803 ABPerson Person { get; set; }
1804
1805 // @property (assign) BOOL shouldShowLinkedPeople __attribute__((availability(macos, introduced=10.8)));
1806 [Mac (10, 8)]
1807 [Export ("shouldShowLinkedPeople")]
1808 bool ShouldShowLinkedPeople { get; set; }
1809}
1810
1811// @interface ABPersonPicker : NSObject
1812[Unavailable (PlatformName.MacCatalyst)]
1813[Mac (10,9)]
1814[Advice ("This API is not available when using UIKit on macOS.")]
1815[BaseType (typeof(NSObject))]
1816interface ABPersonPicker
1817{
1818 // @property (copy) NSArray * properties;
1819 [Export ("properties", ArgumentSemantic.Copy)]
1820 [Verify (StronglyTypedNSArray)]
1821 NSObject[] Properties { get; set; }
1822
1823 [Wrap ("WeakDelegate")]
1824 ABPersonPickerDelegate Delegate { get; set; }
1825
1826 // @property (assign) id<ABPersonPickerDelegate> delegate;
1827 [NullAllowed, Export ("delegate", ArgumentSemantic.Assign)]
1828 NSObject WeakDelegate { get; set; }
1829
1830 // -(void)showRelativeToRect:(NSRect)positioningRect ofView:(NSView *)positioningView preferredEdge:(NSRectEdge)preferredEdge;
1831 [Export ("showRelativeToRect:ofView:preferredEdge:")]
1832 void ShowRelativeToRect (CGRect positioningRect, NSView positioningView, NSRectEdge preferredEdge);
1833
1834 // -(void)close;
1835 [Export ("close")]
1836 void Close ();
1837}
1838
1839// @protocol ABPersonPickerDelegate <NSObject>
1840[Unavailable (PlatformName.MacCatalyst)]
1841[Mac (10,9)]
1842[Protocol, Model (AutoGeneratedName = true), Advice ("This API is not available when using UIKit on macOS.")]
1843[BaseType (typeof(NSObject))]
1844interface ABPersonPickerDelegate
1845{
1846 // @required -(void)personPicker:(ABPersonPicker *)picker didChoosePerson:(ABPerson *)person property:(NSString *)property identifier:(NSString *)identifier;
1847 [Abstract]
1848 [Export ("personPicker:didChoosePerson:property:identifier:")]
1849 void PersonPicker (ABPersonPicker picker, ABPerson person, string property, string identifier);
1850
1851 // @optional -(void)personPickerDidClose:(ABPersonPicker *)picker;
1852 [Export ("personPickerDidClose:")]
1853 void PersonPickerDidClose (ABPersonPicker picker);
1854}
1855
1856[StructLayout (LayoutKind.Sequential)]
1857public struct ABActionCallbacks
1858{
1859 public nint version;
1860
1861 public unsafe ABActionGetPropertyCallback* property;
1862
1863 public unsafe ABActionCopyTitleCallback* title;
1864
1865 public unsafe ABActionEnabledCallback* enabled;
1866
1867 public unsafe ABActionSelectedCallback* selected;
1868}
1869
1870[Verify (InferredFromMemberPrefix)]
1871public enum kABPicker : uint
1872{
1873 SingleValueSelection = 1 << 0,
1874 MultipleValueSelection = 1 << 1,
1875 AllowGroupSelection = 1 << 2,
1876 AllowMultipleSelection = 1 << 3
1877}
1878
1879public enum : uint
1880{
1881 EventClassABPeoplePicker = 1633841264
1882}
1883
1884[Verify (InferredFromMemberPrefix)]
1885public enum kEventABPeoplePicker : uint
1886{
1887 GroupSelectionChanged = 1,
1888 NameSelectionChanged = 2,
1889 ValueSelectionChanged = 3,
1890 DisplayedPropertyChanged = 4,
1891 GroupDoubleClicked = 5,
1892 NameDoubleClicked = 6
1893}
1894
1895public enum : uint
1896{
1897 EventParamABPickerRef = 1633841264
1898}