peachsim 0.1.2176 → 0.1.2179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +2205 -1861
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +837 -571
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1732 -1396
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +59 -54
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +2223 -1876
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1587 -1319
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryEvent.h +116 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryFetchRequest.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContact+NSItemProvider.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContact+Predicates.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContact.h +169 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactFetchRequest.h +72 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactFormatter.h +136 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactProperty.h +47 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactRelation.h +287 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactStore.h +242 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactVCardSerialization.h +62 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactsUserDefaults.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContainer+Predicates.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContainer.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNError.h +64 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNFetchRequest.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNFetchResult.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNGroup+Predicates.h +28 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNGroup.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNInstantMessageAddress.h +52 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNLabeledValue.h +69 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNMutableContact.h +74 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNMutableGroup.h +25 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNMutablePostalAddress.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPhoneNumber.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddress.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h +91 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNSaveRequest.h +136 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNSocialProfile.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes +28 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/Contacts.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/ContactsDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Contacts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/CNContactPickerViewController.h +92 -0
- package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/CNContactViewController.h +157 -0
- package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/ContactsUI.h +10 -0
- package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/UIApplicationShortcutIcon+Contacts.h +22 -0
- package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +8 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKAlarm.h +114 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKCalendar.h +134 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKCalendarItem.h +129 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKError.h +105 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKEvent.h +205 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKEventStore.h +477 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKObject.h +34 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKParticipant.h +115 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKRecurrenceDayOfWeek.h +71 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKRecurrenceEnd.h +61 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKRecurrenceRule.h +193 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKReminder.h +80 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKSource.h +47 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKStructuredLocation.h +28 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKTypes.h +253 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKVirtualConferenceDescriptor.h +109 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKVirtualConferenceProvider.h +63 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EventKit.apinotes +72 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EventKit.h +29 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EventKitDefines.h +30 -0
- package/sdk/ios/System/Library/Frameworks/EventKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKDefines.h +26 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKPushCredentials.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKPushPayload.h +36 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKPushRegistry.h +330 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKVoIPPushMetadata.h +27 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PushKit.apinotes +43 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PushKit.h +12 -0
- package/sdk/ios/System/Library/Frameworks/PushKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/ARQuickLookPreviewItem.h +63 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLBase.h +34 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLFilePreviewRequest.h +32 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewController.h +174 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewItem.h +45 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewProvider.h +27 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewReply.h +106 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewSceneActivationConfiguration.h +41 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewingController.h +74 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailProvider.h +37 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailReply.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailRequest.h +33 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QuickLook.apinotes +35 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QuickLook.h +30 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QuickLookUICore.h +12 -0
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Modules/module.modulemap +8 -0
- package/src/core-data-entity-classes.ts +316 -0
- package/src/swift-host.ts +12 -0
- package/src/turbo-source.ts +89 -11
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNLabeledValue.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015–2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Contacts/ContactsDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
* @abstract A contact property that has a value and label.
|
|
16
|
+
*/
|
|
17
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
18
|
+
@interface CNLabeledValue<ValueType : id <NSCopying, NSSecureCoding>> : NSObject <NSCopying, NSSecureCoding>
|
|
19
|
+
|
|
20
|
+
/*! The identifier is unique among contacts on the device. It can be saved and used for finding labeled values next application launch. */
|
|
21
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *identifier;
|
|
22
|
+
|
|
23
|
+
@property (readonly, nullable, copy, NS_NONATOMIC_IOSONLY) NSString *label;
|
|
24
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) ValueType value;
|
|
25
|
+
|
|
26
|
+
/*! Returns a new CNLabeledValue with a new identifier. */
|
|
27
|
+
+ (instancetype)labeledValueWithLabel:(nullable NSString *)label value:(ValueType)value;
|
|
28
|
+
|
|
29
|
+
/*! Initializes the CNLabeledValue with a new identifier. */
|
|
30
|
+
- (instancetype)initWithLabel:(nullable NSString *)label value:(ValueType)value;
|
|
31
|
+
|
|
32
|
+
/*! Returns a new CNLabeledValue with the existing value and identifier. */
|
|
33
|
+
- (instancetype)labeledValueBySettingLabel:(nullable NSString *)label;
|
|
34
|
+
|
|
35
|
+
/*! Returns a new CNLabeledValue with the existing label and identifier. */
|
|
36
|
+
- (instancetype)labeledValueBySettingValue:(ValueType)value;
|
|
37
|
+
|
|
38
|
+
/*! Returns a new CNLabeledValue with the existing identifier. */
|
|
39
|
+
- (instancetype)labeledValueBySettingLabel:(nullable NSString *)label value:(ValueType)value;
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
* @abstract Get a localized label.
|
|
43
|
+
*
|
|
44
|
+
* @discussion Some labels are special keys representing generic labels. Use this to obtain a localized string for a label to display to a user.
|
|
45
|
+
*
|
|
46
|
+
* @param label to localize.
|
|
47
|
+
* @return The localized string if a Contacts framework defined label, otherwise just returns the label.
|
|
48
|
+
*/
|
|
49
|
+
+ (NSString *)localizedStringForLabel:(NSString *)label;
|
|
50
|
+
|
|
51
|
+
@end
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// Generic labels
|
|
55
|
+
CONTACTS_EXTERN NSString * const CNLabelHome NS_AVAILABLE(10_11, 9_0);
|
|
56
|
+
CONTACTS_EXTERN NSString * const CNLabelWork NS_AVAILABLE(10_11, 9_0);
|
|
57
|
+
CONTACTS_EXTERN NSString * const CNLabelSchool NS_AVAILABLE(10_15, 13_0);
|
|
58
|
+
CONTACTS_EXTERN NSString * const CNLabelOther NS_AVAILABLE(10_11, 9_0);
|
|
59
|
+
|
|
60
|
+
// Additional email labels
|
|
61
|
+
CONTACTS_EXTERN NSString * const CNLabelEmailiCloud NS_AVAILABLE(10_11, 9_0);
|
|
62
|
+
|
|
63
|
+
// URL address labels
|
|
64
|
+
CONTACTS_EXTERN NSString * const CNLabelURLAddressHomePage NS_AVAILABLE(10_11, 9_0);
|
|
65
|
+
|
|
66
|
+
// Date labels
|
|
67
|
+
CONTACTS_EXTERN NSString * const CNLabelDateAnniversary NS_AVAILABLE(10_11, 9_0);
|
|
68
|
+
|
|
69
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNMutableContact.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNContact.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* @abstract A mutable value object representing a contact.
|
|
15
|
+
*
|
|
16
|
+
* @discussion CNMutableContact is not thread safe. If this is a mutable copy of CNContact then it will throw CNContactPropertyNotFetchedExceptionName when accessing a property that was not fetched for the CNContact.
|
|
17
|
+
*
|
|
18
|
+
* @note To remove properties when saving a mutable contact, set string properties and array properties to empty values. Set other properties to nil.
|
|
19
|
+
*/
|
|
20
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
21
|
+
@interface CNMutableContact : CNContact
|
|
22
|
+
|
|
23
|
+
@property (NS_NONATOMIC_IOSONLY) CNContactType contactType;
|
|
24
|
+
|
|
25
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *namePrefix;
|
|
26
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *givenName;
|
|
27
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *middleName;
|
|
28
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *familyName;
|
|
29
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *previousFamilyName;
|
|
30
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *nameSuffix;
|
|
31
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *nickname;
|
|
32
|
+
|
|
33
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *organizationName;
|
|
34
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *departmentName;
|
|
35
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *jobTitle;
|
|
36
|
+
|
|
37
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *phoneticGivenName;
|
|
38
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *phoneticMiddleName;
|
|
39
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *phoneticFamilyName;
|
|
40
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *phoneticOrganizationName;
|
|
41
|
+
|
|
42
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *note;
|
|
43
|
+
|
|
44
|
+
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSData *imageData;
|
|
45
|
+
|
|
46
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<CNPhoneNumber*>*> *phoneNumbers;
|
|
47
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<NSString*>*> *emailAddresses;
|
|
48
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<CNPostalAddress*>*> *postalAddresses;
|
|
49
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<NSString*>*> *urlAddresses;
|
|
50
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<CNContactRelation*>*> *contactRelations;
|
|
51
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<CNSocialProfile*>*> *socialProfiles;
|
|
52
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<CNInstantMessageAddress*>*> *instantMessageAddresses;
|
|
53
|
+
|
|
54
|
+
/*! @abstract The Gregorian birthday.
|
|
55
|
+
*
|
|
56
|
+
* @description Only uses day, month and year components. Needs to have at least a day and a month.
|
|
57
|
+
*/
|
|
58
|
+
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSDateComponents *birthday;
|
|
59
|
+
|
|
60
|
+
/*! @abstract The alternate birthday (Lunisolar).
|
|
61
|
+
*
|
|
62
|
+
* @description Only uses day, month, year and calendar components. Needs to have at least a day and a month. Calendar must be Chinese, Hebrew or Islamic.
|
|
63
|
+
*/
|
|
64
|
+
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSDateComponents *nonGregorianBirthday;
|
|
65
|
+
|
|
66
|
+
/*! @abstract Other Gregorian dates (anniversaries, etc).
|
|
67
|
+
*
|
|
68
|
+
* @description Only uses day, month and year components. Needs to have at least a day and a month.
|
|
69
|
+
*/
|
|
70
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<CNLabeledValue<NSDateComponents*>*> *dates;
|
|
71
|
+
|
|
72
|
+
@end
|
|
73
|
+
|
|
74
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNMutableGroup.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015–2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNGroup.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* @abstract A mutable value object representing a group.
|
|
15
|
+
*
|
|
16
|
+
* @discussion CNMutableGroup is not thread safe.
|
|
17
|
+
*/
|
|
18
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
19
|
+
@interface CNMutableGroup : CNGroup
|
|
20
|
+
|
|
21
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *name;
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNMutablePostalAddress.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNPostalAddress.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* @abstract A mutable value object representing a postal address.
|
|
15
|
+
*
|
|
16
|
+
* @discussion CNMutablePostalAddress is not thread safe.
|
|
17
|
+
*
|
|
18
|
+
* @note To remove properties when saving a mutable postal address, set string properties to empty values.
|
|
19
|
+
*/
|
|
20
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
21
|
+
@interface CNMutablePostalAddress : CNPostalAddress
|
|
22
|
+
|
|
23
|
+
/*! multi-street address is delimited with carriage returns “\n” */
|
|
24
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *street;
|
|
25
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *subLocality NS_AVAILABLE(10_12_4, 10_3);
|
|
26
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *city;
|
|
27
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *subAdministrativeArea NS_AVAILABLE(10_12_4, 10_3);
|
|
28
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *state;
|
|
29
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *postalCode;
|
|
30
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *country;
|
|
31
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *ISOCountryCode;
|
|
32
|
+
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNPhoneNumber.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Contacts/ContactsDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
* @abstract An immutable value object representing a phone number.
|
|
16
|
+
*
|
|
17
|
+
* @discussion CNPhoneNumber is thread safe.
|
|
18
|
+
*/
|
|
19
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
20
|
+
@interface CNPhoneNumber : NSObject <NSCopying, NSSecureCoding>
|
|
21
|
+
|
|
22
|
+
/*! These will return nil if the stringValue is nil. */
|
|
23
|
+
+ (nullable instancetype)phoneNumberWithStringValue:(NSString *)stringValue;
|
|
24
|
+
- (nullable instancetype)initWithStringValue:(NSString *)string;
|
|
25
|
+
|
|
26
|
+
- (null_unspecified instancetype)init NS_DEPRECATED(10_11, 10_13, 9_0, 11_0, "Use initWithStringValue:");
|
|
27
|
+
+ (null_unspecified instancetype)new NS_DEPRECATED(10_11, 10_13, 9_0, 11_0, "Use phoneNumberWithStringValue:");
|
|
28
|
+
|
|
29
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *stringValue;
|
|
30
|
+
|
|
31
|
+
@end
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// Phone number labels
|
|
35
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberiPhone NS_AVAILABLE(10_11, 9_0);
|
|
36
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberAppleWatch API_AVAILABLE(macos(11.1), ios(14.3), watchos(7.2));
|
|
37
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberMobile NS_AVAILABLE(10_11, 9_0);
|
|
38
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberMain NS_AVAILABLE(10_11, 9_0);
|
|
39
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberHomeFax NS_AVAILABLE(10_11, 9_0);
|
|
40
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberWorkFax NS_AVAILABLE(10_11, 9_0);
|
|
41
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberOtherFax NS_AVAILABLE(10_11, 9_0);
|
|
42
|
+
CONTACTS_EXTERN NSString * const CNLabelPhoneNumberPager NS_AVAILABLE(10_11, 9_0);
|
|
43
|
+
|
|
44
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNPostalAddress.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Contacts/ContactsDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
* @abstract An immutable value object representing a postal address.
|
|
16
|
+
*
|
|
17
|
+
* @discussion CNPostalAddress is thread safe.
|
|
18
|
+
*/
|
|
19
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
20
|
+
NS_SWIFT_SENDABLE
|
|
21
|
+
@interface CNPostalAddress : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
22
|
+
|
|
23
|
+
/*! multi-street address is delimited with carriage returns “\n” */
|
|
24
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *street;
|
|
25
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *subLocality NS_AVAILABLE(10_12_4, 10_3);
|
|
26
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *city;
|
|
27
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *subAdministrativeArea NS_AVAILABLE(10_12_4, 10_3);
|
|
28
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *state;
|
|
29
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *postalCode;
|
|
30
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *country;
|
|
31
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *ISOCountryCode;
|
|
32
|
+
|
|
33
|
+
/*! Returns a user displayable property name. */
|
|
34
|
+
+ (NSString *)localizedStringForKey:(NSString *)key;
|
|
35
|
+
|
|
36
|
+
@end
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
// Properties that are always fetched. Can be used with key value coding and observing.
|
|
40
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressStreetKey NS_AVAILABLE(10_11, 9_0);
|
|
41
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressSubLocalityKey NS_AVAILABLE(10_12_4, 10_3);
|
|
42
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressCityKey NS_AVAILABLE(10_11, 9_0);
|
|
43
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressSubAdministrativeAreaKey NS_AVAILABLE(10_12_4, 10_3);
|
|
44
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressStateKey NS_AVAILABLE(10_11, 9_0);
|
|
45
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressPostalCodeKey NS_AVAILABLE(10_11, 9_0);
|
|
46
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressCountryKey NS_AVAILABLE(10_11, 9_0);
|
|
47
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressISOCountryCodeKey NS_AVAILABLE(10_11, 9_0);
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNPostalAddressFormatter.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015–2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Contacts/ContactsDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class CNPostalAddress;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/*!
|
|
17
|
+
* @abstract The formatting styles for postal addresses.
|
|
18
|
+
*/
|
|
19
|
+
typedef NS_ENUM(NSInteger, CNPostalAddressFormatterStyle)
|
|
20
|
+
{
|
|
21
|
+
/*! Combine the postal address components into a multi-line mailing address. */
|
|
22
|
+
CNPostalAddressFormatterStyleMailingAddress,
|
|
23
|
+
} NS_ENUM_AVAILABLE(10_11, 9_0);
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/*!
|
|
27
|
+
* @abstract Formats a postal address.
|
|
28
|
+
*
|
|
29
|
+
* @discussion This formatter handles international formatting of a postal address.
|
|
30
|
+
*/
|
|
31
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
32
|
+
@interface CNPostalAddressFormatter : NSFormatter
|
|
33
|
+
|
|
34
|
+
/*!
|
|
35
|
+
* @abstract Formats the postal address.
|
|
36
|
+
*
|
|
37
|
+
* @param postalAddress The postal address to be formatted.
|
|
38
|
+
* @param style The formatting style to be used for the postal address.
|
|
39
|
+
* @return The formatted postal address.
|
|
40
|
+
*/
|
|
41
|
+
+ (NSString *)stringFromPostalAddress:(CNPostalAddress *)postalAddress style:(CNPostalAddressFormatterStyle)style;
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/*!
|
|
45
|
+
* @abstract Formats the postal address returning an attributed string.
|
|
46
|
+
*
|
|
47
|
+
* @discussion This behaves like +stringFromPostalAddress: except it returns an attributed string. Includes attribute keys CNPostalAddressPropertyAttribute and CNPostalAddressLocalizedPropertyNameAttribute.
|
|
48
|
+
*
|
|
49
|
+
* @param postalAddress The postal address to be formatted.
|
|
50
|
+
* @param style The formatting style to be used for the postal address.
|
|
51
|
+
* @param attributes The default attributes to use. See NSFormatter for details.
|
|
52
|
+
* @return The formatted postal address as an attributed string.
|
|
53
|
+
*/
|
|
54
|
+
+ (NSAttributedString *)attributedStringFromPostalAddress:(CNPostalAddress *)postalAddress style:(CNPostalAddressFormatterStyle)style withDefaultAttributes:(NSDictionary *)attributes;
|
|
55
|
+
|
|
56
|
+
/*!
|
|
57
|
+
* @abstract The style for a postal address formatter instance.
|
|
58
|
+
*
|
|
59
|
+
* @discussion The default value is CNPostalAddressFormatterStyleMailingAddress.
|
|
60
|
+
*/
|
|
61
|
+
@property (NS_NONATOMIC_IOSONLY) CNPostalAddressFormatterStyle style;
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
* @abstract Formats the postal address.
|
|
65
|
+
*
|
|
66
|
+
* @param postalAddress The postal address to be formatted.
|
|
67
|
+
* @return The formatted postal address.
|
|
68
|
+
*/
|
|
69
|
+
- (NSString *)stringFromPostalAddress:(CNPostalAddress *)postalAddress;
|
|
70
|
+
|
|
71
|
+
/*!
|
|
72
|
+
* @abstract Formats the postal address returning an attributed string.
|
|
73
|
+
*
|
|
74
|
+
* @discussion This behaves like +stringFromPostalAddress: except it returns an attributed string. Includes attribute keys CNPostalAddressPropertyAttribute and CNPostalAddressLocalizedPropertyNameAttribute.
|
|
75
|
+
*
|
|
76
|
+
* @param postalAddress The postal address to be formatted.
|
|
77
|
+
* @param attributes The default attributes to use. See NSFormatter for details.
|
|
78
|
+
* @return The formatted postal address as an attributed string.
|
|
79
|
+
*/
|
|
80
|
+
- (NSAttributedString *)attributedStringFromPostalAddress:(CNPostalAddress *)postalAddress withDefaultAttributes:(NSDictionary *)attributes;
|
|
81
|
+
|
|
82
|
+
@end
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
// Attribute key whose value is a CNPostalAddress property key.
|
|
86
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressPropertyAttribute;
|
|
87
|
+
|
|
88
|
+
// Attribute key whose value is a localized version of the CNPostalAddress property key.
|
|
89
|
+
CONTACTS_EXTERN NSString * const CNPostalAddressLocalizedPropertyNameAttribute;
|
|
90
|
+
|
|
91
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNSaveRequest.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@class CNContact, CNMutableContact, CNGroup, CNMutableGroup;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* @abstract Specifies the changes to save.
|
|
17
|
+
*
|
|
18
|
+
* @discussion Create a new save request for each save execution on the contact store. Can have many changes batched into one save request. Do not access objects in the save request when it is executing. A save request only applies the changes to the objects. If there are overlapping changes with multiple, concurrent CNSaveRequests then the last saved change wins.
|
|
19
|
+
*
|
|
20
|
+
* If adding an object (contact, group, container) and it is already in the contact store then the executing save request will fail to add that object and will return the error CNErrorCodeInsertedRecordAlreadyExists with CNErrorUserInfoAffectedRecordsKey value as an array containing that object.
|
|
21
|
+
*
|
|
22
|
+
* If updating/deleting an object (contact, group, container) and it is not in the contact store then the executing save request will fail to update/delete that object and will return the error CNErrorCodeRecordDoesNotExist with CNErrorUserInfoAffectedRecordsKey value as an array containing that object.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
API_AVAILABLE(macos(10.11), ios(9)) __WATCHOS_PROHIBITED
|
|
26
|
+
@interface CNSaveRequest : NSObject
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
* @abstract Add a new contact to the contact store.
|
|
30
|
+
*
|
|
31
|
+
* @discussion The contact may be modified by the executing save request. If the contact was previously specified to be deleted in the save request that will no longer occur.
|
|
32
|
+
*
|
|
33
|
+
* @param contact The new contact to add.
|
|
34
|
+
* @param identifier The container identifier to add the new contact to. Set to nil for the default container.
|
|
35
|
+
*/
|
|
36
|
+
- (void)addContact:(CNMutableContact *)contact toContainerWithIdentifier:(nullable NSString *)identifier;
|
|
37
|
+
|
|
38
|
+
/*!
|
|
39
|
+
* @abstract Update an existing contact in the contact store.
|
|
40
|
+
*
|
|
41
|
+
* @discussion The contact must already exist in the contact store. The contact may be modified by the executing save request.
|
|
42
|
+
*/
|
|
43
|
+
- (void)updateContact:(CNMutableContact *)contact;
|
|
44
|
+
|
|
45
|
+
/*!
|
|
46
|
+
* @abstract Delete a contact from the contact store.
|
|
47
|
+
*
|
|
48
|
+
* @discussion If the contact was previously specified to be added in the save request that will no longer occur.
|
|
49
|
+
*/
|
|
50
|
+
- (void)deleteContact:(CNMutableContact *)contact;
|
|
51
|
+
|
|
52
|
+
/*!
|
|
53
|
+
* @abstract Add a new group to the contact store.
|
|
54
|
+
*
|
|
55
|
+
* @discussion If the group was previously specified to be deleted in the save request that will no longer occur.
|
|
56
|
+
*
|
|
57
|
+
* @param group The new group to add.
|
|
58
|
+
* @param identifier The container identifier to add the new group to. Set to nil for the default container.
|
|
59
|
+
*/
|
|
60
|
+
- (void)addGroup:(CNMutableGroup *)group toContainerWithIdentifier:(nullable NSString *)identifier;
|
|
61
|
+
|
|
62
|
+
/*!
|
|
63
|
+
* @abstract Update an existing group in the contact store.
|
|
64
|
+
*
|
|
65
|
+
* @discussion The group must already exist in the contact store.
|
|
66
|
+
*/
|
|
67
|
+
- (void)updateGroup:(CNMutableGroup *)group;
|
|
68
|
+
|
|
69
|
+
/*!
|
|
70
|
+
* @abstract Delete a group from the contact store.
|
|
71
|
+
*
|
|
72
|
+
* @discussion The contacts in the group are not deleted. If the group was previously specified to be added in the save request that will no longer occur.
|
|
73
|
+
*/
|
|
74
|
+
- (void)deleteGroup:(CNMutableGroup *)group;
|
|
75
|
+
|
|
76
|
+
/*!
|
|
77
|
+
* @abstract Add a new subgroup to a group.
|
|
78
|
+
*
|
|
79
|
+
* @discussion If the subgroup was previously specified to be deleted in the save request that will no longer occur.
|
|
80
|
+
*
|
|
81
|
+
* @param subgroup The new group to add.
|
|
82
|
+
* @param group The group to add the subgroup to.
|
|
83
|
+
*/
|
|
84
|
+
- (void)addSubgroup:(CNGroup *)subgroup toGroup:(CNGroup *)group API_AVAILABLE(macos(10.11)) API_UNAVAILABLE(ios);
|
|
85
|
+
|
|
86
|
+
/*!
|
|
87
|
+
* @abstract Remove a subgroup from a group.
|
|
88
|
+
*
|
|
89
|
+
* @discussion The contacts in the subgroup's membership are not affected. If the subgroup was previously specified to be added in the save request that will no longer occur.
|
|
90
|
+
*
|
|
91
|
+
* @param subgroup The new group to add.
|
|
92
|
+
* @param group The group to add the subgroup to.
|
|
93
|
+
*/
|
|
94
|
+
- (void)removeSubgroup:(CNGroup *)subgroup fromGroup:(CNGroup *)group API_AVAILABLE(macos(10.11)) API_UNAVAILABLE(ios);
|
|
95
|
+
|
|
96
|
+
/*!
|
|
97
|
+
* @abstract Add a new member to a group.
|
|
98
|
+
*
|
|
99
|
+
* @discussion If the membership was previously specified to be deleted in the save request that will no longer occur.
|
|
100
|
+
*
|
|
101
|
+
* @param contact The new member to add to the group.
|
|
102
|
+
* @param group The group to add the member to.
|
|
103
|
+
*/
|
|
104
|
+
- (void)addMember:(CNContact *)contact toGroup:(CNGroup *)group;
|
|
105
|
+
|
|
106
|
+
/*!
|
|
107
|
+
* @abstract Remove a member from a group.
|
|
108
|
+
*
|
|
109
|
+
* @discussion The contact is not deleted. It is only removed as a member of the group. If the membership was previously specified to be added in the save request that will no longer occur.
|
|
110
|
+
*
|
|
111
|
+
* @param contact The member to remove from the group.
|
|
112
|
+
* @param group The group to remove the member from.
|
|
113
|
+
*/
|
|
114
|
+
- (void)removeMember:(CNContact *)contact fromGroup:(CNGroup *)group;
|
|
115
|
+
|
|
116
|
+
/*!
|
|
117
|
+
* @abstract The author of this transaction.
|
|
118
|
+
*
|
|
119
|
+
* @discussion Use this, in conjunction with @c CNChangeHistoryFetchRequest.excludedTransactionAuthors,
|
|
120
|
+
* to suppress fetching of changes the author already knows about.
|
|
121
|
+
*/
|
|
122
|
+
@property (copy, nonatomic, nullable) NSString *transactionAuthor API_AVAILABLE(macos(12), ios(15));
|
|
123
|
+
|
|
124
|
+
/*!
|
|
125
|
+
* @abstract Should the contacts be refetched as part of executing the save request.
|
|
126
|
+
*
|
|
127
|
+
* @discussion Default is `YES` where added and updated contacts are refetched by the executing save request.
|
|
128
|
+
* Set to `NO` to suppress this refetch behavior and reduce the execution time of the save request.
|
|
129
|
+
*
|
|
130
|
+
* @note If set to `NO` do not use the contacts after the executed save request as they may not be in a current state.
|
|
131
|
+
*/
|
|
132
|
+
@property (assign, nonatomic) BOOL shouldRefetchContacts API_AVAILABLE(macos(12.3), ios(15.4));
|
|
133
|
+
|
|
134
|
+
@end
|
|
135
|
+
|
|
136
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNSocialProfile.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Contacts/ContactsDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
* @abstract An immutable value object representing a social profile.
|
|
16
|
+
*
|
|
17
|
+
* @discussion CNSocialProfile is thread safe.
|
|
18
|
+
*/
|
|
19
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
20
|
+
@interface CNSocialProfile : NSObject <NSCopying, NSSecureCoding>
|
|
21
|
+
|
|
22
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *urlString;
|
|
23
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *username;
|
|
24
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *userIdentifier;
|
|
25
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *service;
|
|
26
|
+
|
|
27
|
+
- (instancetype)initWithUrlString:(nullable NSString *)urlString username:(nullable NSString *)username userIdentifier:(nullable NSString *)userIdentifier service:(nullable NSString *)service;
|
|
28
|
+
|
|
29
|
+
/*! Returns a user displayable property name. */
|
|
30
|
+
+ (NSString *)localizedStringForKey:(NSString *)key;
|
|
31
|
+
|
|
32
|
+
/*! Returns a user displayable service name. */
|
|
33
|
+
+ (NSString* )localizedStringForService:(NSString *)service;
|
|
34
|
+
|
|
35
|
+
@end
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// Properties that are always fetched. Can be used with key value coding and observing.
|
|
39
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileURLStringKey NS_AVAILABLE(10_11, 9_0);
|
|
40
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileUsernameKey NS_AVAILABLE(10_11, 9_0);
|
|
41
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileUserIdentifierKey NS_AVAILABLE(10_11, 9_0);
|
|
42
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceKey NS_AVAILABLE(10_11, 9_0);
|
|
43
|
+
|
|
44
|
+
// Social profile services.
|
|
45
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceFacebook NS_AVAILABLE(10_11, 9_0);
|
|
46
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceFlickr NS_AVAILABLE(10_11, 9_0);
|
|
47
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceLinkedIn NS_AVAILABLE(10_11, 9_0);
|
|
48
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceMySpace NS_AVAILABLE(10_11, 9_0);
|
|
49
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceSinaWeibo NS_AVAILABLE(10_11, 9_0);
|
|
50
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceTencentWeibo NS_AVAILABLE(10_11, 9_0);
|
|
51
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceTwitter NS_AVAILABLE(10_11, 9_0);
|
|
52
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceYelp NS_AVAILABLE(10_11, 9_0);
|
|
53
|
+
CONTACTS_EXTERN NSString * const CNSocialProfileServiceGameCenter NS_AVAILABLE(10_11, 9_0);
|
|
54
|
+
|
|
55
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
Name: Contacts
|
|
3
|
+
Tags:
|
|
4
|
+
- Name: CNErrorCode
|
|
5
|
+
NSErrorDomain: CNErrorDomain
|
|
6
|
+
Classes:
|
|
7
|
+
- Name: CNPhoneNumber
|
|
8
|
+
Methods:
|
|
9
|
+
- Selector: 'initWithStringValue:'
|
|
10
|
+
MethodKind: Instance
|
|
11
|
+
ResultType: "CNPhoneNumber * _Nonnull"
|
|
12
|
+
- Name: CNContactStore
|
|
13
|
+
Methods:
|
|
14
|
+
- Selector: 'defaultContainerIdentifier'
|
|
15
|
+
MethodKind: Instance
|
|
16
|
+
ResultType: "NSString * _Nonnull"
|
|
17
|
+
|
|
18
|
+
SwiftVersions:
|
|
19
|
+
- Version: 4
|
|
20
|
+
Classes:
|
|
21
|
+
- Name: CNPhoneNumber
|
|
22
|
+
Methods:
|
|
23
|
+
- Selector: 'init'
|
|
24
|
+
MethodKind: Instance
|
|
25
|
+
ResultType: "CNPhoneNumber * _Nonnull"
|
|
26
|
+
- Selector: 'new'
|
|
27
|
+
MethodKind: Class
|
|
28
|
+
ResultType: "CNPhoneNumber * _Nonnull"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Contacts.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015–2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNContactStore.h>
|
|
9
|
+
#import <Contacts/CNContactFetchRequest.h>
|
|
10
|
+
#import <Contacts/CNFetchResult.h>
|
|
11
|
+
#import <Contacts/CNSaveRequest.h>
|
|
12
|
+
|
|
13
|
+
#import <Contacts/CNChangeHistoryFetchRequest.h>
|
|
14
|
+
#import <Contacts/CNChangeHistoryEvent.h>
|
|
15
|
+
|
|
16
|
+
#import <Contacts/CNContact.h>
|
|
17
|
+
#import <Contacts/CNContact+Predicates.h>
|
|
18
|
+
#import <Contacts/CNMutableContact.h>
|
|
19
|
+
#import <Contacts/CNContact+NSItemProvider.h>
|
|
20
|
+
|
|
21
|
+
#import <Contacts/CNLabeledValue.h>
|
|
22
|
+
#import <Contacts/CNPhoneNumber.h>
|
|
23
|
+
#import <Contacts/CNPostalAddress.h>
|
|
24
|
+
#import <Contacts/CNMutablePostalAddress.h>
|
|
25
|
+
#import <Contacts/CNInstantMessageAddress.h>
|
|
26
|
+
#import <Contacts/CNSocialProfile.h>
|
|
27
|
+
#import <Contacts/CNContactRelation.h>
|
|
28
|
+
|
|
29
|
+
#import <Contacts/CNGroup.h>
|
|
30
|
+
#import <Contacts/CNGroup+Predicates.h>
|
|
31
|
+
#import <Contacts/CNMutableGroup.h>
|
|
32
|
+
|
|
33
|
+
#import <Contacts/CNContainer.h>
|
|
34
|
+
#import <Contacts/CNContainer+Predicates.h>
|
|
35
|
+
|
|
36
|
+
#import <Contacts/CNContactFormatter.h>
|
|
37
|
+
#import <Contacts/CNPostalAddressFormatter.h>
|
|
38
|
+
|
|
39
|
+
#import <Contacts/CNContactVCardSerialization.h>
|
|
40
|
+
#import <Contacts/CNContactsUserDefaults.h>
|
|
41
|
+
#import <Contacts/CNContactProperty.h>
|
|
42
|
+
#import <Contacts/CNError.h>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ContactsDefines.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Availability.h>
|
|
9
|
+
|
|
10
|
+
#ifdef __cplusplus
|
|
11
|
+
#define CONTACTS_EXTERN extern "C" __attribute__((visibility ("default")))
|
|
12
|
+
#else
|
|
13
|
+
#define CONTACTS_EXTERN extern __attribute__((visibility ("default")))
|
|
14
|
+
#endif
|