@octane-xplat/macos-renderer 0.13.0 → 0.15.0
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/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
/// <reference path="./AppKit.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const SKStoreProductParameterAdvertisingPartnerToken: string
|
|
6
|
+
|
|
7
|
+
declare const SKStoreProductParameterCampaignToken: string
|
|
8
|
+
|
|
9
|
+
declare const SKStoreProductParameterITunesItemIdentifier: string
|
|
10
|
+
|
|
11
|
+
declare const SKErrorDomain: string
|
|
12
|
+
|
|
13
|
+
declare const SKCloudServiceCapabilitiesDidChangeNotification: string
|
|
14
|
+
|
|
15
|
+
declare const SKReceiptPropertyIsRevoked: string
|
|
16
|
+
|
|
17
|
+
declare const SKDownloadTimeRemainingUnknown: number
|
|
18
|
+
|
|
19
|
+
declare const SKReceiptPropertyIsExpired: string
|
|
20
|
+
|
|
21
|
+
declare const SKReceiptPropertyIsVolumePurchase: string
|
|
22
|
+
|
|
23
|
+
declare const SKStoreProductParameterAffiliateToken: string
|
|
24
|
+
|
|
25
|
+
declare const SKStoreProductParameterProviderToken: string
|
|
26
|
+
|
|
27
|
+
declare const SKStorefrontIdentifierDidChangeNotification: string
|
|
28
|
+
|
|
29
|
+
declare const SKStorefrontCountryCodeDidChangeNotification: string
|
|
30
|
+
|
|
31
|
+
declare const SKStoreProductParameterProductIdentifier: string
|
|
32
|
+
|
|
33
|
+
declare const SKProductStorePromotionVisibility: {
|
|
34
|
+
Default: 0
|
|
35
|
+
Show: 1
|
|
36
|
+
Hide: 2
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare const SKCloudServiceCapability: {
|
|
40
|
+
None: 0
|
|
41
|
+
MusicCatalogPlayback: 1
|
|
42
|
+
MusicCatalogSubscriptionEligible: 2
|
|
43
|
+
AddToCloudMusicLibrary: 256
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare const SKErrorCode: {
|
|
47
|
+
Unknown: 0
|
|
48
|
+
ClientInvalid: 1
|
|
49
|
+
PaymentCancelled: 2
|
|
50
|
+
PaymentInvalid: 3
|
|
51
|
+
PaymentNotAllowed: 4
|
|
52
|
+
StoreProductNotAvailable: 5
|
|
53
|
+
CloudServicePermissionDenied: 6
|
|
54
|
+
CloudServiceNetworkConnectionFailed: 7
|
|
55
|
+
CloudServiceRevoked: 8
|
|
56
|
+
PrivacyAcknowledgementRequired: 9
|
|
57
|
+
UnauthorizedRequestData: 10
|
|
58
|
+
InvalidOfferIdentifier: 11
|
|
59
|
+
InvalidSignature: 12
|
|
60
|
+
MissingOfferParams: 13
|
|
61
|
+
InvalidOfferPrice: 14
|
|
62
|
+
OverlayCancelled: 15
|
|
63
|
+
IneligibleForOffer: 18
|
|
64
|
+
UnsupportedPlatform: 19
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare const SKCloudServiceAuthorizationStatus: {
|
|
68
|
+
NotDetermined: 0
|
|
69
|
+
Denied: 1
|
|
70
|
+
Restricted: 2
|
|
71
|
+
Authorized: 3
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare const SKDownloadState: {
|
|
75
|
+
Waiting: 0
|
|
76
|
+
Active: 1
|
|
77
|
+
Paused: 2
|
|
78
|
+
Finished: 3
|
|
79
|
+
Failed: 4
|
|
80
|
+
Cancelled: 5
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare const SKProductPeriodUnit: {
|
|
84
|
+
Day: 0
|
|
85
|
+
Week: 1
|
|
86
|
+
Month: 2
|
|
87
|
+
Year: 3
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare const SKProductDiscountType: {
|
|
91
|
+
Introductory: 0
|
|
92
|
+
Subscription: 1
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare const SKProductDiscountPaymentMode: {
|
|
96
|
+
PayAsYouGo: 0
|
|
97
|
+
PayUpFront: 1
|
|
98
|
+
FreeTrial: 2
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare const SKPaymentTransactionState: {
|
|
102
|
+
Purchasing: 0
|
|
103
|
+
Purchased: 1
|
|
104
|
+
Failed: 2
|
|
105
|
+
Restored: 3
|
|
106
|
+
Deferred: 4
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare function SKTerminateForInvalidReceipt(): void
|
|
110
|
+
|
|
111
|
+
declare interface SKPaymentTransactionObserver extends NSObjectProtocol {
|
|
112
|
+
paymentQueueUpdatedTransactions(
|
|
113
|
+
queue: SKPaymentQueue,
|
|
114
|
+
transactions: NSArray<interop.Object> | Array<interop.Object>,
|
|
115
|
+
): void
|
|
116
|
+
|
|
117
|
+
paymentQueueRemovedTransactions?(
|
|
118
|
+
queue: SKPaymentQueue,
|
|
119
|
+
transactions: NSArray<interop.Object> | Array<interop.Object>,
|
|
120
|
+
): void
|
|
121
|
+
|
|
122
|
+
paymentQueueRestoreCompletedTransactionsFailedWithError?(
|
|
123
|
+
queue: SKPaymentQueue,
|
|
124
|
+
error: NSError,
|
|
125
|
+
): void
|
|
126
|
+
|
|
127
|
+
paymentQueueRestoreCompletedTransactionsFinished?(queue: SKPaymentQueue): void
|
|
128
|
+
|
|
129
|
+
paymentQueueUpdatedDownloads?(
|
|
130
|
+
queue: SKPaymentQueue,
|
|
131
|
+
downloads: NSArray<interop.Object> | Array<interop.Object>,
|
|
132
|
+
): void
|
|
133
|
+
|
|
134
|
+
paymentQueueShouldAddStorePaymentForProduct?(
|
|
135
|
+
queue: SKPaymentQueue,
|
|
136
|
+
payment: SKPayment,
|
|
137
|
+
product: SKProduct,
|
|
138
|
+
): boolean
|
|
139
|
+
|
|
140
|
+
paymentQueueDidChangeStorefront?(queue: SKPaymentQueue): void
|
|
141
|
+
|
|
142
|
+
paymentQueueDidRevokeEntitlementsForProductIdentifiers?(
|
|
143
|
+
queue: SKPaymentQueue,
|
|
144
|
+
productIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
145
|
+
): void
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare class SKPaymentTransactionObserver
|
|
149
|
+
extends NativeObject
|
|
150
|
+
implements SKPaymentTransactionObserver {}
|
|
151
|
+
|
|
152
|
+
declare interface SKProductsRequestDelegate extends SKRequestDelegate {
|
|
153
|
+
productsRequestDidReceiveResponse(request: SKProductsRequest, response: SKProductsResponse): void
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class SKProductsRequestDelegate extends NativeObject implements SKProductsRequestDelegate {}
|
|
157
|
+
|
|
158
|
+
declare interface SKRequestDelegate extends NSObjectProtocol {
|
|
159
|
+
requestDidFinish?(request: SKRequest): void
|
|
160
|
+
|
|
161
|
+
requestDidFailWithError?(request: SKRequest, error: NSError): void
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare class SKRequestDelegate extends NativeObject implements SKRequestDelegate {}
|
|
165
|
+
|
|
166
|
+
declare interface SKStoreProductViewControllerDelegate extends NSObjectProtocol {
|
|
167
|
+
productViewControllerDidFinish?(viewController: SKStoreProductViewController): void
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
declare class SKStoreProductViewControllerDelegate
|
|
171
|
+
extends NativeObject
|
|
172
|
+
implements SKStoreProductViewControllerDelegate {}
|
|
173
|
+
|
|
174
|
+
declare interface SKPaymentQueueDelegate extends NSObjectProtocol {
|
|
175
|
+
paymentQueueShouldContinueTransactionInStorefront?(
|
|
176
|
+
paymentQueue: SKPaymentQueue,
|
|
177
|
+
transaction: SKPaymentTransaction,
|
|
178
|
+
newStorefront: SKStorefront,
|
|
179
|
+
): boolean
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare class SKPaymentQueueDelegate extends NativeObject implements SKPaymentQueueDelegate {}
|
|
183
|
+
|
|
184
|
+
declare class SKStoreReviewController extends NSObject {
|
|
185
|
+
static requestReview(): void
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare class SKStoreProductViewController extends NSViewController {
|
|
189
|
+
delegate: SKStoreProductViewControllerDelegate
|
|
190
|
+
|
|
191
|
+
loadProductWithParametersCompletionBlock(
|
|
192
|
+
parameters:
|
|
193
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
194
|
+
| Record<interop.Object, interop.Object>,
|
|
195
|
+
block: (p1: boolean, p2: NSError) => void | null,
|
|
196
|
+
): void
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare class SKStorefront extends NSObject {
|
|
200
|
+
readonly countryCode: string
|
|
201
|
+
|
|
202
|
+
readonly identifier: string
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare class SKProductsResponse extends NSObject {
|
|
206
|
+
readonly products: NSArray
|
|
207
|
+
|
|
208
|
+
readonly invalidProductIdentifiers: NSArray
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare class SKProduct extends NSObject {
|
|
212
|
+
readonly localizedDescription: string
|
|
213
|
+
|
|
214
|
+
readonly localizedTitle: string
|
|
215
|
+
|
|
216
|
+
readonly price: NSDecimalNumber
|
|
217
|
+
|
|
218
|
+
readonly priceLocale: NSLocale
|
|
219
|
+
|
|
220
|
+
readonly productIdentifier: string
|
|
221
|
+
|
|
222
|
+
readonly isDownloadable: boolean
|
|
223
|
+
|
|
224
|
+
readonly downloadable: boolean
|
|
225
|
+
|
|
226
|
+
readonly isFamilyShareable: boolean
|
|
227
|
+
|
|
228
|
+
readonly contentLengths: NSArray
|
|
229
|
+
|
|
230
|
+
readonly downloadContentLengths: NSArray
|
|
231
|
+
|
|
232
|
+
readonly contentVersion: string
|
|
233
|
+
|
|
234
|
+
readonly downloadContentVersion: string
|
|
235
|
+
|
|
236
|
+
readonly subscriptionPeriod: SKProductSubscriptionPeriod
|
|
237
|
+
|
|
238
|
+
readonly introductoryPrice: SKProductDiscount
|
|
239
|
+
|
|
240
|
+
readonly subscriptionGroupIdentifier: string
|
|
241
|
+
|
|
242
|
+
readonly discounts: NSArray
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare class SKArcadeService extends NSObject {
|
|
246
|
+
static registerArcadeAppWithRandomFromLibRandomFromLibLengthResultHandler(
|
|
247
|
+
randomFromLib: NSData,
|
|
248
|
+
randomFromLibLength: number,
|
|
249
|
+
resultHandler: (p1: NSData, p2: number, p3: NSData, p4: number, p5: NSError) => void | null,
|
|
250
|
+
): void
|
|
251
|
+
|
|
252
|
+
static arcadeSubscriptionStatusWithNonceResultHandler(
|
|
253
|
+
nonce: number,
|
|
254
|
+
resultHandler: (p1: NSData, p2: number, p3: NSData, p4: number, p5: NSError) => void | null,
|
|
255
|
+
): void
|
|
256
|
+
|
|
257
|
+
static repairArcadeApp(): void
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare class SKDownload extends NSObject {
|
|
261
|
+
readonly state: interop.Enum<typeof SKDownloadState>
|
|
262
|
+
|
|
263
|
+
readonly contentLength: NSNumber
|
|
264
|
+
|
|
265
|
+
readonly expectedContentLength: number
|
|
266
|
+
|
|
267
|
+
readonly contentIdentifier: string
|
|
268
|
+
|
|
269
|
+
readonly contentURL: NSURL
|
|
270
|
+
|
|
271
|
+
readonly contentVersion: string
|
|
272
|
+
|
|
273
|
+
readonly error: NSError
|
|
274
|
+
|
|
275
|
+
readonly progress: number
|
|
276
|
+
|
|
277
|
+
readonly timeRemaining: number
|
|
278
|
+
|
|
279
|
+
readonly transaction: SKPaymentTransaction
|
|
280
|
+
|
|
281
|
+
static contentURLForProductID(productID: string): NSURL
|
|
282
|
+
|
|
283
|
+
static deleteContentForProductID(productID: string): void
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare class SKPaymentDiscount extends NSObject {
|
|
287
|
+
initWithIdentifierKeyIdentifierNonceSignatureTimestamp(
|
|
288
|
+
identifier: string,
|
|
289
|
+
keyIdentifier: string,
|
|
290
|
+
nonce: NSUUID,
|
|
291
|
+
signature: string,
|
|
292
|
+
timestamp: NSNumber,
|
|
293
|
+
): this
|
|
294
|
+
|
|
295
|
+
readonly identifier: string
|
|
296
|
+
|
|
297
|
+
readonly keyIdentifier: string
|
|
298
|
+
|
|
299
|
+
readonly nonce: NSUUID
|
|
300
|
+
|
|
301
|
+
readonly signature: string
|
|
302
|
+
|
|
303
|
+
readonly timestamp: NSNumber
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare class SKPayment extends NSObject implements NSCopying, NSMutableCopying {
|
|
307
|
+
static paymentWithProduct<This extends abstract new (...args: any) => any>(
|
|
308
|
+
this: This,
|
|
309
|
+
product: SKProduct,
|
|
310
|
+
): InstanceType<This>
|
|
311
|
+
|
|
312
|
+
readonly productIdentifier: string
|
|
313
|
+
|
|
314
|
+
readonly requestData: NSData
|
|
315
|
+
|
|
316
|
+
readonly quantity: number
|
|
317
|
+
|
|
318
|
+
readonly applicationUsername: string
|
|
319
|
+
|
|
320
|
+
readonly simulatesAskToBuyInSandbox: boolean
|
|
321
|
+
|
|
322
|
+
readonly paymentDiscount: SKPaymentDiscount
|
|
323
|
+
|
|
324
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
325
|
+
|
|
326
|
+
mutableCopyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// @ts-ignore ClassDecl.tsIgnore
|
|
330
|
+
declare class SKProductsRequest extends SKRequest {
|
|
331
|
+
initWithProductIdentifiers(productIdentifiers: NSSet): this
|
|
332
|
+
|
|
333
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
334
|
+
delegate: SKProductsRequestDelegate
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare class SKRequest extends NSObject {
|
|
338
|
+
delegate: SKRequestDelegate
|
|
339
|
+
|
|
340
|
+
cancel(): void
|
|
341
|
+
|
|
342
|
+
start(): void
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
declare class SKProductStorePromotionController extends NSObject {
|
|
346
|
+
static defaultController<This extends abstract new (...args: any) => any>(
|
|
347
|
+
this: This,
|
|
348
|
+
): InstanceType<This>
|
|
349
|
+
|
|
350
|
+
fetchStorePromotionVisibilityForProductCompletionHandler(
|
|
351
|
+
product: SKProduct,
|
|
352
|
+
completionHandler: (
|
|
353
|
+
p1: interop.Enum<typeof SKProductStorePromotionVisibility>,
|
|
354
|
+
p2: NSError,
|
|
355
|
+
) => void | null,
|
|
356
|
+
): void
|
|
357
|
+
|
|
358
|
+
updateStorePromotionVisibilityForProductCompletionHandler(
|
|
359
|
+
promotionVisibility: interop.Enum<typeof SKProductStorePromotionVisibility>,
|
|
360
|
+
product: SKProduct,
|
|
361
|
+
completionHandler: (p1: NSError) => void | null,
|
|
362
|
+
): void
|
|
363
|
+
|
|
364
|
+
fetchStorePromotionOrderWithCompletionHandler(
|
|
365
|
+
completionHandler: (
|
|
366
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
367
|
+
p2: NSError,
|
|
368
|
+
) => void | null,
|
|
369
|
+
): void
|
|
370
|
+
|
|
371
|
+
updateStorePromotionOrderCompletionHandler(
|
|
372
|
+
promotionOrder: NSArray<interop.Object> | Array<interop.Object>,
|
|
373
|
+
completionHandler: (p1: NSError) => void | null,
|
|
374
|
+
): void
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare class SKPaymentTransaction extends NSObject {
|
|
378
|
+
readonly error: NSError
|
|
379
|
+
|
|
380
|
+
readonly originalTransaction: SKPaymentTransaction
|
|
381
|
+
|
|
382
|
+
readonly payment: SKPayment
|
|
383
|
+
|
|
384
|
+
readonly downloads: NSArray
|
|
385
|
+
|
|
386
|
+
readonly transactionDate: NSDate
|
|
387
|
+
|
|
388
|
+
readonly transactionIdentifier: string
|
|
389
|
+
|
|
390
|
+
readonly transactionState: interop.Enum<typeof SKPaymentTransactionState>
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare class SKReceiptRefreshRequest extends SKRequest {
|
|
394
|
+
initWithReceiptProperties(
|
|
395
|
+
properties:
|
|
396
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
397
|
+
| Record<interop.Object, interop.Object>
|
|
398
|
+
| null,
|
|
399
|
+
): this
|
|
400
|
+
|
|
401
|
+
readonly receiptProperties: NSDictionary
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
declare class SKPaymentQueue extends NSObject {
|
|
405
|
+
delegate: SKPaymentQueueDelegate
|
|
406
|
+
|
|
407
|
+
readonly storefront: SKStorefront
|
|
408
|
+
|
|
409
|
+
static defaultQueue<This extends abstract new (...args: any) => any>(
|
|
410
|
+
this: This,
|
|
411
|
+
): InstanceType<This>
|
|
412
|
+
|
|
413
|
+
static canMakePayments(): boolean
|
|
414
|
+
|
|
415
|
+
addPayment(payment: SKPayment): void
|
|
416
|
+
|
|
417
|
+
restoreCompletedTransactions(): void
|
|
418
|
+
|
|
419
|
+
restoreCompletedTransactionsWithApplicationUsername(username: string | null): void
|
|
420
|
+
|
|
421
|
+
finishTransaction(transaction: SKPaymentTransaction): void
|
|
422
|
+
|
|
423
|
+
startDownloads(downloads: NSArray<interop.Object> | Array<interop.Object>): void
|
|
424
|
+
|
|
425
|
+
pauseDownloads(downloads: NSArray<interop.Object> | Array<interop.Object>): void
|
|
426
|
+
|
|
427
|
+
resumeDownloads(downloads: NSArray<interop.Object> | Array<interop.Object>): void
|
|
428
|
+
|
|
429
|
+
cancelDownloads(downloads: NSArray<interop.Object> | Array<interop.Object>): void
|
|
430
|
+
|
|
431
|
+
addTransactionObserver(observer: SKPaymentTransactionObserver): void
|
|
432
|
+
|
|
433
|
+
removeTransactionObserver(observer: SKPaymentTransactionObserver): void
|
|
434
|
+
|
|
435
|
+
readonly transactionObservers: NSArray
|
|
436
|
+
|
|
437
|
+
readonly transactions: NSArray
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
declare class SKProductDiscount extends NSObject {
|
|
441
|
+
readonly price: NSDecimalNumber
|
|
442
|
+
|
|
443
|
+
readonly priceLocale: NSLocale
|
|
444
|
+
|
|
445
|
+
readonly identifier: string
|
|
446
|
+
|
|
447
|
+
readonly subscriptionPeriod: SKProductSubscriptionPeriod
|
|
448
|
+
|
|
449
|
+
readonly numberOfPeriods: number
|
|
450
|
+
|
|
451
|
+
readonly paymentMode: interop.Enum<typeof SKProductDiscountPaymentMode>
|
|
452
|
+
|
|
453
|
+
readonly type: interop.Enum<typeof SKProductDiscountType>
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// @ts-ignore ClassDecl.tsIgnore
|
|
457
|
+
declare class SKMutablePayment extends SKPayment {
|
|
458
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
459
|
+
applicationUsername: string
|
|
460
|
+
|
|
461
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
462
|
+
paymentDiscount: SKPaymentDiscount
|
|
463
|
+
|
|
464
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
465
|
+
productIdentifier: string
|
|
466
|
+
|
|
467
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
468
|
+
quantity: number
|
|
469
|
+
|
|
470
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
471
|
+
requestData: NSData
|
|
472
|
+
|
|
473
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
474
|
+
simulatesAskToBuyInSandbox: boolean
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare class SKCloudServiceController extends NSObject {
|
|
478
|
+
static authorizationStatus(): interop.Enum<typeof SKCloudServiceAuthorizationStatus>
|
|
479
|
+
|
|
480
|
+
static requestAuthorization(
|
|
481
|
+
completionHandler: (p1: interop.Enum<typeof SKCloudServiceAuthorizationStatus>) => void,
|
|
482
|
+
): void
|
|
483
|
+
|
|
484
|
+
requestCapabilitiesWithCompletionHandler(
|
|
485
|
+
completionHandler: (
|
|
486
|
+
p1: interop.Enum<typeof SKCloudServiceCapability>,
|
|
487
|
+
p2: NSError,
|
|
488
|
+
) => void | null,
|
|
489
|
+
): void
|
|
490
|
+
|
|
491
|
+
requestStorefrontCountryCodeWithCompletionHandler(
|
|
492
|
+
completionHandler: (p1: string, p2: NSError) => void | null,
|
|
493
|
+
): void
|
|
494
|
+
|
|
495
|
+
requestStorefrontIdentifierWithCompletionHandler(
|
|
496
|
+
completionHandler: (p1: string, p2: NSError) => void | null,
|
|
497
|
+
): void
|
|
498
|
+
|
|
499
|
+
requestUserTokenForDeveloperTokenCompletionHandler(
|
|
500
|
+
developerToken: string,
|
|
501
|
+
completionHandler: (p1: string, p2: NSError) => void | null,
|
|
502
|
+
): void
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
declare class SKProductSubscriptionPeriod extends NSObject {
|
|
506
|
+
readonly numberOfUnits: number
|
|
507
|
+
|
|
508
|
+
readonly unit: interop.Enum<typeof SKProductPeriodUnit>
|
|
509
|
+
}
|