@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,397 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Foundation.d.ts" />
|
|
3
|
+
/// <reference path="./Runtime.d.ts" />
|
|
4
|
+
/// <reference path="./AppKit.d.ts" />
|
|
5
|
+
|
|
6
|
+
declare const PHProjectCategoryOther: string
|
|
7
|
+
|
|
8
|
+
declare const PHProjectCategoryPrints: string
|
|
9
|
+
|
|
10
|
+
declare const PHProjectCategoryCard: string
|
|
11
|
+
|
|
12
|
+
declare const PHProjectCategoryCalendar: string
|
|
13
|
+
|
|
14
|
+
declare const PHProjectCategoryBook: string
|
|
15
|
+
|
|
16
|
+
declare const PHProjectTypeUndefined: string
|
|
17
|
+
|
|
18
|
+
declare const PHProjectCategorySlideshow: string
|
|
19
|
+
|
|
20
|
+
declare const PHProjectCategoryWallDecor: string
|
|
21
|
+
|
|
22
|
+
declare const PHProjectCategoryUndefined: string
|
|
23
|
+
|
|
24
|
+
declare const PHProjectTextElementType: {
|
|
25
|
+
Body: 0
|
|
26
|
+
Title: 1
|
|
27
|
+
Subtitle: 2
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare const PHProjectSectionType: {
|
|
31
|
+
Undefined: 0
|
|
32
|
+
Cover: 1
|
|
33
|
+
Content: 2
|
|
34
|
+
Auxiliary: 3
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare const PHLivePhotoViewPlaybackStyle: {
|
|
38
|
+
Undefined: 0
|
|
39
|
+
Full: 1
|
|
40
|
+
Hint: 2
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const PHProjectCreationSource: {
|
|
44
|
+
Undefined: 0
|
|
45
|
+
UserSelection: 1
|
|
46
|
+
Album: 2
|
|
47
|
+
Memory: 3
|
|
48
|
+
Moment: 4
|
|
49
|
+
Project: 20
|
|
50
|
+
ProjectBook: 21
|
|
51
|
+
ProjectCalendar: 22
|
|
52
|
+
ProjectCard: 23
|
|
53
|
+
ProjectPrintOrder: 24
|
|
54
|
+
ProjectSlideshow: 25
|
|
55
|
+
ProjectExtension: 26
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare const PHLivePhotoViewContentMode: {
|
|
59
|
+
Fit: 0
|
|
60
|
+
Fill: 1
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare interface PHProjectExtensionController extends NSObjectProtocol {
|
|
64
|
+
readonly supportedProjectTypes?: NSArray
|
|
65
|
+
|
|
66
|
+
typeDescriptionDataSourceForCategoryInvalidator?(
|
|
67
|
+
category: string,
|
|
68
|
+
invalidator: PHProjectTypeDescriptionInvalidator,
|
|
69
|
+
): PHProjectTypeDescriptionDataSource
|
|
70
|
+
|
|
71
|
+
beginProjectWithExtensionContextProjectInfoCompletion(
|
|
72
|
+
extensionContext: PHProjectExtensionContext,
|
|
73
|
+
projectInfo: PHProjectInfo,
|
|
74
|
+
completion: (p1: NSError) => void | null,
|
|
75
|
+
): void
|
|
76
|
+
|
|
77
|
+
resumeProjectWithExtensionContextCompletion(
|
|
78
|
+
extensionContext: PHProjectExtensionContext,
|
|
79
|
+
completion: (p1: NSError) => void | null,
|
|
80
|
+
): void
|
|
81
|
+
|
|
82
|
+
finishProjectWithCompletionHandler(completion: () => void): void
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare class PHProjectExtensionController
|
|
86
|
+
extends NativeObject
|
|
87
|
+
implements PHProjectExtensionController {}
|
|
88
|
+
|
|
89
|
+
declare interface PHProjectTypeDescriptionInvalidator extends NSObjectProtocol {
|
|
90
|
+
invalidateTypeDescriptionForProjectType(projectType: string): void
|
|
91
|
+
|
|
92
|
+
invalidateFooterTextForSubtypesOfProjectType(projectType: string): void
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare class PHProjectTypeDescriptionInvalidator
|
|
96
|
+
extends NativeObject
|
|
97
|
+
implements PHProjectTypeDescriptionInvalidator {}
|
|
98
|
+
|
|
99
|
+
declare interface PHLivePhotoViewDelegate extends NSObjectProtocol {
|
|
100
|
+
livePhotoViewCanBeginPlaybackWithStyle?(
|
|
101
|
+
livePhotoView: PHLivePhotoView,
|
|
102
|
+
playbackStyle: interop.Enum<typeof PHLivePhotoViewPlaybackStyle>,
|
|
103
|
+
): boolean
|
|
104
|
+
|
|
105
|
+
livePhotoViewWillBeginPlaybackWithStyle?(
|
|
106
|
+
livePhotoView: PHLivePhotoView,
|
|
107
|
+
playbackStyle: interop.Enum<typeof PHLivePhotoViewPlaybackStyle>,
|
|
108
|
+
): void
|
|
109
|
+
|
|
110
|
+
livePhotoViewDidEndPlaybackWithStyle?(
|
|
111
|
+
livePhotoView: PHLivePhotoView,
|
|
112
|
+
playbackStyle: interop.Enum<typeof PHLivePhotoViewPlaybackStyle>,
|
|
113
|
+
): void
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare class PHLivePhotoViewDelegate extends NativeObject implements PHLivePhotoViewDelegate {}
|
|
117
|
+
|
|
118
|
+
declare interface PHProjectTypeDescriptionDataSource extends NSObjectProtocol {
|
|
119
|
+
subtypesForProjectType(projectType: string): NSArray
|
|
120
|
+
|
|
121
|
+
typeDescriptionForProjectType(projectType: string): PHProjectTypeDescription
|
|
122
|
+
|
|
123
|
+
footerTextForSubtypesOfProjectType(projectType: string): NSAttributedString
|
|
124
|
+
|
|
125
|
+
extensionWillDiscardDataSource?(): void
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class PHProjectTypeDescriptionDataSource
|
|
129
|
+
extends NativeObject
|
|
130
|
+
implements PHProjectTypeDescriptionDataSource {}
|
|
131
|
+
|
|
132
|
+
declare interface PHContentEditingController extends NSObjectProtocol {
|
|
133
|
+
canHandleAdjustmentData(adjustmentData: PHAdjustmentData): boolean
|
|
134
|
+
|
|
135
|
+
startContentEditingWithInputPlaceholderImage(
|
|
136
|
+
contentEditingInput: PHContentEditingInput,
|
|
137
|
+
placeholderImage: NSImage,
|
|
138
|
+
): void
|
|
139
|
+
|
|
140
|
+
finishContentEditingWithCompletionHandler(
|
|
141
|
+
completionHandler: (p1: PHContentEditingOutput) => void | null,
|
|
142
|
+
): void
|
|
143
|
+
|
|
144
|
+
cancelContentEditing(): void
|
|
145
|
+
|
|
146
|
+
readonly shouldShowCancelConfirmation: boolean
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class PHContentEditingController
|
|
150
|
+
extends NativeObject
|
|
151
|
+
implements PHContentEditingController {}
|
|
152
|
+
|
|
153
|
+
declare class PHProjectMapElement extends PHProjectElement implements NSSecureCoding {
|
|
154
|
+
readonly mapType: interop.Enum<typeof MKMapType>
|
|
155
|
+
|
|
156
|
+
readonly centerCoordinate: CLLocationCoordinate2D
|
|
157
|
+
|
|
158
|
+
readonly heading: number
|
|
159
|
+
|
|
160
|
+
readonly pitch: number
|
|
161
|
+
|
|
162
|
+
readonly altitude: number
|
|
163
|
+
|
|
164
|
+
readonly annotations: NSArray
|
|
165
|
+
|
|
166
|
+
static readonly supportsSecureCoding: boolean
|
|
167
|
+
|
|
168
|
+
encodeWithCoder(coder: NSCoder): void
|
|
169
|
+
|
|
170
|
+
initWithCoder(coder: NSCoder): this
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare class PHProjectJournalEntryElement extends PHProjectElement implements NSSecureCoding {
|
|
174
|
+
readonly date: NSDate
|
|
175
|
+
|
|
176
|
+
readonly assetElement: PHProjectAssetElement
|
|
177
|
+
|
|
178
|
+
readonly textElement: PHProjectTextElement
|
|
179
|
+
|
|
180
|
+
static readonly supportsSecureCoding: boolean
|
|
181
|
+
|
|
182
|
+
encodeWithCoder(coder: NSCoder): void
|
|
183
|
+
|
|
184
|
+
initWithCoder(coder: NSCoder): this
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare class PHProjectTextElement extends PHProjectElement implements NSSecureCoding {
|
|
188
|
+
readonly text: string
|
|
189
|
+
|
|
190
|
+
readonly attributedText: NSAttributedString
|
|
191
|
+
|
|
192
|
+
readonly textElementType: interop.Enum<typeof PHProjectTextElementType>
|
|
193
|
+
|
|
194
|
+
static readonly supportsSecureCoding: boolean
|
|
195
|
+
|
|
196
|
+
encodeWithCoder(coder: NSCoder): void
|
|
197
|
+
|
|
198
|
+
initWithCoder(coder: NSCoder): this
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare class PHProjectElement extends NSObject implements NSSecureCoding {
|
|
202
|
+
readonly weight: number
|
|
203
|
+
|
|
204
|
+
readonly placement: CGRect
|
|
205
|
+
|
|
206
|
+
static readonly supportsSecureCoding: boolean
|
|
207
|
+
|
|
208
|
+
encodeWithCoder(coder: NSCoder): void
|
|
209
|
+
|
|
210
|
+
initWithCoder(coder: NSCoder): this
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare class PHProjectSectionContent extends NSObject implements NSSecureCoding {
|
|
214
|
+
readonly elements: NSArray
|
|
215
|
+
|
|
216
|
+
readonly numberOfColumns: number
|
|
217
|
+
|
|
218
|
+
readonly aspectRatio: number
|
|
219
|
+
|
|
220
|
+
readonly cloudAssetIdentifiers: NSArray
|
|
221
|
+
|
|
222
|
+
readonly backgroundColor: NSColor
|
|
223
|
+
|
|
224
|
+
static readonly supportsSecureCoding: boolean
|
|
225
|
+
|
|
226
|
+
encodeWithCoder(coder: NSCoder): void
|
|
227
|
+
|
|
228
|
+
initWithCoder(coder: NSCoder): this
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class PHProjectInfo extends NSObject implements NSSecureCoding {
|
|
232
|
+
readonly creationSource: interop.Enum<typeof PHProjectCreationSource>
|
|
233
|
+
|
|
234
|
+
readonly projectType: string
|
|
235
|
+
|
|
236
|
+
readonly sections: NSArray
|
|
237
|
+
|
|
238
|
+
readonly brandingEnabled: boolean
|
|
239
|
+
|
|
240
|
+
readonly pageNumbersEnabled: boolean
|
|
241
|
+
|
|
242
|
+
readonly productIdentifier: string
|
|
243
|
+
|
|
244
|
+
readonly themeIdentifier: string
|
|
245
|
+
|
|
246
|
+
static readonly supportsSecureCoding: boolean
|
|
247
|
+
|
|
248
|
+
encodeWithCoder(coder: NSCoder): void
|
|
249
|
+
|
|
250
|
+
initWithCoder(coder: NSCoder): this
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare class PHProjectTypeDescription extends NSObject implements NSSecureCoding {
|
|
254
|
+
readonly projectType: string
|
|
255
|
+
|
|
256
|
+
readonly localizedTitle: string
|
|
257
|
+
|
|
258
|
+
readonly localizedDescription: string
|
|
259
|
+
|
|
260
|
+
readonly localizedAttributedDescription: NSAttributedString
|
|
261
|
+
|
|
262
|
+
readonly image: NSImage
|
|
263
|
+
|
|
264
|
+
readonly subtypeDescriptions: NSArray
|
|
265
|
+
|
|
266
|
+
readonly canProvideSubtypes: boolean
|
|
267
|
+
|
|
268
|
+
initWithProjectTypeTitleDescriptionImageSubtypeDescriptions(
|
|
269
|
+
projectType: string,
|
|
270
|
+
localizedTitle: string,
|
|
271
|
+
localizedDescription: string | null,
|
|
272
|
+
image: NSImage | null,
|
|
273
|
+
subtypeDescriptions: NSArray<interop.Object> | Array<interop.Object>,
|
|
274
|
+
): this
|
|
275
|
+
|
|
276
|
+
initWithProjectTypeTitleAttributedDescriptionImageSubtypeDescriptions(
|
|
277
|
+
projectType: string,
|
|
278
|
+
localizedTitle: string,
|
|
279
|
+
localizedAttributedDescription: NSAttributedString | null,
|
|
280
|
+
image: NSImage | null,
|
|
281
|
+
subtypeDescriptions: NSArray<interop.Object> | Array<interop.Object>,
|
|
282
|
+
): this
|
|
283
|
+
|
|
284
|
+
initWithProjectTypeTitleDescriptionImage(
|
|
285
|
+
projectType: string,
|
|
286
|
+
localizedTitle: string,
|
|
287
|
+
localizedDescription: string | null,
|
|
288
|
+
image: NSImage | null,
|
|
289
|
+
): this
|
|
290
|
+
|
|
291
|
+
initWithProjectTypeTitleDescriptionImageCanProvideSubtypes(
|
|
292
|
+
projectType: string,
|
|
293
|
+
localizedTitle: string,
|
|
294
|
+
localizedDescription: string | null,
|
|
295
|
+
image: NSImage | null,
|
|
296
|
+
canProvideSubtypes: boolean,
|
|
297
|
+
): this
|
|
298
|
+
|
|
299
|
+
initWithProjectTypeTitleAttributedDescriptionImageCanProvideSubtypes(
|
|
300
|
+
projectType: string,
|
|
301
|
+
localizedTitle: string,
|
|
302
|
+
localizedAttributedDescription: NSAttributedString | null,
|
|
303
|
+
image: NSImage | null,
|
|
304
|
+
canProvideSubtypes: boolean,
|
|
305
|
+
): this
|
|
306
|
+
|
|
307
|
+
static readonly supportsSecureCoding: boolean
|
|
308
|
+
|
|
309
|
+
encodeWithCoder(coder: NSCoder): void
|
|
310
|
+
|
|
311
|
+
initWithCoder(coder: NSCoder): this
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
declare class PHProjectExtensionContext extends NSExtensionContext {
|
|
315
|
+
readonly photoLibrary: PHPhotoLibrary
|
|
316
|
+
|
|
317
|
+
readonly project: PHProject
|
|
318
|
+
|
|
319
|
+
showEditorForAsset(asset: PHAsset): void
|
|
320
|
+
|
|
321
|
+
updatedProjectInfoFromProjectInfoCompletion(
|
|
322
|
+
existingProjectInfo: PHProjectInfo | null,
|
|
323
|
+
completion: (p1: PHProjectInfo) => void | null,
|
|
324
|
+
): NSProgress
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare class PHLivePhotoView extends NSView {
|
|
328
|
+
delegate: PHLivePhotoViewDelegate
|
|
329
|
+
|
|
330
|
+
livePhoto: PHLivePhoto
|
|
331
|
+
|
|
332
|
+
contentMode: interop.Enum<typeof PHLivePhotoViewContentMode>
|
|
333
|
+
|
|
334
|
+
audioVolume: number
|
|
335
|
+
|
|
336
|
+
muted: boolean
|
|
337
|
+
|
|
338
|
+
startPlaybackWithStyle(playbackStyle: interop.Enum<typeof PHLivePhotoViewPlaybackStyle>): void
|
|
339
|
+
|
|
340
|
+
stopPlayback(): void
|
|
341
|
+
|
|
342
|
+
stopPlaybackAnimated(animated: boolean): void
|
|
343
|
+
|
|
344
|
+
readonly livePhotoBadgeView: NSView
|
|
345
|
+
|
|
346
|
+
isMuted(): boolean
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare class PHProjectRegionOfInterest extends NSObject implements NSSecureCoding {
|
|
350
|
+
readonly rect: CGRect
|
|
351
|
+
|
|
352
|
+
readonly weight: number
|
|
353
|
+
|
|
354
|
+
readonly quality: number
|
|
355
|
+
|
|
356
|
+
readonly identifier: string
|
|
357
|
+
|
|
358
|
+
static readonly supportsSecureCoding: boolean
|
|
359
|
+
|
|
360
|
+
encodeWithCoder(coder: NSCoder): void
|
|
361
|
+
|
|
362
|
+
initWithCoder(coder: NSCoder): this
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare class PHProjectAssetElement extends PHProjectElement implements NSSecureCoding {
|
|
366
|
+
readonly cloudAssetIdentifier: PHCloudIdentifier
|
|
367
|
+
|
|
368
|
+
readonly annotation: string
|
|
369
|
+
|
|
370
|
+
readonly cropRect: CGRect
|
|
371
|
+
|
|
372
|
+
readonly regionsOfInterest: NSArray
|
|
373
|
+
|
|
374
|
+
readonly horizontallyFlipped: boolean
|
|
375
|
+
|
|
376
|
+
readonly verticallyFlipped: boolean
|
|
377
|
+
|
|
378
|
+
static readonly supportsSecureCoding: boolean
|
|
379
|
+
|
|
380
|
+
encodeWithCoder(coder: NSCoder): void
|
|
381
|
+
|
|
382
|
+
initWithCoder(coder: NSCoder): this
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
declare class PHProjectSection extends NSObject implements NSSecureCoding {
|
|
386
|
+
readonly sectionContents: NSArray
|
|
387
|
+
|
|
388
|
+
readonly sectionType: interop.Enum<typeof PHProjectSectionType>
|
|
389
|
+
|
|
390
|
+
readonly title: string
|
|
391
|
+
|
|
392
|
+
static readonly supportsSecureCoding: boolean
|
|
393
|
+
|
|
394
|
+
encodeWithCoder(coder: NSCoder): void
|
|
395
|
+
|
|
396
|
+
initWithCoder(coder: NSCoder): this
|
|
397
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const NSPrefPaneHelpMenuAnchorKey: string
|
|
5
|
+
|
|
6
|
+
declare const NSPrefPaneHelpMenuInfoPListKey: string
|
|
7
|
+
|
|
8
|
+
declare const NSPrefPaneHelpMenuTitleKey: string
|
|
9
|
+
|
|
10
|
+
declare const NSPreferencePaneSwitchToPaneNotification: string
|
|
11
|
+
|
|
12
|
+
declare const NSPreferencePaneCancelUnselectNotification: string
|
|
13
|
+
|
|
14
|
+
declare const NSPreferencePrefPaneIsAvailableNotification: string
|
|
15
|
+
|
|
16
|
+
declare const NSPreferencePaneDoUnselectNotification: string
|
|
17
|
+
|
|
18
|
+
declare const NSPreferencePaneUpdateHelpMenuNotification: string
|
|
19
|
+
|
|
20
|
+
declare const NSPreferencePaneUnselectReply: {
|
|
21
|
+
Cancel: 0
|
|
22
|
+
Now: 1
|
|
23
|
+
Later: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare class NSPreferencePane extends NSObject {
|
|
27
|
+
initWithBundle(bundle: NSBundle): this
|
|
28
|
+
|
|
29
|
+
readonly bundle: NSBundle
|
|
30
|
+
|
|
31
|
+
loadMainView(): NSView
|
|
32
|
+
|
|
33
|
+
mainViewDidLoad(): void
|
|
34
|
+
|
|
35
|
+
readonly mainNibName: string
|
|
36
|
+
|
|
37
|
+
assignMainView(): void
|
|
38
|
+
|
|
39
|
+
willSelect(): void
|
|
40
|
+
|
|
41
|
+
didSelect(): void
|
|
42
|
+
|
|
43
|
+
readonly shouldUnselect: interop.Enum<typeof NSPreferencePaneUnselectReply>
|
|
44
|
+
|
|
45
|
+
replyToShouldUnselect(shouldUnselect: boolean): void
|
|
46
|
+
|
|
47
|
+
willUnselect(): void
|
|
48
|
+
|
|
49
|
+
didUnselect(): void
|
|
50
|
+
|
|
51
|
+
mainView: NSView
|
|
52
|
+
|
|
53
|
+
initialKeyView: NSView
|
|
54
|
+
|
|
55
|
+
firstKeyView: NSView
|
|
56
|
+
|
|
57
|
+
lastKeyView: NSView
|
|
58
|
+
|
|
59
|
+
readonly autoSaveTextFields: boolean
|
|
60
|
+
|
|
61
|
+
readonly selected: boolean
|
|
62
|
+
|
|
63
|
+
updateHelpMenuWithArray(
|
|
64
|
+
inArrayOfMenuItems: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
65
|
+
): void
|
|
66
|
+
|
|
67
|
+
isSelected(): boolean
|
|
68
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const PKPushTypeFileProvider: string
|
|
5
|
+
|
|
6
|
+
declare interface PKPushRegistryDelegate extends NSObjectProtocol {
|
|
7
|
+
pushRegistryDidUpdatePushCredentialsForType(
|
|
8
|
+
registry: PKPushRegistry,
|
|
9
|
+
pushCredentials: PKPushCredentials,
|
|
10
|
+
type: string,
|
|
11
|
+
): void
|
|
12
|
+
|
|
13
|
+
pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler?(
|
|
14
|
+
registry: PKPushRegistry,
|
|
15
|
+
payload: PKPushPayload,
|
|
16
|
+
type: string,
|
|
17
|
+
completion: () => void,
|
|
18
|
+
): void
|
|
19
|
+
|
|
20
|
+
pushRegistryDidInvalidatePushTokenForType?(registry: PKPushRegistry, type: string): void
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class PKPushRegistryDelegate extends NativeObject implements PKPushRegistryDelegate {}
|
|
24
|
+
|
|
25
|
+
declare class PKPushPayload extends NSObject {
|
|
26
|
+
readonly type: string
|
|
27
|
+
|
|
28
|
+
readonly dictionaryPayload: NSDictionary
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class PKPushCredentials extends NSObject {
|
|
32
|
+
readonly type: string
|
|
33
|
+
|
|
34
|
+
readonly token: NSData
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class PKPushRegistry extends NSObject {
|
|
38
|
+
delegate: PKPushRegistryDelegate
|
|
39
|
+
|
|
40
|
+
desiredPushTypes: NSSet
|
|
41
|
+
|
|
42
|
+
pushTokenForType(type: string): NSData
|
|
43
|
+
|
|
44
|
+
initWithQueue(queue: NSObject | null): this
|
|
45
|
+
}
|