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,129 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKCalendarItem.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2010 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <EventKit/EKObject.h>
|
|
9
|
+
#import <EventKit/EventKitDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class EKRecurrenceRule, EKAlarm, EKCalendar, EKParticipant;
|
|
14
|
+
|
|
15
|
+
NS_CLASS_AVAILABLE(10_8, 5_0)
|
|
16
|
+
@interface EKCalendarItem : EKObject
|
|
17
|
+
|
|
18
|
+
/*!
|
|
19
|
+
@property UUID
|
|
20
|
+
@discussion This is now deprecated; use calendarItemIdentifier instead.
|
|
21
|
+
*/
|
|
22
|
+
@property(nonatomic, readonly) NSString *UUID NS_DEPRECATED(NA, NA, 5_0, 6_0)
|
|
23
|
+
#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
|
|
24
|
+
API_UNAVAILABLE(visionos)
|
|
25
|
+
#endif
|
|
26
|
+
;
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
@property calendar
|
|
30
|
+
@abstract The calendar that this calendar item belongs to.
|
|
31
|
+
@discussion This will be nil for new calendar items until you set it.
|
|
32
|
+
*/
|
|
33
|
+
@property(nonatomic, strong, null_unspecified) EKCalendar *calendar;
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
@property calendarItemIdentifier
|
|
37
|
+
@abstract A unique identifier for a calendar item.
|
|
38
|
+
@discussion Item identifiers are not sync-proof in that a full sync will lose
|
|
39
|
+
this identifier, so you should always have a back up plan for dealing
|
|
40
|
+
with a reminder that is no longer fetchable by this property, e.g. by title, etc.
|
|
41
|
+
Use [EKEventStore calendarItemWithIdentifier:] to look up the item by this value.
|
|
42
|
+
*/
|
|
43
|
+
@property(nonatomic, readonly) NSString *calendarItemIdentifier NS_AVAILABLE(10_8, 6_0);
|
|
44
|
+
|
|
45
|
+
/*!
|
|
46
|
+
@property calendarItemExternalIdentifier
|
|
47
|
+
@abstract A server-provided identifier for this calendar item
|
|
48
|
+
@discussion This identifier, provided by the server, allows you to reference the same event or reminder across
|
|
49
|
+
multiple devices. For calendars stored locally on the device, including the birthday calendar,
|
|
50
|
+
it simply passes through to calendarItemIdentifier.
|
|
51
|
+
|
|
52
|
+
This identifier is unique as of creation for every calendar item. However, there are some
|
|
53
|
+
cases where duplicate copies of a calendar item can exist in the same database, including:
|
|
54
|
+
- A calendar item was imported from an ICS file into multiple calendars
|
|
55
|
+
- An event was created in a calendar shared with the user and the user was also invited to the event
|
|
56
|
+
- The user is a delegate of a calendar that also has this event
|
|
57
|
+
- A subscribed calendar was added to multiple accounts
|
|
58
|
+
In such cases, you should choose between calendar items based on other factors, such as
|
|
59
|
+
the calendar or source.
|
|
60
|
+
|
|
61
|
+
This identifier is the same for all occurrences of a recurring event. If you wish to differentiate
|
|
62
|
+
between occurrences, you may want to use the start date.
|
|
63
|
+
|
|
64
|
+
This may be nil for new calendar items that do not yet belong to a calendar.
|
|
65
|
+
|
|
66
|
+
In addition, there are two caveats for Exchange-based calendars:
|
|
67
|
+
- This identifier will be different between EventKit on iOS versus OS X
|
|
68
|
+
- This identifier will be different between devices for EKReminders
|
|
69
|
+
*/
|
|
70
|
+
@property(nonatomic, readonly, null_unspecified) NSString *calendarItemExternalIdentifier NS_AVAILABLE(10_8, 6_0);
|
|
71
|
+
|
|
72
|
+
/*!
|
|
73
|
+
@property title
|
|
74
|
+
@abstract The title of this calendar item.
|
|
75
|
+
@discussion This will be an empty string for new calendar items until you set it.
|
|
76
|
+
*/
|
|
77
|
+
@property(nonatomic, copy, null_unspecified) NSString *title;
|
|
78
|
+
@property(nonatomic, copy, nullable) NSString *location;
|
|
79
|
+
@property(nonatomic, copy, nullable) NSString *notes;
|
|
80
|
+
@property(nonatomic, copy, nullable) NSURL *URL NS_AVAILABLE(10_8, 5_0);
|
|
81
|
+
|
|
82
|
+
@property(nonatomic, readonly, nullable) NSDate *lastModifiedDate;
|
|
83
|
+
@property(nonatomic, readonly, nullable, strong) NSDate *creationDate NS_AVAILABLE(10_8, 5_0);
|
|
84
|
+
@property(nonatomic, copy, nullable) NSTimeZone *timeZone NS_AVAILABLE(10_8, 5_0);
|
|
85
|
+
|
|
86
|
+
// These exist to do simple checks for the presence of data without
|
|
87
|
+
// loading said data. While at present only hasRecurrenceRules has a
|
|
88
|
+
// fast path, it is a good idea to use these if you only need to know
|
|
89
|
+
// the data exists anyway since at some point they will all be a
|
|
90
|
+
// simple check.
|
|
91
|
+
@property(nonatomic, readonly) BOOL hasAlarms NS_AVAILABLE(10_8, 5_0);
|
|
92
|
+
@property(nonatomic, readonly) BOOL hasRecurrenceRules NS_AVAILABLE(10_8, 5_0);
|
|
93
|
+
@property(nonatomic, readonly) BOOL hasAttendees NS_AVAILABLE(10_8, 5_0);
|
|
94
|
+
@property(nonatomic, readonly) BOOL hasNotes NS_AVAILABLE(10_8, 5_0);
|
|
95
|
+
|
|
96
|
+
// An array of EKParticipant objects
|
|
97
|
+
@property(nonatomic, readonly, nullable) NSArray<__kindof EKParticipant *> *attendees;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
// An array of EKAlarm objects
|
|
101
|
+
@property(nonatomic, copy, nullable) NSArray<EKAlarm *> *alarms;
|
|
102
|
+
|
|
103
|
+
/*!
|
|
104
|
+
@method addAlarm:
|
|
105
|
+
@abstract Adds an alarm to this item.
|
|
106
|
+
@discussion This method add an alarm to an item. Be warned that some calendars can only
|
|
107
|
+
allow a certain maximum number of alarms. When this item is saved, it will
|
|
108
|
+
truncate any extra alarms from the array.
|
|
109
|
+
*/
|
|
110
|
+
- (void)addAlarm:(EKAlarm *)alarm;
|
|
111
|
+
|
|
112
|
+
/*!
|
|
113
|
+
@method removeAlarm:
|
|
114
|
+
@abstract Removes an alarm from this item.
|
|
115
|
+
*/
|
|
116
|
+
- (void)removeAlarm:(EKAlarm *)alarm;
|
|
117
|
+
|
|
118
|
+
/*!
|
|
119
|
+
@property recurrenceRules
|
|
120
|
+
@abstract An array of EKRecurrenceRules, or nil if none.
|
|
121
|
+
*/
|
|
122
|
+
@property(nonatomic, copy, nullable) NSArray<EKRecurrenceRule *> *recurrenceRules NS_AVAILABLE(10_8, 5_0);
|
|
123
|
+
|
|
124
|
+
- (void)addRecurrenceRule:(EKRecurrenceRule *)rule;
|
|
125
|
+
- (void)removeRecurrenceRule:(EKRecurrenceRule *)rule;
|
|
126
|
+
|
|
127
|
+
@end
|
|
128
|
+
|
|
129
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKError.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2009-2010 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <EventKit/EventKitDefines.h>
|
|
10
|
+
|
|
11
|
+
/*!
|
|
12
|
+
@const EKErrorDomain
|
|
13
|
+
@abstract Error domain for NSError values stemming from the EventKit Framework API.
|
|
14
|
+
@discussion This error domain is used as the domain for all NSError instances stemming from the
|
|
15
|
+
EventKit Framework.
|
|
16
|
+
*/
|
|
17
|
+
EVENTKIT_EXTERN NSString *const EKErrorDomain NS_AVAILABLE(10_8, 4_0);
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
@enum EKErrorCode
|
|
21
|
+
@abstract Error codes for NSError values stemming from the Calendar Framework.
|
|
22
|
+
@discussion These error codes are used as the codes for all NSError instances stemmming from the
|
|
23
|
+
Calendar Framework.
|
|
24
|
+
|
|
25
|
+
@constant EKErrorEventNotMutable The event is not mutable and cannot be saved/deleted.
|
|
26
|
+
@constant EKErrorNoCalendar The event has no calendar set.
|
|
27
|
+
@constant EKErrorNoStartDate The event has no start date set.
|
|
28
|
+
@constant EKErrorNoEndDate The event has no end date set.
|
|
29
|
+
@constant EKErrorDatesInverted The end date is before the start date.
|
|
30
|
+
@constant EKErrorInternalFailure An internal error occurred.
|
|
31
|
+
@constant EKErrorCalendarReadOnly Calendar can not have events added to it.
|
|
32
|
+
@constant EKErrorDurationGreaterThanRecurrence The duration of an event is greater than the recurrence interval.
|
|
33
|
+
@constant EKErrorAlarmGreaterThanRecurrence The alarm interval is greater than the recurrence interval
|
|
34
|
+
@constant EKErrorStartDateTooFarInFuture The start date is further into the future than the calendar will display.
|
|
35
|
+
@constant EKErrorStartDateCollidesWithOtherOccurrence The start date specified collides with another occurrence of that event, and the current calendar doesn't allow it.
|
|
36
|
+
@constant EKErrorObjectBelongsToDifferentStore The object you are passing doesn't belong to the calendar store you're dealing with.
|
|
37
|
+
@constant EKErrorInvitesCannotBeMoved The event is an invite, and therefore cannot move to another calendar.
|
|
38
|
+
@constant EKErrorInvalidSpan An invalid span was passed when saving/deleting.
|
|
39
|
+
@constant EKErrorCalendarHasNoSource An attempt to save a calendar with no source set was made.
|
|
40
|
+
@constant EKErrorCalendarSourceCannotBeModified The calendar cannot be moved to another source.
|
|
41
|
+
@constant EKErrorCalendarIsImmutable The calendar is immutable and cannot be modified or deleted.
|
|
42
|
+
@constant EKErrorSourceDoesNotAllowCalendarAddDelete Some sources (accounts) do not allow calendars to be added or removed.
|
|
43
|
+
@constant EKErrorRecurringReminderRequiresDueDate A recurring reminder requires a due date.
|
|
44
|
+
@constant EKErrorStructuredLocationsNotSupported The source this calendar belongs to does not support structured locations.
|
|
45
|
+
@constant EKErrorReminderLocationsNotSupported This source doesn't support locations on Reminders.
|
|
46
|
+
@constant EKErrorAlarmProximityNotSupported This source doesn't allow alarm proximity (geofencing).
|
|
47
|
+
@constant EKErrorCalendarDoesNotAllowEvents You are trying to add an event to a calendar that does not allow events.
|
|
48
|
+
@constant EKErrorCalendarDoesNotAllowReminders You are trying to add a reminder to a calendar that does not allow reminders.
|
|
49
|
+
@constant EKErrorSourceDoesNotAllowReminders You are trying to add a calendar that allows reminders to a source that does not allow them.
|
|
50
|
+
@constant EKErrorSourceDoesNotAllowEvents You are trying to add a calendar that allows events to a source that does not allow them.
|
|
51
|
+
@constant EKErrorPriorityIsInvalid You have set an invalid priority for a reminder. Priorities must be between 0 and 9.
|
|
52
|
+
@constant EKErrorInvalidEntityType This is not a valid EKEntityType
|
|
53
|
+
@constant EKErrorProcedureAlarmsNotMutable Procedure alarms may not be created or modified.
|
|
54
|
+
@constant EKErrorEventStoreNotAuthorized The user has not authorized your application to access their events and/or reminders.
|
|
55
|
+
@constant EKErrorOSNotSupported The action is not supported on the current operating system.
|
|
56
|
+
@constant EKErrorInvalidCalendar The given calendar is invalid or nil.
|
|
57
|
+
@constant EKErrorNotificationsCollectionFlagNotSet The given notification collection does not have the EKNotificationsCollectionFlag set.
|
|
58
|
+
@constant EKErrorSourceMismatch The source for an object does not match its containers source.
|
|
59
|
+
@constant EKErrorNotificationCollectionMismatch The notification collection containing a given notification does not match the collection we are trying to save.
|
|
60
|
+
@constant EKErrorNotificationSavedWithoutCollection The notification is being saved without first adding it to a notification collection and saving the collection.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
#if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED || !TARGET_OS_IPHONE
|
|
64
|
+
typedef NS_ENUM(NSInteger, EKErrorCode) {
|
|
65
|
+
EKErrorEventNotMutable,
|
|
66
|
+
EKErrorNoCalendar,
|
|
67
|
+
EKErrorNoStartDate,
|
|
68
|
+
EKErrorNoEndDate,
|
|
69
|
+
EKErrorDatesInverted,
|
|
70
|
+
EKErrorInternalFailure,
|
|
71
|
+
EKErrorCalendarReadOnly,
|
|
72
|
+
EKErrorDurationGreaterThanRecurrence,
|
|
73
|
+
EKErrorAlarmGreaterThanRecurrence,
|
|
74
|
+
EKErrorStartDateTooFarInFuture,
|
|
75
|
+
EKErrorStartDateCollidesWithOtherOccurrence,
|
|
76
|
+
EKErrorObjectBelongsToDifferentStore,
|
|
77
|
+
EKErrorInvitesCannotBeMoved,
|
|
78
|
+
EKErrorInvalidSpan,
|
|
79
|
+
EKErrorCalendarHasNoSource,
|
|
80
|
+
EKErrorCalendarSourceCannotBeModified,
|
|
81
|
+
EKErrorCalendarIsImmutable,
|
|
82
|
+
EKErrorSourceDoesNotAllowCalendarAddDelete,
|
|
83
|
+
EKErrorRecurringReminderRequiresDueDate,
|
|
84
|
+
EKErrorStructuredLocationsNotSupported,
|
|
85
|
+
EKErrorReminderLocationsNotSupported,
|
|
86
|
+
EKErrorAlarmProximityNotSupported,
|
|
87
|
+
EKErrorCalendarDoesNotAllowEvents,
|
|
88
|
+
EKErrorCalendarDoesNotAllowReminders,
|
|
89
|
+
EKErrorSourceDoesNotAllowReminders,
|
|
90
|
+
EKErrorSourceDoesNotAllowEvents,
|
|
91
|
+
EKErrorPriorityIsInvalid,
|
|
92
|
+
EKErrorInvalidEntityType,
|
|
93
|
+
EKErrorProcedureAlarmsNotMutable,
|
|
94
|
+
EKErrorEventStoreNotAuthorized,
|
|
95
|
+
EKErrorOSNotSupported,
|
|
96
|
+
EKErrorInvalidInviteReplyCalendar,
|
|
97
|
+
EKErrorNotificationsCollectionFlagNotSet,
|
|
98
|
+
EKErrorSourceMismatch,
|
|
99
|
+
EKErrorNotificationCollectionMismatch,
|
|
100
|
+
EKErrorNotificationSavedWithoutCollection,
|
|
101
|
+
EKErrorReminderAlarmContainsEmailOrUrl,
|
|
102
|
+
|
|
103
|
+
EKErrorLast // used internally
|
|
104
|
+
};
|
|
105
|
+
#endif
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKEvent.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2009-2010 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <EventKit/EventKitDefines.h>
|
|
10
|
+
#import <EventKit/EKCalendarItem.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@class EKEventStore, EKCalendar, EKRecurrenceRule, EKAlarm, EKParticipant, EKStructuredLocation;
|
|
15
|
+
|
|
16
|
+
typedef NS_ENUM(NSInteger, EKEventAvailability) {
|
|
17
|
+
EKEventAvailabilityNotSupported = -1,
|
|
18
|
+
EKEventAvailabilityBusy = 0,
|
|
19
|
+
EKEventAvailabilityFree,
|
|
20
|
+
EKEventAvailabilityTentative,
|
|
21
|
+
EKEventAvailabilityUnavailable
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
typedef NS_ENUM(NSInteger, EKEventStatus) {
|
|
25
|
+
EKEventStatusNone = 0,
|
|
26
|
+
EKEventStatusConfirmed,
|
|
27
|
+
EKEventStatusTentative,
|
|
28
|
+
EKEventStatusCanceled,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
@class EKEvent
|
|
34
|
+
@abstract The EKEvent class represents an occurrence of an event.
|
|
35
|
+
*/
|
|
36
|
+
NS_CLASS_AVAILABLE(10_8, 4_0)
|
|
37
|
+
@interface EKEvent : EKCalendarItem
|
|
38
|
+
|
|
39
|
+
/*!
|
|
40
|
+
@method eventWithEventStore:
|
|
41
|
+
@abstract Creates a new autoreleased event object.
|
|
42
|
+
*/
|
|
43
|
+
+ (EKEvent *)eventWithEventStore:(EKEventStore *)eventStore;
|
|
44
|
+
|
|
45
|
+
/*!
|
|
46
|
+
@property eventIdentifier
|
|
47
|
+
@abstract A unique identifier for this event.
|
|
48
|
+
@discussion This identifier can be used to look the event up using [EKEventStore eventWithIdentifier:].
|
|
49
|
+
You can use this not only to simply fetch the event, but also to validate the event
|
|
50
|
+
has not been deleted out from under you when you get an external change notification
|
|
51
|
+
via the EKEventStore database changed notification. If eventWithIdentifier: returns nil,
|
|
52
|
+
the event was deleted.
|
|
53
|
+
|
|
54
|
+
Please note that if you change the calendar of an event, this ID will likely change. It is
|
|
55
|
+
currently also possible for the ID to change due to a sync operation. For example, if
|
|
56
|
+
a user moved an event on a different client to another calendar, we'd see it as a
|
|
57
|
+
completely new event here.
|
|
58
|
+
|
|
59
|
+
This may be nil for events that have not been saved.
|
|
60
|
+
*/
|
|
61
|
+
@property(null_unspecified, nonatomic, readonly) NSString *eventIdentifier;
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
@property allDay
|
|
65
|
+
@abstract Indicates this event is an 'all day' event.
|
|
66
|
+
*/
|
|
67
|
+
@property(nonatomic, getter=isAllDay) BOOL allDay;
|
|
68
|
+
|
|
69
|
+
/*!
|
|
70
|
+
@property startDate
|
|
71
|
+
@abstract The start date for the event.
|
|
72
|
+
@discussion This property represents the start date for this event. Floating events (such
|
|
73
|
+
as all-day events) are currently always returned in the default time zone.
|
|
74
|
+
([NSTimeZone defaultTimeZone])
|
|
75
|
+
|
|
76
|
+
This will be nil for new events until you set it.
|
|
77
|
+
*/
|
|
78
|
+
@property(null_unspecified, nonatomic, copy) NSDate *startDate;
|
|
79
|
+
|
|
80
|
+
/*!
|
|
81
|
+
@property endDate
|
|
82
|
+
@abstract The end date for the event.
|
|
83
|
+
@discussion This will be nil for new events until you set it.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
@property(null_unspecified, nonatomic, copy) NSDate *endDate;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/*!
|
|
90
|
+
@property structuredLocation
|
|
91
|
+
@abstract Allows you to set a structured location (a location with a potential geo-coordinate) on an
|
|
92
|
+
event. The getter for EKEvent’s location property just returns the structured location’s title.
|
|
93
|
+
The setter for EKEvent’s location property is equivalent to
|
|
94
|
+
[event setStructuredLocation:[EKStructuredLocation locationWithTitle:…]].
|
|
95
|
+
*/
|
|
96
|
+
@property(nonatomic, copy, nullable) EKStructuredLocation *structuredLocation NS_AVAILABLE(10_11, 9_0);
|
|
97
|
+
|
|
98
|
+
/*!
|
|
99
|
+
@method compareStartDateWithEvent
|
|
100
|
+
@abstract Comparison function you can pass to sort NSArrays of EKEvents by start date.
|
|
101
|
+
*/
|
|
102
|
+
- (NSComparisonResult)compareStartDateWithEvent:(EKEvent *)other;
|
|
103
|
+
|
|
104
|
+
/*!
|
|
105
|
+
@property organizer
|
|
106
|
+
@abstract The organizer of this event, or nil.
|
|
107
|
+
*/
|
|
108
|
+
@property(nonatomic, readonly, nullable) EKParticipant *organizer;
|
|
109
|
+
|
|
110
|
+
/*!
|
|
111
|
+
@property availability
|
|
112
|
+
@abstract The availability setting for this event.
|
|
113
|
+
@discussion The availability setting is used by CalDAV and Exchange servers to indicate
|
|
114
|
+
how the time should be treated for scheduling. If the calendar the event is
|
|
115
|
+
currently in does not support event availability, EKEventAvailabilityNotSupported
|
|
116
|
+
is returned.
|
|
117
|
+
*/
|
|
118
|
+
@property(nonatomic) EKEventAvailability availability;
|
|
119
|
+
|
|
120
|
+
/*!
|
|
121
|
+
@property status
|
|
122
|
+
@abstract The status of the event.
|
|
123
|
+
@discussion While the status offers four different values in the EKEventStatus enumeration,
|
|
124
|
+
in practice, the only actionable and reliable status is canceled. Any other status
|
|
125
|
+
should be considered informational at best. You cannot set this property. If you
|
|
126
|
+
wish to cancel an event, you should simply remove it using removeEvent:.
|
|
127
|
+
*/
|
|
128
|
+
@property(nonatomic, readonly) EKEventStatus status;
|
|
129
|
+
|
|
130
|
+
/*!
|
|
131
|
+
@property isDetached
|
|
132
|
+
@abstract Represents whether this event is detached from a recurring series.
|
|
133
|
+
@discussion If this EKEvent is an instance of a repeating event, and an attribute of this
|
|
134
|
+
EKEvent has been changed from the default value generated by the repeating event,
|
|
135
|
+
isDetached will return YES. If the EKEvent is unchanged from its default state, or
|
|
136
|
+
is not a repeating event, isDetached returns NO.
|
|
137
|
+
*/
|
|
138
|
+
@property(nonatomic, readonly) BOOL isDetached;
|
|
139
|
+
|
|
140
|
+
/*!
|
|
141
|
+
@property occurrenceDate:
|
|
142
|
+
@abstract The occurrence date of an event if it is part of a recurring series.
|
|
143
|
+
@discussion This is only set if the event is part of a recurring series. It returns
|
|
144
|
+
the date on which this event was originally scheduled to occur. For occurrences
|
|
145
|
+
that are unmodified from the recurring series, this is the same as the start date.
|
|
146
|
+
This value will remain the same even if the event has been detached and its start
|
|
147
|
+
date has changed. Floating events (such as all-day events) are currently returned
|
|
148
|
+
in the default time zone. ([NSTimeZone defaultTimeZone])
|
|
149
|
+
|
|
150
|
+
This will be nil for new events until you set startDate.
|
|
151
|
+
*/
|
|
152
|
+
@property(null_unspecified, nonatomic, readonly) NSDate *occurrenceDate NS_AVAILABLE(10_8, 9_0);
|
|
153
|
+
|
|
154
|
+
/*!
|
|
155
|
+
@method refresh
|
|
156
|
+
@abstract Refreshes an event object to ensure it's still valid.
|
|
157
|
+
@discussion When the database changes, your application is sent an EKEventStoreChangedNotification
|
|
158
|
+
note. You should generally consider all EKEvent instances to be invalid as soon as
|
|
159
|
+
you receive the notification. However, for events you truly care to keep around, you
|
|
160
|
+
can call this method. It ensures the record is still valid by ensuring the event and
|
|
161
|
+
start date are still valid. It also attempts to refresh all properties except those
|
|
162
|
+
you might have modified. If this method returns NO, the record has been deleted or is
|
|
163
|
+
otherwise invalid. You should not continue to use it. If it returns YES, all is still
|
|
164
|
+
well, and the record is ready for continued use. You should only call this method on
|
|
165
|
+
events that are more critical to keep around if possible, such as an event that is
|
|
166
|
+
being actively edited, as this call is fairly heavyweight. Do not use it to refresh
|
|
167
|
+
the entire selected range of events you might have had selected. It is mostly pointless
|
|
168
|
+
anyway, as recurrence information may have changed.
|
|
169
|
+
*/
|
|
170
|
+
- (BOOL)refresh;
|
|
171
|
+
|
|
172
|
+
/*!
|
|
173
|
+
@method birthdayContactIdentifier
|
|
174
|
+
@abstract Specifies the contact identifier of the person this event was created for.
|
|
175
|
+
@discussion This property is only valid for events in the built-in Birthdays calendar. It specifies
|
|
176
|
+
the contact identifier (for use with the Contacts framework) of the person this event was
|
|
177
|
+
created for. For any other type of event, this property returns nil.
|
|
178
|
+
*/
|
|
179
|
+
@property(nonatomic, readonly, nullable) NSString *birthdayContactIdentifier NS_AVAILABLE(10_11, 9_0);
|
|
180
|
+
|
|
181
|
+
/*!
|
|
182
|
+
@property birthdayPersonID
|
|
183
|
+
@abstract Specifies the address book ID of the person this event was created for.
|
|
184
|
+
@discussion This property is only valid for events in the built-in Birthdays calendar. It specifies
|
|
185
|
+
the Address Book ID of the person this event was created for. For any other type of event,
|
|
186
|
+
this property returns -1.
|
|
187
|
+
*/
|
|
188
|
+
@property(nonatomic, readonly) NSInteger birthdayPersonID NS_DEPRECATED_IOS(5_0, 9_0, "Use birthdayContactIdentifier instead")
|
|
189
|
+
#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
|
|
190
|
+
API_UNAVAILABLE(visionos)
|
|
191
|
+
#endif
|
|
192
|
+
;
|
|
193
|
+
|
|
194
|
+
/*!
|
|
195
|
+
@property birthdayPersonUniqueID
|
|
196
|
+
@abstract Specifies the address book unique ID of the person this event was created for.
|
|
197
|
+
@discussion This property is only valid for events in the built-in Birthdays calendar. It specifies
|
|
198
|
+
the Address Book unique ID of the person this event was created for. For any other type of event,
|
|
199
|
+
this property returns nil.
|
|
200
|
+
*/
|
|
201
|
+
@property(nonatomic, readonly, nullable) NSString *birthdayPersonUniqueID NS_DEPRECATED_MAC(10_8, 10_11, "Use birthdayContactIdentifier instead");
|
|
202
|
+
|
|
203
|
+
@end
|
|
204
|
+
|
|
205
|
+
NS_ASSUME_NONNULL_END
|