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,71 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKRecurrenceDayOfWeek.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2010 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <EventKit/EventKitDefines.h>
|
|
10
|
+
#import <EventKit/EKTypes.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
@class EKRecurrenceDayOfWeek
|
|
16
|
+
@abstract Class which represents a day of the week this recurrence will occur.
|
|
17
|
+
@discussion EKRecurrenceDayOfWeek specifies either a simple day of the week, or the nth instance
|
|
18
|
+
of a particular day of the week, such as the third Tuesday of every month. The week
|
|
19
|
+
number is only valid when used with monthly or yearly recurrences, since it would
|
|
20
|
+
be otherwise meaningless.
|
|
21
|
+
|
|
22
|
+
Valid values for dayOfTheWeek are integers 1-7, which correspond to days of the week
|
|
23
|
+
with Sunday = 1. Valid values for weekNumber portion are (+/-)1-53, where a negative
|
|
24
|
+
value indicates a value from the end of the range. For example, in a yearly event -1
|
|
25
|
+
means last week of the year. -1 in a Monthly recurrence indicates the last week of
|
|
26
|
+
the month.
|
|
27
|
+
|
|
28
|
+
The value 0 also indicates the weekNumber is irrelevant (every Sunday, etc.).
|
|
29
|
+
|
|
30
|
+
Day-of-week weekNumber values that are out of bounds for the recurrence type will
|
|
31
|
+
result in an exception when trying to initialize the recurrence. In particular,
|
|
32
|
+
weekNumber must be zero when passing EKRecurrenceDayOfWeek objects to initialize a weekly
|
|
33
|
+
recurrence.
|
|
34
|
+
*/
|
|
35
|
+
NS_CLASS_AVAILABLE(10_8, 4_0)
|
|
36
|
+
@interface EKRecurrenceDayOfWeek : NSObject <NSCopying, NSSecureCoding> {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/*!
|
|
40
|
+
@method dayOfWeek:
|
|
41
|
+
@abstract Creates an autoreleased object with a day of the week and week number of zero.
|
|
42
|
+
*/
|
|
43
|
+
+ (instancetype)dayOfWeek:(EKWeekday)dayOfTheWeek;
|
|
44
|
+
|
|
45
|
+
/*!
|
|
46
|
+
@method dayOfWeek:weekNumber:
|
|
47
|
+
@abstract Creates an autoreleased object with a specific day of week and week number.
|
|
48
|
+
*/
|
|
49
|
+
+ (instancetype)dayOfWeek:(EKWeekday)dayOfTheWeek weekNumber:(NSInteger)weekNumber;
|
|
50
|
+
|
|
51
|
+
/*!
|
|
52
|
+
@method initWithDayOfTheWeek:weekNumber:
|
|
53
|
+
@abstract Creates an day-of-week object with a specific day of week and week number.
|
|
54
|
+
*/
|
|
55
|
+
- (id)initWithDayOfTheWeek:(EKWeekday)dayOfTheWeek weekNumber:(NSInteger)weekNumber;
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
@property dayOfTheWeek
|
|
59
|
+
@abstract The day of the week.
|
|
60
|
+
*/
|
|
61
|
+
@property(nonatomic, readonly) EKWeekday dayOfTheWeek;
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
@property weekNumber
|
|
65
|
+
@abstract The week number.
|
|
66
|
+
*/
|
|
67
|
+
@property(nonatomic, readonly) NSInteger weekNumber;
|
|
68
|
+
|
|
69
|
+
@end
|
|
70
|
+
|
|
71
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKRecurrenceEnd.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2010 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <EventKit/EventKitDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
@class EKRecurrenceEnd
|
|
15
|
+
@abstract Class which represents when a recurrence should end.
|
|
16
|
+
@discussion EKRecurrenceEnd is an attribute of EKRecurrenceRule that defines how long
|
|
17
|
+
the recurrence is scheduled to repeat. The recurrence can be defined either
|
|
18
|
+
with an NSUInteger that indicates the total number times it repeats, or with
|
|
19
|
+
an NSDate, after which it no longer repeats. An event which is set to never
|
|
20
|
+
end should have its EKRecurrenceEnd set to nil.
|
|
21
|
+
|
|
22
|
+
If the end of the pattern is defines with an NSDate, the client must pass a
|
|
23
|
+
valid NSDate, nil cannot be passed. If the end of the pattern is defined as
|
|
24
|
+
terms of a number of occurrences, the occurrenceCount passed to the initializer
|
|
25
|
+
must be positive, it cannot be 0. If the client attempts to initialize a
|
|
26
|
+
EKRecurrenceEnd with a nil NSDate or OccurrenceCount of 0, an exception is raised.
|
|
27
|
+
|
|
28
|
+
A EKRecurrenceEnd initialized with an end date will return 0 for occurrenceCount.
|
|
29
|
+
One initialized with a number of occurrences will return nil for its endDate.
|
|
30
|
+
*/
|
|
31
|
+
NS_CLASS_AVAILABLE(10_8, 4_0)
|
|
32
|
+
@interface EKRecurrenceEnd : NSObject <NSCopying, NSSecureCoding> {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
@method recurrenceEndWithEndDate:
|
|
37
|
+
@abstract Creates an autoreleased recurrence end with a specific end date.
|
|
38
|
+
*/
|
|
39
|
+
+ (instancetype)recurrenceEndWithEndDate:(NSDate *)endDate;
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
@method recurrenceEndWithOccurrenceCount:
|
|
43
|
+
@abstract Creates an autoreleased recurrence end with a maximum occurrence count.
|
|
44
|
+
*/
|
|
45
|
+
+ (instancetype)recurrenceEndWithOccurrenceCount:(NSUInteger)occurrenceCount;
|
|
46
|
+
|
|
47
|
+
/*!
|
|
48
|
+
@property endDate
|
|
49
|
+
@abstract The end date of this recurrence, or nil if it's count-based.
|
|
50
|
+
*/
|
|
51
|
+
@property(nonatomic, readonly, nullable) NSDate *endDate;
|
|
52
|
+
|
|
53
|
+
/*!
|
|
54
|
+
@property occurrenceCount
|
|
55
|
+
@abstract The maximum occurrence count, or 0 if it's date-based.
|
|
56
|
+
*/
|
|
57
|
+
@property(nonatomic, readonly) NSUInteger occurrenceCount;
|
|
58
|
+
|
|
59
|
+
@end
|
|
60
|
+
|
|
61
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKRecurrenceRule.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/EKRecurrenceEnd.h>
|
|
11
|
+
#import <EventKit/EKRecurrenceDayOfWeek.h>
|
|
12
|
+
#import <EventKit/EKTypes.h>
|
|
13
|
+
#import <EventKit/EKObject.h>
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
@class EKEventStore, EKCalendarItem;
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
@class EKRecurrenceRule
|
|
21
|
+
@abstract Represents how an event repeats.
|
|
22
|
+
@discussion This class describes the recurrence pattern for a repeating event. The recurrence rules that
|
|
23
|
+
can be expressed are not restricted to the recurrence patterns that can be set in Calendar's UI.
|
|
24
|
+
|
|
25
|
+
It is currently not possible to directly modify a EKRecurrenceRule or any of its properties.
|
|
26
|
+
This functionality is achieved by creating a new EKRecurrenceRule, and setting an event to use the new rule.
|
|
27
|
+
When a new recurrence rule is set on an EKEvent, that change is not saved until the client
|
|
28
|
+
has passed the modified event to EKEventStore's saveEvent: method.
|
|
29
|
+
*/
|
|
30
|
+
NS_CLASS_AVAILABLE(10_8, 4_0)
|
|
31
|
+
@interface EKRecurrenceRule : EKObject <NSCopying>
|
|
32
|
+
|
|
33
|
+
/*!
|
|
34
|
+
@method initRecurrenceWithFrequency:interval:end:
|
|
35
|
+
@abstract Simple initializer to create a recurrence.
|
|
36
|
+
@discussion This is used to create a simple recurrence with a specific type, interval and end. If interval is
|
|
37
|
+
0, an exception is raised. The end parameter can be nil.
|
|
38
|
+
*/
|
|
39
|
+
- (instancetype)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval end:(nullable EKRecurrenceEnd *)end;
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
@method initRecurrenceWithFrequency:interval:daysOfTheWeek:daysOfTheMonth:monthsOfTheYear:weeksOfTheYear:daysOfTheYear:setPositions:end:
|
|
43
|
+
@abstract The designated initializer.
|
|
44
|
+
@discussion This can be used to build any kind of recurrence rule. But be aware that certain combinations make
|
|
45
|
+
no sense and will be ignored. For example, if you pass daysOfTheWeek for a daily recurrence, they
|
|
46
|
+
will be ignored.
|
|
47
|
+
@param type The type of recurrence
|
|
48
|
+
@param interval The interval. Passing zero will raise an exception.
|
|
49
|
+
@param daysOfTheWeek An array of EKRecurrenceDayOfWeek objects. Valid for all recurrence types except daily. Ignored otherwise.
|
|
50
|
+
Corresponds to the BYDAY value in the iCalendar specification.
|
|
51
|
+
@param daysOfTheMonth An array of NSNumbers ([+/-] 1 to 31). Negative numbers infer counting from the end of the month.
|
|
52
|
+
For example, -1 means the last day of the month. Valid only for monthly recurrences. Ignored otherwise.
|
|
53
|
+
Corresponds to the BYMONTHDAY value in the iCalendar specification.
|
|
54
|
+
@param monthsOfTheYear An array of NSNumbers (1 to 12). Valid only for yearly recurrences. Ignored otherwise. Corresponds to
|
|
55
|
+
the BYMONTH value in the iCalendar specification.
|
|
56
|
+
@param weeksOfTheYear An array of NSNumbers ([+/1] 1 to 53). Negative numbers infer counting from the end of the year.
|
|
57
|
+
For example, -1 means the last week of the year. Valid only for yearly recurrences. Ignored otherwise.
|
|
58
|
+
Corresponds to the BYWEEKNO value in the iCalendar specification.
|
|
59
|
+
@param daysOfTheYear An array of NSNumbers ([+/1] 1 to 366). Negative numbers infer counting from the end of the year.
|
|
60
|
+
For example, -1 means the last day of the year. Valid only for yearly recurrences. Ignored otherwise.
|
|
61
|
+
Corresponds to the BYYEARDAY value in the iCalendar specification.
|
|
62
|
+
@param setPositions An array of NSNumbers ([+/1] 1 to 366). Used at the end of recurrence computation to filter the list
|
|
63
|
+
to the positions specified. Negative numbers indicate starting at the end, i.e. -1 indicates taking the
|
|
64
|
+
last result of the set. Valid when daysOfTheWeek, daysOfTheMonth, monthsOfTheYear, weeksOfTheYear, or
|
|
65
|
+
daysOfTheYear is passed. Ignored otherwise. Corresponds to the BYSETPOS value in the iCalendar specification.
|
|
66
|
+
@param end The recurrence end, or nil.
|
|
67
|
+
*/
|
|
68
|
+
- (instancetype)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type
|
|
69
|
+
interval:(NSInteger)interval
|
|
70
|
+
daysOfTheWeek:(nullable NSArray<EKRecurrenceDayOfWeek *> *)days
|
|
71
|
+
daysOfTheMonth:(nullable NSArray<NSNumber *> *)monthDays
|
|
72
|
+
monthsOfTheYear:(nullable NSArray<NSNumber *> *)months
|
|
73
|
+
weeksOfTheYear:(nullable NSArray<NSNumber *> *)weeksOfTheYear
|
|
74
|
+
daysOfTheYear:(nullable NSArray<NSNumber *> *)daysOfTheYear
|
|
75
|
+
setPositions:(nullable NSArray<NSNumber *> *)setPositions
|
|
76
|
+
end:(nullable EKRecurrenceEnd *)end;
|
|
77
|
+
|
|
78
|
+
/* Properties that exist in all EKRecurrenceRules */
|
|
79
|
+
|
|
80
|
+
/*!
|
|
81
|
+
@property calendarIdentifier;
|
|
82
|
+
@discussion Calendar used by this recurrence rule.
|
|
83
|
+
*/
|
|
84
|
+
@property(nonatomic, readonly) NSString *calendarIdentifier;
|
|
85
|
+
|
|
86
|
+
/*!
|
|
87
|
+
@property recurrenceEnd
|
|
88
|
+
@discussion This property defines when the the repeating event is scheduled to end. The end date can be specified by a number of
|
|
89
|
+
occurrences, or with an end date.
|
|
90
|
+
*/
|
|
91
|
+
@property(nonatomic, copy, nullable) EKRecurrenceEnd *recurrenceEnd;
|
|
92
|
+
|
|
93
|
+
/*!
|
|
94
|
+
@property frequency
|
|
95
|
+
@discussion This property designates the unit of time used to describe the recurrence pattern.
|
|
96
|
+
*/
|
|
97
|
+
@property(nonatomic, readonly) EKRecurrenceFrequency frequency;
|
|
98
|
+
|
|
99
|
+
/*!
|
|
100
|
+
@property interval
|
|
101
|
+
@discussion The interval of a EKRecurrenceRule is an integer value which specifies how often the recurrence rule repeats
|
|
102
|
+
over the unit of time described by the EKRecurrenceFrequency. For example, if the EKRecurrenceFrequency is
|
|
103
|
+
EKRecurrenceWeekly, then an interval of 1 means the pattern is repeated every week. A value of 2
|
|
104
|
+
indicates it is repeated every other week, 3 means every third week, and so on. The value must be a
|
|
105
|
+
positive integer; 0 is not a valid value, and nil will be returned if the client attempts to initialize a
|
|
106
|
+
rule with a negative or zero interval.
|
|
107
|
+
*/
|
|
108
|
+
@property(nonatomic, readonly) NSInteger interval;
|
|
109
|
+
|
|
110
|
+
/*!
|
|
111
|
+
@property firstDayOfTheWeek
|
|
112
|
+
@discussion Recurrence patterns can specify which day of the week should be treated as the first day. Possible values for this
|
|
113
|
+
property are integers 0 and 1-7, which correspond to days of the week with Sunday = 1. Zero indicates that the
|
|
114
|
+
property is not set for this recurrence. The first day of the week only affects the way the recurrence is expanded
|
|
115
|
+
for weekly recurrence patterns with an interval greater than 1. For those types of recurrence patterns, the
|
|
116
|
+
Calendar framework will set firstDayOfTheWeek to be 2 (Monday). In all other cases, this property will be set
|
|
117
|
+
to zero. The iCalendar spec stipulates that the default value is Monday if this property is not set.
|
|
118
|
+
*/
|
|
119
|
+
@property(nonatomic, readonly) NSInteger firstDayOfTheWeek;
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
/* Properties that are only valid for certain EKRecurrenceRules */
|
|
123
|
+
|
|
124
|
+
// The properties that follow are only valid for certain recurrence rules, and are always arrays. For recurrence rules
|
|
125
|
+
// that can be expressed with one of the simple initializers, the arrays will contain a single object, corresponding
|
|
126
|
+
// to the day of the week, the day of the month, the "NthWeekDay" (for example, the fourth Thursday), or the month of
|
|
127
|
+
// the year the event recurs. The objects will be NSNumbers, except in the "NthWeekDay" case just mentioned, when
|
|
128
|
+
// the array will contain a CalNthWeekDay instead of an NSNumber.
|
|
129
|
+
//
|
|
130
|
+
// Repeating events using one of the advanced initializers may recur multiple times in the specified time period, for
|
|
131
|
+
// example, the first and sixteenth days of a month. When this is true, the arrays may contain more than one entry.
|
|
132
|
+
//
|
|
133
|
+
// These properties will only be valid for certain EKRecurrenceRules, depending on how the rule's recurrence is
|
|
134
|
+
// defined. The constraints on when these properties is valid are described below. When these constraints are not met,
|
|
135
|
+
// the property's value will be nil.
|
|
136
|
+
|
|
137
|
+
/*!
|
|
138
|
+
@property daysOfTheWeek
|
|
139
|
+
@discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyWeekly, EKRecurrenceFrequencyMonthly, or
|
|
140
|
+
EKRecurrenceFrequencyYearly. This property can be accessed as an array containing one or more EKRecurrenceDayOfWeek objects
|
|
141
|
+
corresponding to the days of the week the event recurs. For all other EKRecurrenceRules, this property is nil.
|
|
142
|
+
This property corresponds to BYDAY in the iCalendar specification.
|
|
143
|
+
*/
|
|
144
|
+
@property(nonatomic, readonly, nullable) NSArray<EKRecurrenceDayOfWeek *> *daysOfTheWeek;
|
|
145
|
+
|
|
146
|
+
/*!
|
|
147
|
+
@property daysOfTheMonth
|
|
148
|
+
@discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyMonthly, and that were initialized
|
|
149
|
+
with one or more specific days of the month (not with a day of the week and week of the month). This property can be
|
|
150
|
+
accessed as an array containing one or more NSNumbers corresponding to the days of the month the event recurs.
|
|
151
|
+
For all other EKRecurrenceRules, this property is nil. This property corresponds to BYMONTHDAY in the iCalendar
|
|
152
|
+
specification.
|
|
153
|
+
*/
|
|
154
|
+
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *daysOfTheMonth;
|
|
155
|
+
|
|
156
|
+
/*!
|
|
157
|
+
@property daysOfTheYear
|
|
158
|
+
@discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyYearly. This property can be accessed
|
|
159
|
+
as an array containing one or more NSNumbers corresponding to the days of the year the event recurs. For all other
|
|
160
|
+
EKRecurrenceRules, this property is nil. This property corresponds to BYYEARDAY in the iCalendar specification. It should
|
|
161
|
+
contain values between 1 to 366 or -366 to -1.
|
|
162
|
+
*/
|
|
163
|
+
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *daysOfTheYear;
|
|
164
|
+
|
|
165
|
+
/*!
|
|
166
|
+
@property weeksOfTheYear
|
|
167
|
+
@discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyYearly. This property can be accessed
|
|
168
|
+
as an array containing one or more NSNumbers corresponding to the weeks of the year the event recurs. For all other
|
|
169
|
+
EKRecurrenceRules, this property is nil. This property corresponds to BYWEEK in the iCalendar specification. It should
|
|
170
|
+
contain integers from 1 to 53 or -1 to -53.
|
|
171
|
+
*/
|
|
172
|
+
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *weeksOfTheYear;
|
|
173
|
+
|
|
174
|
+
/*!
|
|
175
|
+
@property monthsOfTheYear
|
|
176
|
+
@discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyYearly. This property can be accessed
|
|
177
|
+
as an array containing one or more NSNumbers corresponding to the months of the year the event recurs. For all other
|
|
178
|
+
EKRecurrenceRules, this property is nil. This property corresponds to BYMONTH in the iCalendar specification.
|
|
179
|
+
*/
|
|
180
|
+
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *monthsOfTheYear;
|
|
181
|
+
|
|
182
|
+
/*!
|
|
183
|
+
@property setPositions
|
|
184
|
+
@discussion This property is valid for rules which have a valid daysOfTheWeek, daysOfTheMonth, weeksOfTheYear, or monthsOfTheYear property.
|
|
185
|
+
It allows you to specify a set of ordinal numbers to help choose which objects out of the set of selected events should be
|
|
186
|
+
included. For example, setting the daysOfTheWeek to Monday-Friday and including a value of -1 in the array would indicate
|
|
187
|
+
the last weekday in the recurrence range (month, year, etc). This value corresponds to the iCalendar BYSETPOS property.
|
|
188
|
+
*/
|
|
189
|
+
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *setPositions;
|
|
190
|
+
|
|
191
|
+
@end
|
|
192
|
+
|
|
193
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKReminder.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 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;
|
|
15
|
+
|
|
16
|
+
/*!
|
|
17
|
+
@class EKReminder
|
|
18
|
+
@abstract The EKReminder class represents a reminder (task/todo).
|
|
19
|
+
*/
|
|
20
|
+
NS_CLASS_AVAILABLE(10_8, 6_0)
|
|
21
|
+
@interface EKReminder : EKCalendarItem
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
@method reminderWithEventStore:
|
|
25
|
+
@abstract Creates a new reminder in the given event store.
|
|
26
|
+
*/
|
|
27
|
+
+ (EKReminder *)reminderWithEventStore:(EKEventStore *)eventStore;
|
|
28
|
+
|
|
29
|
+
/*!
|
|
30
|
+
@property startDateComponents
|
|
31
|
+
@abstract The start date of the task, as date components.
|
|
32
|
+
@discussion The use of date components allows the start date and its time zone to be represented in a single property.
|
|
33
|
+
A nil time zone represents a floating date. Setting a date component without a hour, minute and second component will set allDay to YES.
|
|
34
|
+
If you set this property, the calendar must be set to NSCalendarIdentifierGregorian. An exception is raised otherwise.
|
|
35
|
+
*/
|
|
36
|
+
@property(nonatomic, copy, nullable) NSDateComponents *startDateComponents;
|
|
37
|
+
|
|
38
|
+
/*!
|
|
39
|
+
@property dueDateComponents
|
|
40
|
+
@abstract The date by which this reminder should be completed.
|
|
41
|
+
@discussion The use of date components allows the due date and its time zone to be represented in a single property.
|
|
42
|
+
A nil time zone represents a floating date. Setting a date component without a hour, minute and second component will set allDay to YES.
|
|
43
|
+
If you set this property, the calendar must be set to NSCalendarIdentifierGregorian. An exception is raised otherwise.
|
|
44
|
+
|
|
45
|
+
On iOS, if you set the due date for a reminder, you must also set a start date, otherwise you will receive
|
|
46
|
+
an error (EKErrorNoStartDate) when attempting to save this reminder. This is not a requirement on OS X.
|
|
47
|
+
*/
|
|
48
|
+
@property(nonatomic, copy, nullable) NSDateComponents *dueDateComponents;
|
|
49
|
+
|
|
50
|
+
// These two properties are inextricably linked. Setting completed to be YES, will set the completedDate to be now,
|
|
51
|
+
// and setting any completedDate will change completed to be YES. Similarly, setting completed to be NO will set
|
|
52
|
+
// the completedDate to be nil, and setting the completedDate changes completed to NO.
|
|
53
|
+
// Note, you may encounter the case where isCompleted is YES, but completionDate is nil, if the reminder was completed using a different client.
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
@property completed
|
|
57
|
+
@abstract Whether or not the reminder is completed.
|
|
58
|
+
@discussion Setting it to YES will set the completed date to the current date.
|
|
59
|
+
Setting it to NO will set the completed date to nil.
|
|
60
|
+
*/
|
|
61
|
+
@property(nonatomic, getter=isCompleted) BOOL completed;
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
@property completionDate
|
|
65
|
+
@abstract The date on which this reminder was completed.
|
|
66
|
+
*/
|
|
67
|
+
@property(nonatomic, copy, nullable) NSDate *completionDate;
|
|
68
|
+
|
|
69
|
+
/*!
|
|
70
|
+
@property priority
|
|
71
|
+
@abstract The priority of the reminder.
|
|
72
|
+
@discussion Priorities run from 1 (highest) to 9 (lowest). A priority of 0 means no priority.
|
|
73
|
+
Saving a reminder with any other priority will fail.
|
|
74
|
+
Per RFC 5545, priorities of 1-4 are considered "high," a priority of 5 is "medium," and priorities of 6-9 are "low."
|
|
75
|
+
*/
|
|
76
|
+
@property(nonatomic) NSUInteger priority;
|
|
77
|
+
|
|
78
|
+
@end
|
|
79
|
+
|
|
80
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKSource.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2009-2011 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <EventKit/EventKitDefines.h>
|
|
9
|
+
#import <EventKit/EKObject.h>
|
|
10
|
+
#import <EventKit/EKTypes.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@class EKCalendar;
|
|
15
|
+
|
|
16
|
+
NS_CLASS_AVAILABLE(10_8, 5_0)
|
|
17
|
+
@interface EKSource : EKObject
|
|
18
|
+
|
|
19
|
+
@property(nonatomic, readonly) NSString *sourceIdentifier;
|
|
20
|
+
@property(nonatomic, readonly) EKSourceType sourceType;
|
|
21
|
+
@property(nonatomic, readonly) NSString *title;
|
|
22
|
+
/*!
|
|
23
|
+
@property calendars
|
|
24
|
+
@abstract This is now deprecated in favor of -[EKSource calendarsForEntityType:]
|
|
25
|
+
*/
|
|
26
|
+
@property(nonatomic, readonly) NSSet<EKCalendar *> *calendars NS_DEPRECATED(NA, NA, 4_0, 6_0)
|
|
27
|
+
#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
|
|
28
|
+
API_UNAVAILABLE(visionos)
|
|
29
|
+
#endif
|
|
30
|
+
;
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
@method calendarsForEntityType
|
|
34
|
+
@abstract Returns the calendars that belong to this source that
|
|
35
|
+
support a given entity type (reminders, events)
|
|
36
|
+
*/
|
|
37
|
+
- (NSSet<EKCalendar *> *)calendarsForEntityType:(EKEntityType)entityType NS_AVAILABLE(10_8, 6_0);
|
|
38
|
+
|
|
39
|
+
/*!
|
|
40
|
+
@property isDelegate
|
|
41
|
+
@abstract Returns YES if this EKSource represents an account delegated by another user.
|
|
42
|
+
*/
|
|
43
|
+
@property (nonatomic, readonly, assign) BOOL isDelegate NS_AVAILABLE(13_0, 16_0);
|
|
44
|
+
|
|
45
|
+
@end
|
|
46
|
+
|
|
47
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EKStructuredLocation.h
|
|
3
|
+
// EventKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2011 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <EventKit/EventKitDefines.h>
|
|
9
|
+
#import <EventKit/EKObject.h>
|
|
10
|
+
#import <CoreLocation/CLLocation.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@class MKMapItem;
|
|
15
|
+
|
|
16
|
+
NS_CLASS_AVAILABLE(10_8, 6_0)
|
|
17
|
+
@interface EKStructuredLocation : EKObject <NSCopying>
|
|
18
|
+
|
|
19
|
+
+ (instancetype)locationWithTitle:(NSString *)title;
|
|
20
|
+
+ (instancetype)locationWithMapItem:(MKMapItem *)mapItem NS_AVAILABLE(10_11, 9_0);
|
|
21
|
+
|
|
22
|
+
@property(nullable, nonatomic, strong) NSString *title;
|
|
23
|
+
@property(nonatomic, strong, nullable) CLLocation *geoLocation;
|
|
24
|
+
@property(nonatomic) double radius; // 0 = use default, unit is meters
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|