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,242 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNContactStore.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
|
+
#import <Contacts/CNContact.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@class CNContact;
|
|
15
|
+
@class CNGroup;
|
|
16
|
+
@class CNContainer;
|
|
17
|
+
@class CNChangeHistoryEvent;
|
|
18
|
+
@class CNContactFetchRequest;
|
|
19
|
+
@class CNChangeHistoryFetchRequest;
|
|
20
|
+
@class CNFetchResult<ValueType>;
|
|
21
|
+
@class CNSaveRequest;
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
* @abstract The entities the user can grant access to.
|
|
25
|
+
*/
|
|
26
|
+
typedef NS_ENUM(NSInteger, CNEntityType)
|
|
27
|
+
{
|
|
28
|
+
/*! The user's contacts. */
|
|
29
|
+
CNEntityTypeContacts
|
|
30
|
+
} NS_ENUM_AVAILABLE(10_11, 9_0);
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
* @abstract The authorization the user has given the application to access an entity type.
|
|
34
|
+
*/
|
|
35
|
+
typedef NS_ENUM(NSInteger, CNAuthorizationStatus)
|
|
36
|
+
{
|
|
37
|
+
/*! The user has not yet made a choice regarding whether the application may access contact data. */
|
|
38
|
+
CNAuthorizationStatusNotDetermined = 0,
|
|
39
|
+
/*! The application is not authorized to access contact data.
|
|
40
|
+
* The user cannot change this application’s status, possibly due to active restrictions such as parental controls being in place. */
|
|
41
|
+
CNAuthorizationStatusRestricted,
|
|
42
|
+
/*! The user explicitly denied access to contact data for the application. */
|
|
43
|
+
CNAuthorizationStatusDenied,
|
|
44
|
+
/*! The application is authorized to access contact data. */
|
|
45
|
+
CNAuthorizationStatusAuthorized,
|
|
46
|
+
/*! This application is authorized to access some contact data. */
|
|
47
|
+
CNAuthorizationStatusLimited NS_ENUM_AVAILABLE_IOS(18_0),
|
|
48
|
+
} NS_ENUM_AVAILABLE(10_11, 9_0);
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/*!
|
|
52
|
+
* @abstract Provides methods to fetch and save contacts.
|
|
53
|
+
*
|
|
54
|
+
* @discussion The CNContactStore is a thread safe class that can fetch and save contacts, fetch and save groups, and fetch containers.
|
|
55
|
+
*
|
|
56
|
+
* @note Some good practices are:
|
|
57
|
+
* 1) Only fetch contact properties that will be used.
|
|
58
|
+
* 2) When fetching all contacts and caching the results, first fetch all contact identifiers only. Then fetch batches of detailed contacts by identifiers as you need them.
|
|
59
|
+
* 3) To aggregate several contact fetches collect a set of unique contact identifiers from the fetches. Then fetch batches of detailed contacts by identifiers.
|
|
60
|
+
* 4) When CNContactStoreDidChangeNotification is posted, if you cache any fetched contacts/groups/containers then they must be refetched and the old cached objects released.
|
|
61
|
+
*/
|
|
62
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
63
|
+
@interface CNContactStore : NSObject
|
|
64
|
+
|
|
65
|
+
#pragma mark - Privacy Access
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
* @abstract Indicates the current authorization status to access contact data.
|
|
69
|
+
*
|
|
70
|
+
* @discussion Based upon the access, the application could display or hide its UI elements that would access any Contacts API. This method is thread safe.
|
|
71
|
+
*
|
|
72
|
+
* @return Returns the authorization status for the given entityType.
|
|
73
|
+
*/
|
|
74
|
+
+ (CNAuthorizationStatus)authorizationStatusForEntityType:(CNEntityType)entityType;
|
|
75
|
+
|
|
76
|
+
/*!
|
|
77
|
+
* @abstract Request access to the user's contacts.
|
|
78
|
+
*
|
|
79
|
+
* @discussion Users are able to grant or deny access to contact data on a per-application basis. To request access to contact data, call requestAccessForEntityType:completionHandler:. This will not block the application while the user is being asked to grant or deny access. The user will only be prompted the first time access is requested; any subsequent CNContactStore calls will use the existing permissions. The completion handler is called on an arbitrary queue.
|
|
80
|
+
*
|
|
81
|
+
* @note Recommended to use CNContactStore instance methods in this completion handler instead of the UI main thread. This method is optional when CNContactStore is used on a background thread. If it is not used in that case, CNContactStore will block if the user is asked to grant or deny access.
|
|
82
|
+
*
|
|
83
|
+
* @param entityType Set to CNEntityTypeContacts.
|
|
84
|
+
* @param completionHandler This block is called upon completion. If the user grants access then granted is YES and error is nil. Otherwise granted is NO with an error.
|
|
85
|
+
*/
|
|
86
|
+
- (void)requestAccessForEntityType:(CNEntityType)entityType completionHandler:(void (^)(BOOL granted, NSError *__nullable error))completionHandler;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
#pragma mark - Unified Contacts Helpers
|
|
90
|
+
|
|
91
|
+
/*!
|
|
92
|
+
* @abstract Fetch all unified contacts matching a given predicate.
|
|
93
|
+
*
|
|
94
|
+
* @discussion Use only predicates from CNContact+Predicates.h. Compound predicates are not supported. Due to unification the returned contacts may have a different identifier.
|
|
95
|
+
*
|
|
96
|
+
* @note To fetch all contacts use enumerateContactsWithFetchRequest:error:usingBlock:.
|
|
97
|
+
*
|
|
98
|
+
* @param predicate The predicate to match against.
|
|
99
|
+
* @param keys The properties to fetch into the returned CNContact objects. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
|
|
100
|
+
* @param error If an error occurs, contains error information.
|
|
101
|
+
* @return An array of CNContact objects matching the predicate. If no matches are found, an empty array is returned. If an error occurs, nil is returned.
|
|
102
|
+
*/
|
|
103
|
+
- (nullable NSArray<CNContact*> *)unifiedContactsMatchingPredicate:(NSPredicate *)predicate keysToFetch:(NSArray<id<CNKeyDescriptor>> *)keys error:(NSError **)error;
|
|
104
|
+
|
|
105
|
+
/*!
|
|
106
|
+
* @abstract Fetch a unified contact with a given identifier.
|
|
107
|
+
*
|
|
108
|
+
* @discussion Due to unification the returned contact may have a different identifier. To fetch a batch of contacts by identifiers use [CNContact predicateForContactsWithIdentifiers:].
|
|
109
|
+
*
|
|
110
|
+
* @param identifier The identifier of the contact to fetch.
|
|
111
|
+
* @param keys The properties to fetch into the returned CNContact object. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
|
|
112
|
+
* @param error If an error occurs, contains error information.
|
|
113
|
+
* @return The unified contact matching or linked to the identifier. If no contact with the given identifier is found, nil is returned and error is set to CNErrorCodeRecordDoesNotExist.
|
|
114
|
+
*/
|
|
115
|
+
- (nullable CNContact *)unifiedContactWithIdentifier:(NSString *)identifier keysToFetch:(NSArray<id<CNKeyDescriptor>> *)keys error:(NSError **)error;
|
|
116
|
+
|
|
117
|
+
/*!
|
|
118
|
+
* @abstract Fetch the unified contact that is the "me" card.
|
|
119
|
+
*
|
|
120
|
+
* @discussion Fetches the contact that is represented in the user interface as "My Card".
|
|
121
|
+
*
|
|
122
|
+
* @param keys The properties to fetch into the returned CNContact object. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
|
|
123
|
+
* @param error If an error occurs, contains error information.
|
|
124
|
+
* @return The unified contact that is the "me" card. If no "me" card is set, nil is returned.
|
|
125
|
+
*/
|
|
126
|
+
- (nullable CNContact *)unifiedMeContactWithKeysToFetch:(NSArray<id<CNKeyDescriptor>> *)keys error:(NSError **)error NS_AVAILABLE(10_11, NA) __WATCHOS_PROHIBITED;
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
#pragma mark - Fetch and Save
|
|
130
|
+
|
|
131
|
+
/*!
|
|
132
|
+
* @abstract Enumerate a contact fetch request.
|
|
133
|
+
*
|
|
134
|
+
* @discussion Executes the given fetch request and returns an enumerator for the results.
|
|
135
|
+
* This may prevent all records from being loaded into memory at once.
|
|
136
|
+
*
|
|
137
|
+
* An exception may be thrown if an error occurs during enumeration.
|
|
138
|
+
*
|
|
139
|
+
* @param request
|
|
140
|
+
* A description of the records to fetch.
|
|
141
|
+
*
|
|
142
|
+
* @param error
|
|
143
|
+
* If the fetch fails, contains an @c NSError object with more information.
|
|
144
|
+
*
|
|
145
|
+
* @return An enumerator of the records matching the result, or @c nil if there was an error.
|
|
146
|
+
*/
|
|
147
|
+
- (nullable CNFetchResult<NSEnumerator<CNContact *> *> *)enumeratorForContactFetchRequest:(CNContactFetchRequest *)request error:(NSError **)error API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0)) NS_SWIFT_UNAVAILABLE("");
|
|
148
|
+
|
|
149
|
+
/*!
|
|
150
|
+
* @abstract Enumerate a change history fetch request.
|
|
151
|
+
*
|
|
152
|
+
* @discussion Executes the given fetch request and returns an enumerator for the results.
|
|
153
|
+
* This may prevent all events from being loaded into memory at once.
|
|
154
|
+
*
|
|
155
|
+
* An exception may be thrown if an error occurs during enumeration.
|
|
156
|
+
*
|
|
157
|
+
* @param request
|
|
158
|
+
* A description of the events to fetch.
|
|
159
|
+
*
|
|
160
|
+
* @param error
|
|
161
|
+
* If the fetch fails, contains an @c NSError object with more information.
|
|
162
|
+
*
|
|
163
|
+
* @return An enumerator of the events matching the result, or @c nil if there was an error.
|
|
164
|
+
*/
|
|
165
|
+
- (nullable CNFetchResult<NSEnumerator<CNChangeHistoryEvent *> *> *)enumeratorForChangeHistoryFetchRequest:(CNChangeHistoryFetchRequest *)request error:(NSError **)error API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0)) NS_SWIFT_UNAVAILABLE("");
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/*!
|
|
169
|
+
* @abstract Enumerates all contacts matching a contact fetch request.
|
|
170
|
+
*
|
|
171
|
+
* @discussion This method will wait until the enumeration is finished. If there are no results, the block is not called and YES is returned.
|
|
172
|
+
*
|
|
173
|
+
* @param fetchRequest The contact fetch request that specifies the search criteria.
|
|
174
|
+
* @param error If an error occurs, contains error information.
|
|
175
|
+
* @param block Called for each matching contact. Set *stop to YES to stop the enumeration.
|
|
176
|
+
* @return YES if successful, otherwise NO.
|
|
177
|
+
*/
|
|
178
|
+
- (BOOL)enumerateContactsWithFetchRequest:(CNContactFetchRequest *)fetchRequest error:(NSError **)error usingBlock:(void (NS_NOESCAPE ^)(CNContact *contact, BOOL *stop))block;
|
|
179
|
+
|
|
180
|
+
/*!
|
|
181
|
+
* @abstract Fetch all groups matching a given predicate.
|
|
182
|
+
*
|
|
183
|
+
* @discussion Use only predicates from CNGroup+Predicates.h. Compound predicates are not supported.
|
|
184
|
+
*
|
|
185
|
+
* @param predicate The predicate to match against. Set to nil to match all groups.
|
|
186
|
+
* @param error If an error occurs, contains error information.
|
|
187
|
+
* @return An array of CNGroup objects matching the predicate. If no matches are found, an empty array is returned. If an error occurs, nil is returned.
|
|
188
|
+
*/
|
|
189
|
+
- (nullable NSArray<CNGroup*> *)groupsMatchingPredicate:(nullable NSPredicate *)predicate error:(NSError **)error;
|
|
190
|
+
|
|
191
|
+
/*!
|
|
192
|
+
* @abstract Fetch all containers matching a given predicate.
|
|
193
|
+
*
|
|
194
|
+
* @discussion Use only predicates from CNContainer+Predicates.h. Compound predicates are not supported.
|
|
195
|
+
*
|
|
196
|
+
* @param predicate The predicate to match against. Set to nil to match all containers.
|
|
197
|
+
* @param error If an error occurs, contains error information.
|
|
198
|
+
* @return An array of CNContainer objects matching the predicate. If no matches are found, an empty array is returned. If an error occurs, nil is returned.
|
|
199
|
+
*/
|
|
200
|
+
- (nullable NSArray<CNContainer*> *)containersMatchingPredicate:(nullable NSPredicate *)predicate error:(NSError **)error;
|
|
201
|
+
|
|
202
|
+
/*!
|
|
203
|
+
* @abstract Executes a save request.
|
|
204
|
+
*
|
|
205
|
+
* @discussion Do not access objects when save request is executing. A save request with contacts may modify the contacts while 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.
|
|
206
|
+
*
|
|
207
|
+
* @param saveRequest Save request to execute.
|
|
208
|
+
* @param error If an error occurs, contains error information.
|
|
209
|
+
* @return YES if successful, otherwise NO.
|
|
210
|
+
*/
|
|
211
|
+
- (BOOL)executeSaveRequest:(CNSaveRequest *)saveRequest error:(NSError **)error __WATCHOS_PROHIBITED;
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
#pragma mark - Miscellaneous
|
|
215
|
+
|
|
216
|
+
/*!
|
|
217
|
+
* @abstract The current history token.
|
|
218
|
+
*
|
|
219
|
+
* @discussion Retrieve the current history token. If you are fetching contacts or change history events, you should use the token on the @c CNFetchResult instead.
|
|
220
|
+
*/
|
|
221
|
+
@property (nonatomic, readonly, copy, nullable) NSData * currentHistoryToken API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0));
|
|
222
|
+
|
|
223
|
+
/*!
|
|
224
|
+
* @abstract The identifier of the default container.
|
|
225
|
+
*
|
|
226
|
+
* @discussion This identifier can be used to fetch the default container.
|
|
227
|
+
*
|
|
228
|
+
* @return The identifier of the default container. If the caller lacks Contacts authorization or an error occurs, nil is returned.
|
|
229
|
+
*/
|
|
230
|
+
- (nullable NSString *)defaultContainerIdentifier;
|
|
231
|
+
|
|
232
|
+
@end
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
#pragma mark - Constants
|
|
236
|
+
|
|
237
|
+
/*!
|
|
238
|
+
* @abstract Notification posted when changes occur in another CNContactStore.
|
|
239
|
+
*/
|
|
240
|
+
CONTACTS_EXTERN NSString * const CNContactStoreDidChangeNotification NS_AVAILABLE(10_11, 9_0);
|
|
241
|
+
|
|
242
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactVCardSerialization.h
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNContactVCardSerialization.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
|
+
@protocol CNKeyDescriptor;
|
|
13
|
+
@class CNContact;
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* @abstract Contact vCard support.
|
|
17
|
+
*
|
|
18
|
+
* @discussion This converts between a contact and its vCard representation.
|
|
19
|
+
*/
|
|
20
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
21
|
+
@interface CNContactVCardSerialization : NSObject
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
* @abstract Descriptor for all contact keys required by vCard serialization
|
|
25
|
+
*
|
|
26
|
+
* @discussion This descriptor must be passed to the fetch request if the returned
|
|
27
|
+
* contacts are to be serialized with dataWithContacts:error:.
|
|
28
|
+
*/
|
|
29
|
+
+ (id<CNKeyDescriptor>)descriptorForRequiredKeys;
|
|
30
|
+
|
|
31
|
+
/*!
|
|
32
|
+
* @abstract Serialize contacts to data.
|
|
33
|
+
*
|
|
34
|
+
* @discussion The contacts to be serialized must have been fetched with
|
|
35
|
+
* @c +descriptorForRequiredKeys.
|
|
36
|
+
*
|
|
37
|
+
* @param contacts
|
|
38
|
+
* The contacts to serialize.
|
|
39
|
+
*
|
|
40
|
+
* @param error
|
|
41
|
+
* An optional outparameter. If the serialization fails, this will be set.
|
|
42
|
+
*
|
|
43
|
+
* @returns The encoded data. If the serialization fails, this will be @c nil.
|
|
44
|
+
*/
|
|
45
|
+
+ (nullable NSData *)dataWithContacts:(NSArray<CNContact *>*)contacts error:(NSError **)error;
|
|
46
|
+
|
|
47
|
+
/*!
|
|
48
|
+
* @abstract Parse data into contacts.
|
|
49
|
+
*
|
|
50
|
+
* @param data
|
|
51
|
+
* The data to parse.
|
|
52
|
+
*
|
|
53
|
+
* @param error
|
|
54
|
+
* An optional outparameter. If the parsing fails, this will be set.
|
|
55
|
+
*
|
|
56
|
+
* @returns The parsed contacts. If the parsing fails, this will be @c nil.
|
|
57
|
+
*/
|
|
58
|
+
+ (nullable NSArray<CNContact *>*)contactsWithData:(NSData *)data error:(NSError **)error;
|
|
59
|
+
|
|
60
|
+
@end
|
|
61
|
+
|
|
62
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNContactUserDefaults.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNContactFetchRequest.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* @abstract The user defaults for contacts.
|
|
15
|
+
*
|
|
16
|
+
* @note This class is not thread safe.
|
|
17
|
+
*/
|
|
18
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
19
|
+
@interface CNContactsUserDefaults : NSObject
|
|
20
|
+
|
|
21
|
+
+ (instancetype)sharedDefaults;
|
|
22
|
+
|
|
23
|
+
@property (readonly, NS_NONATOMIC_IOSONLY) CNContactSortOrder sortOrder;
|
|
24
|
+
|
|
25
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *countryCode;
|
|
26
|
+
|
|
27
|
+
@end
|
|
28
|
+
|
|
29
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNContainer+Predicates.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNContainer.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* @abstract The predicates to match containers against.
|
|
15
|
+
*
|
|
16
|
+
* @discussion Can only use these predicates with CNContactStore.
|
|
17
|
+
*/
|
|
18
|
+
@interface CNContainer (Predicates)
|
|
19
|
+
|
|
20
|
+
+ (NSPredicate *)predicateForContainersWithIdentifiers:(NSArray<NSString*> *)identifiers;
|
|
21
|
+
|
|
22
|
+
/*! @discussion If the identifier is for a unified contact then the fetch will return an empty array. To fetch the containers of a unified contact, first fetch the linked contacts then fetch the container of each linked contact. */
|
|
23
|
+
+ (NSPredicate *)predicateForContainerOfContactWithIdentifier:(NSString *)contactIdentifier;
|
|
24
|
+
|
|
25
|
+
+ (NSPredicate *)predicateForContainerOfGroupWithIdentifier:(NSString *)groupIdentifier;
|
|
26
|
+
|
|
27
|
+
@end
|
|
28
|
+
|
|
29
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNContainer.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
|
+
typedef NS_ENUM(NSInteger, CNContainerType)
|
|
14
|
+
{
|
|
15
|
+
CNContainerTypeUnassigned = 0,
|
|
16
|
+
CNContainerTypeLocal,
|
|
17
|
+
CNContainerTypeExchange,
|
|
18
|
+
CNContainerTypeCardDAV
|
|
19
|
+
} NS_ENUM_AVAILABLE(10_11, 9_0);
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* @abstract An immutable value object representing a container.
|
|
24
|
+
*
|
|
25
|
+
* @discussion CNContainer is thread safe.
|
|
26
|
+
*/
|
|
27
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
28
|
+
@interface CNContainer : NSObject <NSCopying, NSSecureCoding>
|
|
29
|
+
|
|
30
|
+
/*! The identifier is unique among containers on the device. It can be saved and used for fetching containers next application launch. */
|
|
31
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *identifier;
|
|
32
|
+
|
|
33
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *name;
|
|
34
|
+
@property (readonly, NS_NONATOMIC_IOSONLY) CNContainerType type;
|
|
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 CNContainerIdentifierKey NS_AVAILABLE(10_11, 9_0);
|
|
41
|
+
CONTACTS_EXTERN NSString * const CNContainerNameKey NS_AVAILABLE(10_11, 9_0);
|
|
42
|
+
CONTACTS_EXTERN NSString * const CNContainerTypeKey NS_AVAILABLE(10_11, 9_0);
|
|
43
|
+
|
|
44
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNError.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
|
+
CONTACTS_EXTERN NSString * const CNErrorDomain NS_AVAILABLE(10_11, 9_0);
|
|
12
|
+
|
|
13
|
+
typedef NS_ENUM(NSInteger, CNErrorCode)
|
|
14
|
+
{
|
|
15
|
+
CNErrorCodeCommunicationError = 1,
|
|
16
|
+
CNErrorCodeDataAccessError = 2,
|
|
17
|
+
|
|
18
|
+
CNErrorCodeAuthorizationDenied = 100,
|
|
19
|
+
CNErrorCodeNoAccessableWritableContainers NS_ENUM_AVAILABLE(10_13_3, 11_3) = 101,
|
|
20
|
+
CNErrorCodeUnauthorizedKeys API_AVAILABLE(macos(10.14), ios(13.0), watchos(6.0)) = 102,
|
|
21
|
+
CNErrorCodeFeatureDisabledByUser API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0)) = 103,
|
|
22
|
+
CNErrorCodeFeatureNotAvailable API_AVAILABLE(macos(14), ios(17), watchos(10)) = 104,
|
|
23
|
+
|
|
24
|
+
CNErrorCodeRecordDoesNotExist = 200,
|
|
25
|
+
CNErrorCodeInsertedRecordAlreadyExists = 201,
|
|
26
|
+
CNErrorCodeContainmentCycle = 202,
|
|
27
|
+
CNErrorCodeContainmentScope = 203,
|
|
28
|
+
CNErrorCodeParentRecordDoesNotExist = 204,
|
|
29
|
+
CNErrorCodeRecordIdentifierInvalid = 205,
|
|
30
|
+
CNErrorCodeRecordNotWritable API_AVAILABLE(macos(10.14), ios(13.0), watchos(6.0)) = 206,
|
|
31
|
+
CNErrorCodeParentContainerNotWritable API_AVAILABLE(macos(10.14), ios(13.0), watchos(6.0)) = 207,
|
|
32
|
+
|
|
33
|
+
CNErrorCodeValidationMultipleErrors = 300,
|
|
34
|
+
CNErrorCodeValidationTypeMismatch = 301,
|
|
35
|
+
CNErrorCodeValidationConfigurationError = 302,
|
|
36
|
+
|
|
37
|
+
CNErrorCodePredicateInvalid = 400,
|
|
38
|
+
|
|
39
|
+
CNErrorCodePolicyViolation = 500,
|
|
40
|
+
|
|
41
|
+
CNErrorCodeClientIdentifierInvalid = 600,
|
|
42
|
+
CNErrorCodeClientIdentifierDoesNotExist = 601,
|
|
43
|
+
CNErrorCodeClientIdentifierCollision = 602,
|
|
44
|
+
CNErrorCodeChangeHistoryExpired = 603,
|
|
45
|
+
CNErrorCodeChangeHistoryInvalidAnchor = 604,
|
|
46
|
+
CNErrorCodeChangeHistoryInvalidFetchRequest = 605,
|
|
47
|
+
|
|
48
|
+
CNErrorCodeVCardMalformed NS_ENUM_AVAILABLE(10_13, 11_0) = 700,
|
|
49
|
+
CNErrorCodeVCardSummarizationError NS_ENUM_AVAILABLE(10_14, 12_0) = 701,
|
|
50
|
+
|
|
51
|
+
} NS_ENUM_AVAILABLE(10_11, 9_0);
|
|
52
|
+
|
|
53
|
+
/*! When available an array of one or more CNContact, CNGroup, CNContainer, CNSaveRequest, or CNFetchRequest objects for which the error code applies. */
|
|
54
|
+
CONTACTS_EXTERN NSString * const CNErrorUserInfoAffectedRecordsKey API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0));
|
|
55
|
+
|
|
56
|
+
/*! When available an array of one or more NSString objects for which the error code applies. */
|
|
57
|
+
CONTACTS_EXTERN NSString * const CNErrorUserInfoAffectedRecordIdentifiersKey API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0));
|
|
58
|
+
|
|
59
|
+
/*! An array of NSErrors for CNErrorCodeValidationMultipleErrors. */
|
|
60
|
+
CONTACTS_EXTERN NSString * const CNErrorUserInfoValidationErrorsKey NS_AVAILABLE(10_11, 9_0);
|
|
61
|
+
|
|
62
|
+
/*! An array of key paths associated with a given error. For validation errors this will contain key paths to specific object properties. */
|
|
63
|
+
CONTACTS_EXTERN NSString * const CNErrorUserInfoKeyPathsKey API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0));
|
|
64
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNFetchRequest.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
API_AVAILABLE(macosx(10.11), ios(9.0), watchos(2.0))
|
|
13
|
+
@interface CNFetchRequest : NSObject
|
|
14
|
+
|
|
15
|
+
@end
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNFetchResult.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@class CNChangeHistoryAnchor;
|
|
13
|
+
|
|
14
|
+
API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
|
|
15
|
+
@interface CNFetchResult<ValueType> : NSObject
|
|
16
|
+
|
|
17
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
18
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
19
|
+
|
|
20
|
+
@property (nonatomic, readonly, strong) ValueType value;
|
|
21
|
+
|
|
22
|
+
@property (nonatomic, readonly, copy) NSData * currentHistoryToken;
|
|
23
|
+
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNGroup+Predicates.h
|
|
3
|
+
// Contacts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Contacts/CNGroup.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* @abstract The predicates to match groups against.
|
|
15
|
+
*
|
|
16
|
+
* @discussion Can only use these predicates with CNContactStore.
|
|
17
|
+
*/
|
|
18
|
+
@interface CNGroup (Predicates)
|
|
19
|
+
|
|
20
|
+
+ (NSPredicate *)predicateForGroupsWithIdentifiers:(NSArray<NSString*> *)identifiers;
|
|
21
|
+
|
|
22
|
+
+ (NSPredicate *)predicateForSubgroupsInGroupWithIdentifier:(NSString *)parentGroupIdentifier NS_AVAILABLE(10_11, NA);
|
|
23
|
+
|
|
24
|
+
+ (NSPredicate *)predicateForGroupsInContainerWithIdentifier:(NSString *)containerIdentifier;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNGroup.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 group.
|
|
16
|
+
*
|
|
17
|
+
* @discussion CNGroup is thread safe.
|
|
18
|
+
*/
|
|
19
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
20
|
+
@interface CNGroup : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
21
|
+
|
|
22
|
+
/*! The identifier is unique among groups on the device. It can be saved and used for fetching groups next application launch. */
|
|
23
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *identifier;
|
|
24
|
+
|
|
25
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *name;
|
|
26
|
+
|
|
27
|
+
@end
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
// Properties that are always fetched. Can be used with key value coding and observing.
|
|
31
|
+
CONTACTS_EXTERN NSString * const CNGroupIdentifierKey NS_AVAILABLE(10_11, 9_0);
|
|
32
|
+
CONTACTS_EXTERN NSString * const CNGroupNameKey NS_AVAILABLE(10_11, 9_0);
|
|
33
|
+
|
|
34
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNInstantMessageAddress.h
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CNInstantMessageAddress.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 an instant message address.
|
|
16
|
+
*
|
|
17
|
+
* @discussion CNInstantMessageAddress is thread safe.
|
|
18
|
+
*/
|
|
19
|
+
NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
20
|
+
@interface CNInstantMessageAddress : NSObject <NSCopying, NSSecureCoding>
|
|
21
|
+
|
|
22
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *username;
|
|
23
|
+
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *service;
|
|
24
|
+
|
|
25
|
+
- (instancetype)initWithUsername:(NSString *)username service:(NSString *)service;
|
|
26
|
+
|
|
27
|
+
/*! Returns a user displayable property name. */
|
|
28
|
+
+ (NSString *)localizedStringForKey:(NSString *)key;
|
|
29
|
+
|
|
30
|
+
/*! Returns a user displayable service name. */
|
|
31
|
+
+ (NSString *)localizedStringForService:(NSString *)service;
|
|
32
|
+
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// Properties that are always fetched. Can be used with key value coding and observing.
|
|
37
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageAddressUsernameKey NS_AVAILABLE(10_11, 9_0);
|
|
38
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageAddressServiceKey NS_AVAILABLE(10_11, 9_0);
|
|
39
|
+
|
|
40
|
+
// Instant message services.
|
|
41
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceAIM NS_AVAILABLE(10_11, 9_0);
|
|
42
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceFacebook NS_AVAILABLE(10_11, 9_0);
|
|
43
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceGaduGadu NS_AVAILABLE(10_11, 9_0);
|
|
44
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceGoogleTalk NS_AVAILABLE(10_11, 9_0);
|
|
45
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceICQ NS_AVAILABLE(10_11, 9_0);
|
|
46
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceJabber NS_AVAILABLE(10_11, 9_0);
|
|
47
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceMSN NS_AVAILABLE(10_11, 9_0);
|
|
48
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceQQ NS_AVAILABLE(10_11, 9_0);
|
|
49
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceSkype NS_AVAILABLE(10_11, 9_0);
|
|
50
|
+
CONTACTS_EXTERN NSString * const CNInstantMessageServiceYahoo NS_AVAILABLE(10_11, 9_0);
|
|
51
|
+
|
|
52
|
+
NS_ASSUME_NONNULL_END
|