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,330 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PKPushRegistry.h
|
|
3
|
+
// PushKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <PushKit/PKDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/// A push type for Voice-over-IP (VoIP) call invitations.
|
|
14
|
+
///
|
|
15
|
+
/// Use this type of notification to initiate live voice calls over the network.
|
|
16
|
+
/// Apps receiving VoIP push notifications must report the call quickly to
|
|
17
|
+
/// CallKit, so it can alert the user to the presence of the incoming call. For
|
|
18
|
+
/// apps linked against the iOS 13 SDK or later, the system terminates your app
|
|
19
|
+
/// if you fail to report these notifications to CallKit. If your app repeatedly
|
|
20
|
+
/// fails to report VoIP notifications to CallKit, the system stops launching
|
|
21
|
+
/// your app for VoIP push notifications.
|
|
22
|
+
///
|
|
23
|
+
/// Don't use this type of notification for anything other than initiating VoIP
|
|
24
|
+
/// calls. If you don't want to post the CallKit call interface, handle
|
|
25
|
+
/// notifications with the
|
|
26
|
+
/// <doc://com.apple.documentation/documentation/usernotifications> framework
|
|
27
|
+
/// instead of ``PushKit``. When sending encrypted content, use a Notification
|
|
28
|
+
/// Service Extension to decrypt that content before displaying it to the user.
|
|
29
|
+
/// You can also use a Notification Content Extension to display a custom
|
|
30
|
+
/// interface for your app's notifications. For more information, see
|
|
31
|
+
/// <doc://com.apple.documentation/documentation/usernotifications/modifying_content_in_newly_delivered_notifications>
|
|
32
|
+
/// and
|
|
33
|
+
/// <doc://com.apple.documentation/documentation/usernotificationsui/customizing_the_appearance_of_notifications>.
|
|
34
|
+
PK_EXPORT PKPushType const PKPushTypeVoIP API_AVAILABLE(ios(9.0), macCatalyst(14.0), watchos(9.0), visionos(1.0)) API_UNAVAILABLE(macos, tvos);
|
|
35
|
+
/// A push type for watchOS complications.
|
|
36
|
+
///
|
|
37
|
+
/// Use this type of notification to deliver updated data related for your
|
|
38
|
+
/// watchOS app’s complication. The watchOS app’s complication must be active on
|
|
39
|
+
/// the user’s current clock face. If it is not, the system does not deliver
|
|
40
|
+
/// pushes of this type. For watchOS 6 and later, send the push notification
|
|
41
|
+
/// directly to Apple Watch. For watchOS 5 and earlier, you must send it to the
|
|
42
|
+
/// iOS companion instead.
|
|
43
|
+
///
|
|
44
|
+
/// The time your watchOS app spends processing these push notifications counts
|
|
45
|
+
/// against the budget allotted to your complication for updating itself. Don't
|
|
46
|
+
/// start any long-running tasks when processing the notification payload. In
|
|
47
|
+
/// fact, it is recommended that you include all needed data in the payload so
|
|
48
|
+
/// that your app can process that data quickly.
|
|
49
|
+
///
|
|
50
|
+
/// The system limits you to 50 push notifications per day. If you exceed the
|
|
51
|
+
/// limit, subsequent pushes are not delivered.
|
|
52
|
+
PK_EXPORT PKPushType const PKPushTypeComplication API_AVAILABLE(watchos(6.0)) API_DEPRECATED("Complication pushes are supported directly on watchOS now, so this should no longer be used on iOS.", ios(9.0, 13.0), macCatalyst(9.0, 13.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(macos, tvos);
|
|
53
|
+
/// A push type for file provider updates.
|
|
54
|
+
///
|
|
55
|
+
/// Use file provider notifications to update your File Provider extension's content
|
|
56
|
+
/// from your server. For more information, see <doc://com.apple.documentation/documentation/fileprovider/nonreplicated_file_provider_extension/content_and_change_tracking/tracking_your_file_provider_s_changes>.
|
|
57
|
+
///
|
|
58
|
+
PK_EXPORT PKPushType const PKPushTypeFileProvider API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(13.0), visionos(1.0)) API_UNAVAILABLE(watchos, tvos);
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@protocol PKPushRegistryDelegate;
|
|
62
|
+
@class PKPushCredentials, PKPushPayload, PKVoIPPushMetadata;
|
|
63
|
+
|
|
64
|
+
/// An object that requests the delivery and handles the receipt of PushKit notifications.
|
|
65
|
+
///
|
|
66
|
+
/// A `PKPushRegistry` object manages only certain types of notifications,
|
|
67
|
+
/// such as high-priority notifications needed by a VoIP app. PushKit wakes up your app
|
|
68
|
+
/// as needed to deliver incoming notifications and delivers the notifications directly
|
|
69
|
+
/// to the push registry object that requested them.
|
|
70
|
+
///
|
|
71
|
+
/// Every time your app launches, whether in the foreground or in the background, create
|
|
72
|
+
/// a push registry object and configure it. Typically, you keep the push registry object
|
|
73
|
+
/// running for the duration of your app. Each push registry object delivers incoming
|
|
74
|
+
/// notifications to its ``PushKit/PKPushRegistry/delegate`` object, which also handles
|
|
75
|
+
/// the responses for registration requests. The listing below shows how to create
|
|
76
|
+
/// a push registry object and request VoIP notifications. Always assign an appropriate
|
|
77
|
+
/// delegate object before modifying the ``PushKit/PKPushRegistry/desiredPushTypes``
|
|
78
|
+
/// property.
|
|
79
|
+
///
|
|
80
|
+
/// ```objc
|
|
81
|
+
/// - (void) registerForVoIPPushes {
|
|
82
|
+
/// self.voipRegistry = [[PKPushRegistry alloc] initWithQueue:nil];
|
|
83
|
+
/// self.voipRegistry.delegate = self;
|
|
84
|
+
///
|
|
85
|
+
/// // Initiate registration.
|
|
86
|
+
/// self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];
|
|
87
|
+
/// }
|
|
88
|
+
/// ```
|
|
89
|
+
///
|
|
90
|
+
/// Assigning a new value to the ``PushKit/PKPushRegistry/desiredPushTypes`` property
|
|
91
|
+
/// registers the push registry object with the PushKit servers. The server reports the
|
|
92
|
+
/// success or failure of your registration attempts asynchronously to the push registry,
|
|
93
|
+
/// which then reports those results to its delegate object. The push registry also delivers
|
|
94
|
+
/// all received notifications to the delegate object. For more information about the
|
|
95
|
+
/// delegate methods, see ``PushKit/PKPushRegistryDelegate``.
|
|
96
|
+
///
|
|
97
|
+
/// ## Topics
|
|
98
|
+
///
|
|
99
|
+
/// ### Initializing a Push Registry
|
|
100
|
+
///
|
|
101
|
+
/// - ``PushKit/PKPushRegistry/initWithQueue:``
|
|
102
|
+
///
|
|
103
|
+
/// ### Receiving the Notification Data
|
|
104
|
+
///
|
|
105
|
+
/// - ``PushKit/PKPushRegistry/delegate``
|
|
106
|
+
/// - ``PushKit/PKPushRegistryDelegate``
|
|
107
|
+
///
|
|
108
|
+
/// ### Managing the Push Registry
|
|
109
|
+
///
|
|
110
|
+
/// - ``PushKit/PKPushRegistry/desiredPushTypes``
|
|
111
|
+
/// - ``PushKit/PKPushRegistry/pushTokenForType:``
|
|
112
|
+
///
|
|
113
|
+
API_AVAILABLE(macos(10.15), macCatalyst(13.0), ios(8.0), watchos(6.0), tvos(13.0))
|
|
114
|
+
@interface PKPushRegistry : NSObject
|
|
115
|
+
|
|
116
|
+
/// The delegate object that receives notifications coming from the push registry object.
|
|
117
|
+
///
|
|
118
|
+
/// You must assign a valid object to this property before modifying the ``PushKit/PKPushRegistry/desiredPushTypes``
|
|
119
|
+
/// property. A valid delegate object is required to receive push tokens and payload
|
|
120
|
+
/// data from incoming pushes.
|
|
121
|
+
///
|
|
122
|
+
/// For more information about the methods of the `PKPushRegistryDelegate`
|
|
123
|
+
/// protocol, see ``PushKit/PKPushRegistryDelegate``.
|
|
124
|
+
///
|
|
125
|
+
@property (readwrite,weak,nullable) id<PKPushRegistryDelegate> delegate;
|
|
126
|
+
|
|
127
|
+
/// Registers the push types for this push registry object.
|
|
128
|
+
///
|
|
129
|
+
/// When you assign a value to this property, the push registry object makes a registration
|
|
130
|
+
/// request with the PushKit server. This request is asynchronous, and the success or
|
|
131
|
+
/// failure of the request is reported to your registery's delegate object. For a successful
|
|
132
|
+
/// registration, PushKit delivers a push token to the delegate. Use that token to generate
|
|
133
|
+
/// push requests from your server.
|
|
134
|
+
///
|
|
135
|
+
/// For a list of push types that you may include in the set, see ``PushKit/PKPushType``.
|
|
136
|
+
///
|
|
137
|
+
@property (readwrite,copy,nullable) NSSet<PKPushType> *desiredPushTypes;
|
|
138
|
+
|
|
139
|
+
/// Retrieves the locally cached push token for the specified push type.
|
|
140
|
+
///
|
|
141
|
+
/// If registration for a specific push type is successful, the push registry delivers
|
|
142
|
+
/// the corresponding push token to its delegate and adds a copy of the token to its
|
|
143
|
+
/// local cache. Use this method to retrieve the token at a later time.
|
|
144
|
+
///
|
|
145
|
+
/// - Parameters:
|
|
146
|
+
/// - type: A push type requested by this push registry object. For a list of possible types,
|
|
147
|
+
/// see ``PushKit/PKPushType``.
|
|
148
|
+
///
|
|
149
|
+
/// - Returns: The push token used to send pushes to the device or `nil` if no token is available
|
|
150
|
+
/// for the specified type.
|
|
151
|
+
///
|
|
152
|
+
- (nullable NSData *)pushTokenForType:(PKPushType)type;
|
|
153
|
+
|
|
154
|
+
/// Creates a push registry with the specified dispatch queue.
|
|
155
|
+
///
|
|
156
|
+
/// - Parameters:
|
|
157
|
+
/// - queue: The dispatch queue on which to execute the delegate methods. It is recommended that
|
|
158
|
+
/// you specify a serial queue for this parameter. Specify `nil` to execute the delegate
|
|
159
|
+
/// methods on the app’s main queue.
|
|
160
|
+
///
|
|
161
|
+
/// - Returns: A `PKPushRegistry` object that you can use to register for push tokens and use to
|
|
162
|
+
/// receive notifications.
|
|
163
|
+
///
|
|
164
|
+
- (instancetype)initWithQueue:(nullable dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER;
|
|
165
|
+
|
|
166
|
+
/*!
|
|
167
|
+
@method init
|
|
168
|
+
@abstract Unavailable, use -initWithQueue: instead.
|
|
169
|
+
*/
|
|
170
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
171
|
+
|
|
172
|
+
@end
|
|
173
|
+
|
|
174
|
+
/// The methods that you use to handle incoming PushKit notifications and registration
|
|
175
|
+
/// events.
|
|
176
|
+
///
|
|
177
|
+
/// Implement the methods of this protocol in an object of your app and assign that object
|
|
178
|
+
/// to the ``PushKit/PKPushRegistry/delegate`` property of your `PKPushRegistry`
|
|
179
|
+
/// object. Use the methods of this protocol to process incoming notifications and to
|
|
180
|
+
/// react to token registration and invalidation.
|
|
181
|
+
///
|
|
182
|
+
/// ## Topics
|
|
183
|
+
///
|
|
184
|
+
/// ### Responding to Registration Events
|
|
185
|
+
///
|
|
186
|
+
/// - ``PushKit/PKPushRegistryDelegate/pushRegistry:didUpdatePushCredentials:forType:``
|
|
187
|
+
/// - ``PushKit/PKPushRegistryDelegate/pushRegistry:didInvalidatePushTokenForType:``
|
|
188
|
+
///
|
|
189
|
+
/// ### Handling an Incoming Notification
|
|
190
|
+
///
|
|
191
|
+
/// - ``PushKit/PKPushRegistryDelegate/pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:``
|
|
192
|
+
///
|
|
193
|
+
/// ### Deprecated Methods
|
|
194
|
+
///
|
|
195
|
+
/// - ``PushKit/PKPushRegistryDelegate/pushRegistry:didReceiveIncomingPushWithPayload:forType:``
|
|
196
|
+
///
|
|
197
|
+
///
|
|
198
|
+
@protocol PKPushRegistryDelegate <NSObject>
|
|
199
|
+
|
|
200
|
+
@required
|
|
201
|
+
|
|
202
|
+
/// Tells the delegate that the system updated the credentials for the specified type
|
|
203
|
+
/// of push notification.
|
|
204
|
+
///
|
|
205
|
+
/// The system calls this method when it receives new credentials (including a push token)
|
|
206
|
+
/// for the specified push type.
|
|
207
|
+
///
|
|
208
|
+
/// - Parameters:
|
|
209
|
+
/// - registry: The ``PushKit/PKPushRegistry`` instance responsible for the delegate callback.
|
|
210
|
+
/// - credentials: The push credentials that can be used to send pushes to the device for the specified push type.
|
|
211
|
+
/// - type: One of the requested notification types. This type is present in the ``PushKit/PKPushRegistry/desiredPushTypes`` property of the push registry.
|
|
212
|
+
///
|
|
213
|
+
- (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPushCredentials *)pushCredentials forType:(PKPushType)type;
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
@optional
|
|
217
|
+
|
|
218
|
+
/// Notifies the delegate that a remote push has been received.
|
|
219
|
+
///
|
|
220
|
+
/// This method is invoked when a push notification has been received for the
|
|
221
|
+
/// specified push type.
|
|
222
|
+
///
|
|
223
|
+
/// - Parameters:
|
|
224
|
+
/// - registry: The ``PKPushRegistry`` instance responsible for the delegate callback.
|
|
225
|
+
/// - payload: The push payload sent by a developer via APNS server API.
|
|
226
|
+
/// - type: This is a ``PushKit/PKPushType`` constant, which is present in `[registry desiredPushTypes]`.
|
|
227
|
+
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type API_DEPRECATED_WITH_REPLACEMENT("-pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type withCompletionHandler:(void(^)(void))completion", ios(8.0, 11.0), macCatalyst(8.0, 11.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
228
|
+
|
|
229
|
+
/// Tells the delegate that a remote push notification arrived.
|
|
230
|
+
///
|
|
231
|
+
/// The system calls this method when it receives a push notification for the specified
|
|
232
|
+
/// push type. Use this method to extract data from the notification's payload and to
|
|
233
|
+
/// perform the relevant task for that data. For example, use this method to update the
|
|
234
|
+
/// complication data of your watchOS app. When you finish the task, execute the provided
|
|
235
|
+
/// `completion` handler block to let PushKit know you are finished.
|
|
236
|
+
///
|
|
237
|
+
/// When linking against the iOS 13 SDK or later, your implementation of this method
|
|
238
|
+
/// must report notifications of type ``PushKit/PKPushTypeVoIP`` to the <doc://com.apple.documentation/documentation/callkit>
|
|
239
|
+
/// framework by calling the <doc://com.apple.documentation/documentation/callkit/cxprovider/1930694-reportnewincomingcallwithuuid>
|
|
240
|
+
/// method of your app's <doc://com.apple.documentation/documentation/callkit/cxprovider>
|
|
241
|
+
/// object. When you call that method, the system displays the standard incoming call
|
|
242
|
+
/// interface to the user unless an error occurs. For example, the system reports an
|
|
243
|
+
/// error if the user enabled Do Not Disturb. You may establish a connection to your
|
|
244
|
+
/// VoIP server in tandem with notify CallKit.
|
|
245
|
+
///
|
|
246
|
+
/// > Important: On iOS 13.0 and later, if you fail to report a call to CallKit, the
|
|
247
|
+
/// system will terminate your app. Repeatedly failing to report calls may cause the
|
|
248
|
+
/// system to stop delivering any more VoIP push notifications to your app. If you want
|
|
249
|
+
/// to initiate a VoIP call without using CallKit,
|
|
250
|
+
/// register for push notifications using the User Notifications
|
|
251
|
+
/// framework instead of PushKit. For more information, see <doc://com.apple.documentation/documentation/usernotifications>.
|
|
252
|
+
///
|
|
253
|
+
/// - Parameters:
|
|
254
|
+
/// - registry: The ``PushKit/PKPushRegistry`` instance responsible for the delegate callback.
|
|
255
|
+
/// - payload: The push payload sent by a developer via APNs server API.
|
|
256
|
+
/// - type: This is a ``PushKit/PKPushType`` constant, which is present in `[registry desiredPushTypes]`.
|
|
257
|
+
/// - completion: The notification's completion handler. Execute this block when you finish processing the notification.
|
|
258
|
+
///
|
|
259
|
+
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type withCompletionHandler:(void(^)(void))completion API_AVAILABLE(macos(10.15), macCatalyst(13.0), ios(11.0), watchos(6.0), tvos(13.0));
|
|
260
|
+
|
|
261
|
+
/// The system calls this method when it receives a VoIP push notification.
|
|
262
|
+
/// Use this method to extract data from the notification's payload and to
|
|
263
|
+
/// report a VoIP call using CallKit or LiveCommunicationKit.
|
|
264
|
+
///
|
|
265
|
+
/// The `metadata` parameter contains additional information about the
|
|
266
|
+
/// VoIP payload. For example, If the `mustReport` metadata property
|
|
267
|
+
/// is set to `YES` your app is required to report an incoming VoIP call or conversation using
|
|
268
|
+
/// one of the following methods:
|
|
269
|
+
///
|
|
270
|
+
/// ## CallKit
|
|
271
|
+
///
|
|
272
|
+
/// <doc://com.apple.documentation/documentation/callkit/cxprovider/1930694-reportnewincomingcallwithuuid>
|
|
273
|
+
///
|
|
274
|
+
/// ## LiveCommunicationKit
|
|
275
|
+
///
|
|
276
|
+
/// <doc://com.apple.documentation/documentation/livecommunicationkit/conversationmanager/reportnewincomingconversation(uuid:update:)>
|
|
277
|
+
///
|
|
278
|
+
/// When you call either of these methods, the system displays the standard
|
|
279
|
+
/// incoming call interface to the user unless an error occurs. For example,
|
|
280
|
+
/// the system reports an error if the user enabled Do Not Disturb. You may
|
|
281
|
+
/// establish a connection to your VoIP server in parallel to reporting the
|
|
282
|
+
/// incoming call to the system.
|
|
283
|
+
///
|
|
284
|
+
/// If you fail to report a call or conversation to CallKit/LiveCommunicationKit and the metadata's
|
|
285
|
+
/// `mustReport` parameter is set to `YES`, the system will terminate
|
|
286
|
+
/// your app. Repeatedly failing to report calls may cause the system to
|
|
287
|
+
/// stop delivering any more VoIP push notifications to your app.
|
|
288
|
+
///
|
|
289
|
+
/// If the metadata's `mustReport` parameter is set to `NO` you are not required to
|
|
290
|
+
/// report a call or conversation to CallKit/LiveCommunicationKit. Scenarios that result in
|
|
291
|
+
/// `mustReport` set to `NO` include: * Your app is running in the
|
|
292
|
+
/// foreground * Your app already has an active call/conversation * The VoIP push
|
|
293
|
+
/// notification was received by the device after an extended period of time
|
|
294
|
+
/// due to network conditions.
|
|
295
|
+
///
|
|
296
|
+
/// If you are a VoIP developer you should prefer this delegate method over
|
|
297
|
+
/// the`pushRegistry:didReceiveIncomingPushWithPayload:forType:
|
|
298
|
+
/// withCompletionHandler:` method so that you can use the `metadata`
|
|
299
|
+
/// parameter to ignore VoIP push notifications where `mustReport` is set to `NO`
|
|
300
|
+
/// and do not need to be reported.
|
|
301
|
+
///
|
|
302
|
+
/// If you want to initiate a VoIP call without using CallKit, register for
|
|
303
|
+
/// push notifications using the User Notifications framework instead of
|
|
304
|
+
/// PushKit. For more information, see
|
|
305
|
+
/// <doc://com.apple.documentation/documentation/usernotifications>.
|
|
306
|
+
///
|
|
307
|
+
/// - Parameters:
|
|
308
|
+
/// - registry: The ``PushKit/PKPushRegistry`` instance responsible for the delegate callback.
|
|
309
|
+
/// - payload: The push payload sent by a developer via APNs server API.
|
|
310
|
+
/// - metadata: An object containing metadata about the VoIP push payload, such as the `mustReport` boolean indicating whether your app is required to report a call/conversation to CallKit/LiveCommunicationKit for this push.
|
|
311
|
+
/// - completion: The notification's completion handler. Execute this block when you finish processing the notification
|
|
312
|
+
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingVoIPPushWithPayload:(PKPushPayload *)payload metadata:(PKVoIPPushMetadata *)metadata withCompletionHandler:(void(^)(void))completion API_AVAILABLE(macos(26.4), macCatalyst(26.4), ios(26.4), watchos(26.4));
|
|
313
|
+
|
|
314
|
+
/// Tells the delegate that the system invalidated the push token for the specified type.
|
|
315
|
+
///
|
|
316
|
+
/// The system calls this method when a previously provided push token is no longer valid
|
|
317
|
+
/// for use. No action is necessary on your part to reregister the push type. Instead,
|
|
318
|
+
/// use this method to notify your server not to send push notifications using the matching
|
|
319
|
+
/// push token.
|
|
320
|
+
///
|
|
321
|
+
/// - Parameters:
|
|
322
|
+
/// - registry: The ``PushKit/PKPushRegistry`` instance responsible for the delegate callback.
|
|
323
|
+
/// - type: This is a ``PushKit/PKPushType`` constant, which is present in `[registry desiredPushTypes]`.
|
|
324
|
+
///
|
|
325
|
+
///
|
|
326
|
+
- (void)pushRegistry:(PKPushRegistry *)registry didInvalidatePushTokenForType:(PKPushType)type;
|
|
327
|
+
|
|
328
|
+
@end
|
|
329
|
+
|
|
330
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PKVoIPPushMetadata.h
|
|
3
|
+
// PushKit
|
|
4
|
+
//
|
|
5
|
+
// Created by Kevin Ferrell on 12/8/25.
|
|
6
|
+
// Copyright © 2025 Apple. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
/// An object that contains metadata about a received PushKit VoIP notification.
|
|
13
|
+
///
|
|
14
|
+
/// ### Metadata
|
|
15
|
+
///
|
|
16
|
+
/// - ``PushKit/PKVoIPPushMetadata/mustReport``
|
|
17
|
+
///
|
|
18
|
+
NS_SWIFT_SENDABLE
|
|
19
|
+
API_AVAILABLE(macos(26.4), macCatalyst(26.4), ios(26.4), watchos(26.4))
|
|
20
|
+
@interface PKVoIPPushMetadata : NSObject
|
|
21
|
+
|
|
22
|
+
/// A boolean indicating whether a VoIP app must report a call or live conversation in response to receiving this VoIP notification.
|
|
23
|
+
@property (readonly) BOOL mustReport;
|
|
24
|
+
|
|
25
|
+
@end
|
|
26
|
+
|
|
27
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
Name: PushKit
|
|
3
|
+
Protocols:
|
|
4
|
+
- Name: PKPushRegistryDelegate
|
|
5
|
+
Methods:
|
|
6
|
+
- Selector: 'pushRegistry:didUpdatePushCredentials:forType:'
|
|
7
|
+
MethodKind: Instance
|
|
8
|
+
SwiftName: 'pushRegistry(_:didUpdate:for:)'
|
|
9
|
+
- Selector: 'pushRegistry:didReceiveIncomingPushWithPayload:forType:'
|
|
10
|
+
MethodKind: Instance
|
|
11
|
+
SwiftName: 'pushRegistry(_:didReceiveIncomingPushWith:for:)'
|
|
12
|
+
- Selector: 'pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:'
|
|
13
|
+
MethodKind: Instance
|
|
14
|
+
SwiftName: 'pushRegistry(_:didReceiveIncomingPushWith:for:completion:)'
|
|
15
|
+
- Selector: 'pushRegistry:didInvalidatePushTokenForType:'
|
|
16
|
+
MethodKind: Instance
|
|
17
|
+
SwiftName: 'pushRegistry(_:didInvalidatePushTokenFor:)'
|
|
18
|
+
Classes:
|
|
19
|
+
- Name: PKPushRegistry
|
|
20
|
+
Methods:
|
|
21
|
+
- Selector: 'pushTokenForType:'
|
|
22
|
+
MethodKind: Instance
|
|
23
|
+
SwiftName: 'pushToken(for:)'
|
|
24
|
+
SwiftVersions:
|
|
25
|
+
- Version: 3
|
|
26
|
+
Protocols:
|
|
27
|
+
- Name: PKPushRegistryDelegate
|
|
28
|
+
Methods:
|
|
29
|
+
- Selector: 'pushRegistry:didUpdatePushCredentials:forType:'
|
|
30
|
+
MethodKind: Instance
|
|
31
|
+
SwiftName: 'pushRegistry(_:didUpdate:forType:)'
|
|
32
|
+
- Selector: 'pushRegistry:didReceiveIncomingPushWithPayload:forType:'
|
|
33
|
+
MethodKind: Instance
|
|
34
|
+
SwiftName: 'pushRegistry(_:didReceiveIncomingPushWith:forType:)'
|
|
35
|
+
- Selector: 'pushRegistry:didInvalidatePushTokenForType:'
|
|
36
|
+
MethodKind: Instance
|
|
37
|
+
SwiftName: 'pushRegistry(_:didInvalidatePushTokenForType:)'
|
|
38
|
+
Classes:
|
|
39
|
+
- Name: PKPushRegistry
|
|
40
|
+
Methods:
|
|
41
|
+
- Selector: 'pushTokenForType:'
|
|
42
|
+
MethodKind: Instance
|
|
43
|
+
SwiftName: 'pushToken(forType:)'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PushKit.h
|
|
3
|
+
// PushKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <PushKit/PKDefines.h>
|
|
9
|
+
#import <PushKit/PKPushCredentials.h>
|
|
10
|
+
#import <PushKit/PKPushPayload.h>
|
|
11
|
+
#import <PushKit/PKPushRegistry.h>
|
|
12
|
+
#import <PushKit/PKVoIPPushMetadata.h>
|
package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/ARQuickLookPreviewItem.h
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#if (defined(USE_PUBLIC_QUICKLOOKUICORE_HEADERS) && USE_PUBLIC_QUICKLOOKUICORE_HEADERS) || !__has_include(<QuickLookUICore/ARQuickLookPreviewItem.h>)
|
|
2
|
+
//
|
|
3
|
+
// ARQuickLookPreviewItem.h
|
|
4
|
+
// ARKit
|
|
5
|
+
//
|
|
6
|
+
// Copyright © 2019 Apple Inc. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#import <QuickLook/QLBase.h>
|
|
12
|
+
#import <QuickLook/QLPreviewItem.h>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
API_AVAILABLE(ios(13.0))
|
|
18
|
+
QL_EXPORT @interface ARQuickLookPreviewItem : NSObject <QLPreviewItem>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
Creates an object representing the 3D content that will be previewed in AR Quick Look.
|
|
22
|
+
|
|
23
|
+
@discussion This object will be previewed in AR Quick Look using the default
|
|
24
|
+
behavior:
|
|
25
|
+
|
|
26
|
+
- Start in Object mode without camera passthrough
|
|
27
|
+
|
|
28
|
+
- Display the Share button for 3D content sharing
|
|
29
|
+
|
|
30
|
+
- Allow scaling content in both Object and AR mode
|
|
31
|
+
|
|
32
|
+
This is a promise to the ARQuickLookPreviewItem class that the URL points to a 3D content file. This class does not deal with the file's existence or content, and leaves it up to QuickLook to handle and process the URL.
|
|
33
|
+
|
|
34
|
+
@param url A file URL to 3D content file (e.g. usdz).
|
|
35
|
+
@return The preview object to display in AR Quick Look.
|
|
36
|
+
*/
|
|
37
|
+
- (instancetype)initWithFileAtURL:(NSURL *)url NS_DESIGNATED_INITIALIZER;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
An optional canonical web page URL for the 3D content that will be shared.
|
|
41
|
+
|
|
42
|
+
@discussion If this is supplied, the URL to the canonical web page is shared instead of the 3D content file.
|
|
43
|
+
For example, providing https://developer.apple.com/arkit/gallery/ as the canonical web page URL string will be shared via the Share button. If the web page URL string is malformed or not provided, then AR Quick Look will default to sharing the 3D content.
|
|
44
|
+
*/
|
|
45
|
+
@property (nonatomic, strong, nullable) NSURL *canonicalWebPageURL;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
Whether or not AR Quick Look allows content scaling in AR mode.
|
|
49
|
+
Defaults to `YES` which allows scaling content in AR mode.
|
|
50
|
+
*/
|
|
51
|
+
@property (nonatomic, assign) BOOL allowsContentScaling;
|
|
52
|
+
|
|
53
|
+
/** Unavailable */
|
|
54
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
55
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
NS_ASSUME_NONNULL_END
|
|
60
|
+
|
|
61
|
+
#else
|
|
62
|
+
#import <QuickLookUICore/ARQuickLookPreviewItem.h>
|
|
63
|
+
#endif
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#if (defined(USE_PUBLIC_QUICKLOOKUICORE_HEADERS) && USE_PUBLIC_QUICKLOOKUICORE_HEADERS) || !__has_include(<QuickLookUICore/QLBase.h>)
|
|
2
|
+
/*
|
|
3
|
+
* QLBase.h
|
|
4
|
+
* Quick Look
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2007 Apple Inc.
|
|
7
|
+
* All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#if !defined(__QUICKLOOK_QLBASE__)
|
|
12
|
+
#define __QUICKLOOK_QLBASE__
|
|
13
|
+
|
|
14
|
+
#ifdef __cplusplus
|
|
15
|
+
#define QL_EXTERN_C_BEGIN extern "C" {
|
|
16
|
+
#define QL_EXTERN_C_END }
|
|
17
|
+
#else
|
|
18
|
+
#define QL_EXTERN_C_BEGIN
|
|
19
|
+
#define QL_EXTERN_C_END
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#define QL_EXPORT_OSX
|
|
23
|
+
#define QL_EXPORT __attribute__((visibility("default")))
|
|
24
|
+
#define QL_PRIVATE_EXPORT __attribute__((visibility("hidden")))
|
|
25
|
+
#define QL_INLINE static __inline__ __attribute__((always_inline))
|
|
26
|
+
#define QL_NOINLINE __attribute__((noinline))
|
|
27
|
+
#define QL_DEPRECATED __attribute__((deprecated))
|
|
28
|
+
#define QL_FORMAT_ARG(F, A) __attribute__((format(CFString, F, A)))
|
|
29
|
+
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
#else
|
|
33
|
+
#import <QuickLookUICore/QLBase.h>
|
|
34
|
+
#endif
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// QLFilePreviewRequest.h
|
|
3
|
+
// QuickLook
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#include <QuickLook/QLBase.h>
|
|
10
|
+
|
|
11
|
+
#if !defined(USE_PUBLIC_QUICKLOOK_HEADERS) && !defined(USE_PUBLIC_QUICKLOOK_HEADERS_CATALYST) && __has_include(<QuickLookSupport/QLPreviewReply.h>)
|
|
12
|
+
#import <QuickLookSupport/QLFilePreviewRequest.h>
|
|
13
|
+
#else
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
@abstract This class contains information about the preview that should be provided.
|
|
19
|
+
*/
|
|
20
|
+
API_AVAILABLE(ios(15.0), macos(12.0)) API_UNAVAILABLE(watchos,tvos) __attribute__((visibility("default")))
|
|
21
|
+
QL_EXPORT @interface QLFilePreviewRequest : NSObject
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
The url of the file for which a preview is being requested.
|
|
25
|
+
*/
|
|
26
|
+
@property (readonly) NSURL* fileURL;
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
|
31
|
+
|
|
32
|
+
#endif
|