@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,495 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const NSFileProviderErrorNonExistentItemIdentifierKey: string
|
|
5
|
+
|
|
6
|
+
declare const NSFileProviderErrorDomain: string
|
|
7
|
+
|
|
8
|
+
declare const NSFileProviderWorkingSetContainerItemIdentifier: string
|
|
9
|
+
|
|
10
|
+
declare const NSFileProviderDomainDidChange: string
|
|
11
|
+
|
|
12
|
+
declare const NSFileProviderErrorItemKey: string
|
|
13
|
+
|
|
14
|
+
declare const NSFileProviderTrashContainerItemIdentifier: string
|
|
15
|
+
|
|
16
|
+
declare const NSFileProviderInitialPageSortedByName: NSData
|
|
17
|
+
|
|
18
|
+
declare const NSFileProviderFavoriteRankUnranked: number
|
|
19
|
+
|
|
20
|
+
declare const NSFileProviderInitialPageSortedByDate: NSData
|
|
21
|
+
|
|
22
|
+
declare const NSFileProviderRootContainerItemIdentifier: string
|
|
23
|
+
|
|
24
|
+
declare const NSFileProviderDeleteItemOptions: {
|
|
25
|
+
NSFileProviderDeleteItemRecursive: 1
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const NSFileProviderErrorCode: {
|
|
29
|
+
NotAuthenticated: -1000
|
|
30
|
+
FilenameCollision: -1001
|
|
31
|
+
SyncAnchorExpired: -1002
|
|
32
|
+
PageExpired: -1002
|
|
33
|
+
InsufficientQuota: -1003
|
|
34
|
+
ServerUnreachable: -1004
|
|
35
|
+
NoSuchItem: -1005
|
|
36
|
+
DeletionRejected: -1006
|
|
37
|
+
DirectoryNotEmpty: -1007
|
|
38
|
+
ProviderNotFound: -2001
|
|
39
|
+
ProviderTranslocated: -2002
|
|
40
|
+
OlderExtensionVersionRunning: -2003
|
|
41
|
+
NewerExtensionVersionFound: -2004
|
|
42
|
+
CannotSynchronize: -2005
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const NSFileProviderKnownFolders: {
|
|
46
|
+
Desktop: 1
|
|
47
|
+
Documents: 2
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const NSFileProviderFileSystemFlags: {
|
|
51
|
+
UserExecutable: 1
|
|
52
|
+
UserReadable: 2
|
|
53
|
+
UserWritable: 4
|
|
54
|
+
Hidden: 8
|
|
55
|
+
PathExtensionHidden: 16
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare const NSFileProviderItemFields: {
|
|
59
|
+
Contents: 1
|
|
60
|
+
Filename: 2
|
|
61
|
+
ParentItemIdentifier: 4
|
|
62
|
+
LastUsedDate: 8
|
|
63
|
+
TagData: 16
|
|
64
|
+
FavoriteRank: 32
|
|
65
|
+
CreationDate: 64
|
|
66
|
+
ContentModificationDate: 128
|
|
67
|
+
FileSystemFlags: 256
|
|
68
|
+
ExtendedAttributes: 512
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare const NSFileProviderItemCapabilities: {
|
|
72
|
+
Reading: 1
|
|
73
|
+
Writing: 2
|
|
74
|
+
Reparenting: 4
|
|
75
|
+
Renaming: 8
|
|
76
|
+
Trashing: 16
|
|
77
|
+
Deleting: 32
|
|
78
|
+
Evicting: 64
|
|
79
|
+
AddingSubItems: 2
|
|
80
|
+
ContentEnumerating: 1
|
|
81
|
+
All: 63
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare const NSFileProviderModifyItemOptions: {
|
|
85
|
+
NSFileProviderModifyItemMayAlreadyExist: 1
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare const NSFileProviderManagerDisconnectionOptions: {
|
|
89
|
+
NSFileProviderManagerDisconnectionOptionsTemporary: 1
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare const NSFileProviderCreateItemOptions: {
|
|
93
|
+
NSFileProviderCreateItemMayAlreadyExist: 1
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare const NSFileProviderDomainTestingModes: {
|
|
97
|
+
AlwaysEnabled: 1
|
|
98
|
+
Interactive: 2
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class NSFileProviderTypeAndCreator {
|
|
102
|
+
constructor(init?: NSFileProviderTypeAndCreator)
|
|
103
|
+
type: number
|
|
104
|
+
creator: number
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare interface NSFileProviderServiceSource {
|
|
108
|
+
readonly serviceName: string
|
|
109
|
+
|
|
110
|
+
makeListenerEndpointAndReturnError(error: interop.PointerConvertible): NSXPCListenerEndpoint
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class NSFileProviderServiceSource
|
|
114
|
+
extends NativeObject
|
|
115
|
+
implements NSFileProviderServiceSource {}
|
|
116
|
+
|
|
117
|
+
declare interface NSFileProviderChangeObserver extends NSObjectProtocol {
|
|
118
|
+
didUpdateItems(updatedItems: NSArray<interop.Object> | Array<interop.Object>): void
|
|
119
|
+
|
|
120
|
+
didDeleteItemsWithIdentifiers(
|
|
121
|
+
deletedItemIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
122
|
+
): void
|
|
123
|
+
|
|
124
|
+
finishEnumeratingChangesUpToSyncAnchorMoreComing(anchor: NSData, moreComing: boolean): void
|
|
125
|
+
|
|
126
|
+
finishEnumeratingWithError(error: NSError): void
|
|
127
|
+
|
|
128
|
+
readonly suggestedBatchSize?: number
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class NSFileProviderChangeObserver
|
|
132
|
+
extends NativeObject
|
|
133
|
+
implements NSFileProviderChangeObserver {}
|
|
134
|
+
|
|
135
|
+
declare interface NSFileProviderEnumerating extends NSObjectProtocol {
|
|
136
|
+
enumeratorForContainerItemIdentifierRequestError(
|
|
137
|
+
containerItemIdentifier: string,
|
|
138
|
+
request: NSFileProviderRequest,
|
|
139
|
+
error: interop.PointerConvertible,
|
|
140
|
+
): NSFileProviderEnumerator
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare class NSFileProviderEnumerating extends NativeObject implements NSFileProviderEnumerating {}
|
|
144
|
+
|
|
145
|
+
declare interface NSFileProviderItemDecorating extends NSFileProviderItem {
|
|
146
|
+
readonly decorations: NSArray
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class NSFileProviderItemDecorating
|
|
150
|
+
extends NativeObject
|
|
151
|
+
implements NSFileProviderItemDecorating {}
|
|
152
|
+
|
|
153
|
+
declare interface NSFileProviderEnumerator extends NSObjectProtocol {
|
|
154
|
+
invalidate(): void
|
|
155
|
+
|
|
156
|
+
enumerateItemsForObserverStartingAtPage(
|
|
157
|
+
observer: NSFileProviderEnumerationObserver,
|
|
158
|
+
page: NSData,
|
|
159
|
+
): void
|
|
160
|
+
|
|
161
|
+
enumerateChangesForObserverFromSyncAnchor?(
|
|
162
|
+
observer: NSFileProviderChangeObserver,
|
|
163
|
+
syncAnchor: NSData,
|
|
164
|
+
): void
|
|
165
|
+
|
|
166
|
+
currentSyncAnchorWithCompletionHandler?(completionHandler: (p1: NSData) => void | null): void
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class NSFileProviderEnumerator extends NativeObject implements NSFileProviderEnumerator {}
|
|
170
|
+
|
|
171
|
+
declare interface NSFileProviderEnumerationObserver extends NSObjectProtocol {
|
|
172
|
+
didEnumerateItems(updatedItems: NSArray<interop.Object> | Array<interop.Object>): void
|
|
173
|
+
|
|
174
|
+
finishEnumeratingUpToPage(nextPage: NSData | null): void
|
|
175
|
+
|
|
176
|
+
finishEnumeratingWithError(error: NSError): void
|
|
177
|
+
|
|
178
|
+
readonly suggestedPageSize?: number
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare class NSFileProviderEnumerationObserver
|
|
182
|
+
extends NativeObject
|
|
183
|
+
implements NSFileProviderEnumerationObserver {}
|
|
184
|
+
|
|
185
|
+
declare interface NSFileProviderServicing extends NSObjectProtocol {
|
|
186
|
+
supportedServiceSourcesForItemIdentifierCompletionHandler(
|
|
187
|
+
itemIdentifier: string,
|
|
188
|
+
completionHandler: (
|
|
189
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
190
|
+
p2: NSError,
|
|
191
|
+
) => void | null,
|
|
192
|
+
): NSProgress
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class NSFileProviderServicing extends NativeObject implements NSFileProviderServicing {}
|
|
196
|
+
|
|
197
|
+
declare interface NSFileProviderIncrementalContentFetching extends NSObjectProtocol {
|
|
198
|
+
fetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler(
|
|
199
|
+
itemIdentifier: string,
|
|
200
|
+
requestedVersion: NSFileProviderItemVersion | null,
|
|
201
|
+
existingContents: NSURL,
|
|
202
|
+
existingVersion: NSFileProviderItemVersion,
|
|
203
|
+
request: NSFileProviderRequest,
|
|
204
|
+
completionHandler: (p1: NSURL, p2: NSFileProviderItem, p3: NSError) => void | null,
|
|
205
|
+
): NSProgress
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare class NSFileProviderIncrementalContentFetching
|
|
209
|
+
extends NativeObject
|
|
210
|
+
implements NSFileProviderIncrementalContentFetching {}
|
|
211
|
+
|
|
212
|
+
declare interface NSFileProviderReplicatedExtension
|
|
213
|
+
extends NSObjectProtocol, NSFileProviderEnumerating {
|
|
214
|
+
initWithDomain(domain: NSFileProviderDomain): this
|
|
215
|
+
|
|
216
|
+
invalidate(): void
|
|
217
|
+
|
|
218
|
+
itemForIdentifierRequestCompletionHandler(
|
|
219
|
+
identifier: string,
|
|
220
|
+
request: NSFileProviderRequest,
|
|
221
|
+
completionHandler: (p1: NSFileProviderItem, p2: NSError) => void | null,
|
|
222
|
+
): NSProgress
|
|
223
|
+
|
|
224
|
+
fetchContentsForItemWithIdentifierVersionRequestCompletionHandler(
|
|
225
|
+
itemIdentifier: string,
|
|
226
|
+
requestedVersion: NSFileProviderItemVersion | null,
|
|
227
|
+
request: NSFileProviderRequest,
|
|
228
|
+
completionHandler: (p1: NSURL, p2: NSFileProviderItem, p3: NSError) => void | null,
|
|
229
|
+
): NSProgress
|
|
230
|
+
|
|
231
|
+
createItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(
|
|
232
|
+
itemTemplate: NSFileProviderItem,
|
|
233
|
+
fields: interop.Enum<typeof NSFileProviderItemFields>,
|
|
234
|
+
url: NSURL | null,
|
|
235
|
+
options: interop.Enum<typeof NSFileProviderCreateItemOptions>,
|
|
236
|
+
request: NSFileProviderRequest,
|
|
237
|
+
completionHandler: (
|
|
238
|
+
p1: NSFileProviderItem,
|
|
239
|
+
p2: interop.Enum<typeof NSFileProviderItemFields>,
|
|
240
|
+
p3: boolean,
|
|
241
|
+
p4: NSError,
|
|
242
|
+
) => void | null,
|
|
243
|
+
): NSProgress
|
|
244
|
+
|
|
245
|
+
modifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(
|
|
246
|
+
item: NSFileProviderItem,
|
|
247
|
+
version: NSFileProviderItemVersion,
|
|
248
|
+
changedFields: interop.Enum<typeof NSFileProviderItemFields>,
|
|
249
|
+
newContents: NSURL | null,
|
|
250
|
+
options: interop.Enum<typeof NSFileProviderModifyItemOptions>,
|
|
251
|
+
request: NSFileProviderRequest,
|
|
252
|
+
completionHandler: (
|
|
253
|
+
p1: NSFileProviderItem,
|
|
254
|
+
p2: interop.Enum<typeof NSFileProviderItemFields>,
|
|
255
|
+
p3: boolean,
|
|
256
|
+
p4: NSError,
|
|
257
|
+
) => void | null,
|
|
258
|
+
): NSProgress
|
|
259
|
+
|
|
260
|
+
deleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(
|
|
261
|
+
identifier: string,
|
|
262
|
+
version: NSFileProviderItemVersion,
|
|
263
|
+
options: interop.Enum<typeof NSFileProviderDeleteItemOptions>,
|
|
264
|
+
request: NSFileProviderRequest,
|
|
265
|
+
completionHandler: (p1: NSError) => void | null,
|
|
266
|
+
): NSProgress
|
|
267
|
+
|
|
268
|
+
importDidFinishWithCompletionHandler?(completionHandler: () => void): void
|
|
269
|
+
|
|
270
|
+
materializedItemsDidChangeWithCompletionHandler?(completionHandler: () => void): void
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class NSFileProviderReplicatedExtension
|
|
274
|
+
extends NativeObject
|
|
275
|
+
implements NSFileProviderReplicatedExtension {}
|
|
276
|
+
|
|
277
|
+
declare interface NSFileProviderItem extends NSObjectProtocol {
|
|
278
|
+
readonly itemIdentifier: string
|
|
279
|
+
|
|
280
|
+
readonly parentItemIdentifier: string
|
|
281
|
+
|
|
282
|
+
readonly filename: string
|
|
283
|
+
|
|
284
|
+
readonly contentType?: UTType
|
|
285
|
+
|
|
286
|
+
readonly capabilities?: interop.Enum<typeof NSFileProviderItemCapabilities>
|
|
287
|
+
|
|
288
|
+
readonly fileSystemFlags?: interop.Enum<typeof NSFileProviderFileSystemFlags>
|
|
289
|
+
|
|
290
|
+
readonly documentSize?: NSNumber
|
|
291
|
+
|
|
292
|
+
readonly childItemCount?: NSNumber
|
|
293
|
+
|
|
294
|
+
readonly creationDate?: NSDate
|
|
295
|
+
|
|
296
|
+
readonly contentModificationDate?: NSDate
|
|
297
|
+
|
|
298
|
+
readonly extendedAttributes?: NSDictionary
|
|
299
|
+
|
|
300
|
+
readonly lastUsedDate?: NSDate
|
|
301
|
+
|
|
302
|
+
readonly tagData?: NSData
|
|
303
|
+
|
|
304
|
+
readonly uploaded?: boolean
|
|
305
|
+
|
|
306
|
+
readonly uploading?: boolean
|
|
307
|
+
|
|
308
|
+
readonly uploadingError?: NSError
|
|
309
|
+
|
|
310
|
+
readonly downloaded?: boolean
|
|
311
|
+
|
|
312
|
+
readonly downloading?: boolean
|
|
313
|
+
|
|
314
|
+
readonly downloadingError?: NSError
|
|
315
|
+
|
|
316
|
+
readonly mostRecentVersionDownloaded?: boolean
|
|
317
|
+
|
|
318
|
+
readonly shared?: boolean
|
|
319
|
+
|
|
320
|
+
readonly sharedByCurrentUser?: boolean
|
|
321
|
+
|
|
322
|
+
readonly ownerNameComponents?: NSPersonNameComponents
|
|
323
|
+
|
|
324
|
+
readonly mostRecentEditorNameComponents?: NSPersonNameComponents
|
|
325
|
+
|
|
326
|
+
readonly itemVersion?: NSFileProviderItemVersion
|
|
327
|
+
|
|
328
|
+
readonly symlinkTargetPath?: string
|
|
329
|
+
|
|
330
|
+
readonly userInfo?: NSDictionary
|
|
331
|
+
|
|
332
|
+
isUploaded?(): boolean
|
|
333
|
+
|
|
334
|
+
isUploading?(): boolean
|
|
335
|
+
|
|
336
|
+
isDownloaded?(): boolean
|
|
337
|
+
|
|
338
|
+
isDownloading?(): boolean
|
|
339
|
+
|
|
340
|
+
isMostRecentVersionDownloaded?(): boolean
|
|
341
|
+
|
|
342
|
+
isShared?(): boolean
|
|
343
|
+
|
|
344
|
+
isSharedByCurrentUser?(): boolean
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare class NSFileProviderItem extends NativeObject implements NSFileProviderItem {}
|
|
348
|
+
|
|
349
|
+
declare interface NSFileProviderThumbnailing extends NSObjectProtocol {
|
|
350
|
+
fetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler(
|
|
351
|
+
itemIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
352
|
+
size: CGSize,
|
|
353
|
+
perThumbnailCompletionHandler: (p1: string, p2: NSData, p3: NSError) => void | null,
|
|
354
|
+
completionHandler: (p1: NSError) => void | null,
|
|
355
|
+
): NSProgress
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare class NSFileProviderThumbnailing
|
|
359
|
+
extends NativeObject
|
|
360
|
+
implements NSFileProviderThumbnailing {}
|
|
361
|
+
|
|
362
|
+
declare interface NSFileProviderCustomAction extends NSObjectProtocol {
|
|
363
|
+
performActionWithIdentifierOnItemsWithIdentifiersCompletionHandler(
|
|
364
|
+
actionIdentifier: string,
|
|
365
|
+
itemIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
366
|
+
completionHandler: (p1: NSError) => void | null,
|
|
367
|
+
): NSProgress
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
declare class NSFileProviderCustomAction
|
|
371
|
+
extends NativeObject
|
|
372
|
+
implements NSFileProviderCustomAction {}
|
|
373
|
+
|
|
374
|
+
declare class NSFileProviderRequest extends NSObject {
|
|
375
|
+
readonly isSystemRequest: boolean
|
|
376
|
+
|
|
377
|
+
readonly isFileViewerRequest: boolean
|
|
378
|
+
|
|
379
|
+
readonly requestingExecutable: NSURL
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare class NSFileProviderDomain extends NSObject {
|
|
383
|
+
initWithIdentifierDisplayName(identifier: string, displayName: string): this
|
|
384
|
+
|
|
385
|
+
readonly identifier: string
|
|
386
|
+
|
|
387
|
+
readonly displayName: string
|
|
388
|
+
|
|
389
|
+
readonly disconnected: boolean
|
|
390
|
+
|
|
391
|
+
readonly userEnabled: boolean
|
|
392
|
+
|
|
393
|
+
hidden: boolean
|
|
394
|
+
|
|
395
|
+
isDisconnected(): boolean
|
|
396
|
+
|
|
397
|
+
isHidden(): boolean
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
declare class NSFileProviderItemVersion extends NSObject {
|
|
401
|
+
initWithContentVersionMetadataVersion(contentVersion: NSData, metadataVersion: NSData): this
|
|
402
|
+
|
|
403
|
+
readonly contentVersion: NSData
|
|
404
|
+
|
|
405
|
+
readonly metadataVersion: NSData
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare class NSFileProviderManager extends NSObject {
|
|
409
|
+
static managerForDomain<This extends abstract new (...args: any) => any>(
|
|
410
|
+
this: This,
|
|
411
|
+
domain: NSFileProviderDomain,
|
|
412
|
+
): InstanceType<This>
|
|
413
|
+
|
|
414
|
+
signalEnumeratorForContainerItemIdentifierCompletionHandler(
|
|
415
|
+
containerItemIdentifier: string,
|
|
416
|
+
completion: (p1: NSError) => void | null,
|
|
417
|
+
): void
|
|
418
|
+
|
|
419
|
+
getUserVisibleURLForItemIdentifierCompletionHandler(
|
|
420
|
+
itemIdentifier: string,
|
|
421
|
+
completionHandler: (p1: NSURL, p2: NSError) => void | null,
|
|
422
|
+
): void
|
|
423
|
+
|
|
424
|
+
static getIdentifierForUserVisibleFileAtURLCompletionHandler(
|
|
425
|
+
url: NSURL,
|
|
426
|
+
completionHandler: (p1: string, p2: string, p3: NSError) => void | null,
|
|
427
|
+
): void
|
|
428
|
+
|
|
429
|
+
registerURLSessionTaskForItemWithIdentifierCompletionHandler(
|
|
430
|
+
task: NSURLSessionTask,
|
|
431
|
+
identifier: string,
|
|
432
|
+
completion: (p1: NSError) => void | null,
|
|
433
|
+
): void
|
|
434
|
+
|
|
435
|
+
temporaryDirectoryURLWithError(error: interop.PointerConvertible): NSURL
|
|
436
|
+
|
|
437
|
+
static addDomainCompletionHandler(
|
|
438
|
+
domain: NSFileProviderDomain,
|
|
439
|
+
completionHandler: (p1: NSError) => void | null,
|
|
440
|
+
): void
|
|
441
|
+
|
|
442
|
+
static removeDomainCompletionHandler(
|
|
443
|
+
domain: NSFileProviderDomain,
|
|
444
|
+
completionHandler: (p1: NSError) => void | null,
|
|
445
|
+
): void
|
|
446
|
+
|
|
447
|
+
static getDomainsWithCompletionHandler(
|
|
448
|
+
completionHandler: (
|
|
449
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
450
|
+
p2: NSError,
|
|
451
|
+
) => void | null,
|
|
452
|
+
): void
|
|
453
|
+
|
|
454
|
+
static removeAllDomainsWithCompletionHandler(
|
|
455
|
+
completionHandler: (p1: NSError) => void | null,
|
|
456
|
+
): void
|
|
457
|
+
|
|
458
|
+
signalErrorResolvedCompletionHandler(
|
|
459
|
+
error: NSError,
|
|
460
|
+
completionHandler: (p1: NSError) => void | null,
|
|
461
|
+
): void
|
|
462
|
+
|
|
463
|
+
enumeratorForMaterializedItems(): NSFileProviderEnumerator
|
|
464
|
+
|
|
465
|
+
static importDomainFromDirectoryAtURLCompletionHandler(
|
|
466
|
+
domain: NSFileProviderDomain,
|
|
467
|
+
url: NSURL,
|
|
468
|
+
completionHandler: (p1: NSError) => void | null,
|
|
469
|
+
): void
|
|
470
|
+
|
|
471
|
+
reimportItemsBelowItemWithIdentifierCompletionHandler(
|
|
472
|
+
itemIdentifier: string,
|
|
473
|
+
completionHandler: (p1: NSError) => void | null,
|
|
474
|
+
): void
|
|
475
|
+
|
|
476
|
+
evictItemWithIdentifierCompletionHandler(
|
|
477
|
+
itemIdentifier: string,
|
|
478
|
+
completionHandler: (p1: NSError) => void | null,
|
|
479
|
+
): void
|
|
480
|
+
|
|
481
|
+
waitForChangesOnItemsBelowItemWithIdentifierCompletionHandler(
|
|
482
|
+
itemIdentifier: string,
|
|
483
|
+
completionHandler: (p1: NSError) => void | null,
|
|
484
|
+
): void
|
|
485
|
+
|
|
486
|
+
waitForStabilizationWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
487
|
+
|
|
488
|
+
disconnectWithReasonOptionsCompletionHandler(
|
|
489
|
+
localizedReason: string,
|
|
490
|
+
options: interop.Enum<typeof NSFileProviderManagerDisconnectionOptions>,
|
|
491
|
+
completionHandler: (p1: NSError) => void | null,
|
|
492
|
+
): void
|
|
493
|
+
|
|
494
|
+
reconnectWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
495
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Foundation.d.ts" />
|
|
3
|
+
/// <reference path="./AppKit.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const FPUIErrorDomain: string
|
|
6
|
+
|
|
7
|
+
declare const FPUIExtensionErrorCode: {
|
|
8
|
+
UserCancelled: 0
|
|
9
|
+
Failed: 1
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class FPUIActionExtensionContext extends NSExtensionContext {
|
|
13
|
+
readonly domainIdentifier: string
|
|
14
|
+
|
|
15
|
+
completeRequest(): void
|
|
16
|
+
|
|
17
|
+
cancelRequestWithError(error: NSError): void
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// @ts-ignore ClassDecl.tsIgnore
|
|
21
|
+
declare class FPUIActionExtensionViewController extends NSViewController {
|
|
22
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
23
|
+
readonly extensionContext: FPUIActionExtensionContext
|
|
24
|
+
|
|
25
|
+
prepareForError(error: NSError): void
|
|
26
|
+
|
|
27
|
+
prepareForActionWithIdentifierItemIdentifiers(
|
|
28
|
+
actionIdentifier: string,
|
|
29
|
+
itemIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
30
|
+
): void
|
|
31
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
/// <reference path="./Foundation.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const FIMenuKind: {
|
|
6
|
+
ContextualMenuForItems: 0
|
|
7
|
+
ContextualMenuForContainer: 1
|
|
8
|
+
ContextualMenuForSidebar: 2
|
|
9
|
+
ToolbarItemMenu: 3
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare interface FIFinderSyncProtocol {
|
|
13
|
+
menuForMenuKind?(menu: interop.Enum<typeof FIMenuKind>): NSMenu
|
|
14
|
+
|
|
15
|
+
beginObservingDirectoryAtURL?(url: NSURL): void
|
|
16
|
+
|
|
17
|
+
endObservingDirectoryAtURL?(url: NSURL): void
|
|
18
|
+
|
|
19
|
+
requestBadgeIdentifierForURL?(url: NSURL): void
|
|
20
|
+
|
|
21
|
+
readonly toolbarItemName?: string
|
|
22
|
+
|
|
23
|
+
readonly toolbarItemImage?: NSImage
|
|
24
|
+
|
|
25
|
+
readonly toolbarItemToolTip?: string
|
|
26
|
+
|
|
27
|
+
supportedServiceNamesForItemWithURL?(itemURL: NSURL): NSArray
|
|
28
|
+
|
|
29
|
+
makeListenerEndpointForServiceNameItemURLAndReturnError?(
|
|
30
|
+
serviceName: string,
|
|
31
|
+
itemURL: NSURL,
|
|
32
|
+
error: interop.PointerConvertible,
|
|
33
|
+
): NSXPCListenerEndpoint
|
|
34
|
+
|
|
35
|
+
valuesForAttributesForItemWithURLCompletion?(
|
|
36
|
+
attributes: NSArray<interop.Object> | Array<interop.Object>,
|
|
37
|
+
itemURL: NSURL,
|
|
38
|
+
completion: (
|
|
39
|
+
p1: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
40
|
+
p2: NSError,
|
|
41
|
+
) => void | null,
|
|
42
|
+
): void
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class FIFinderSyncProtocol extends NativeObject implements FIFinderSyncProtocol {}
|
|
46
|
+
|
|
47
|
+
declare class FIFinderSync
|
|
48
|
+
extends NSObject
|
|
49
|
+
implements FIFinderSyncProtocol, NSExtensionRequestHandling
|
|
50
|
+
{
|
|
51
|
+
menuForMenuKind(menu: interop.Enum<typeof FIMenuKind>): NSMenu
|
|
52
|
+
|
|
53
|
+
beginObservingDirectoryAtURL(url: NSURL): void
|
|
54
|
+
|
|
55
|
+
endObservingDirectoryAtURL(url: NSURL): void
|
|
56
|
+
|
|
57
|
+
requestBadgeIdentifierForURL(url: NSURL): void
|
|
58
|
+
|
|
59
|
+
readonly toolbarItemName: string
|
|
60
|
+
|
|
61
|
+
readonly toolbarItemImage: NSImage
|
|
62
|
+
|
|
63
|
+
readonly toolbarItemToolTip: string
|
|
64
|
+
|
|
65
|
+
supportedServiceNamesForItemWithURL(itemURL: NSURL): NSArray
|
|
66
|
+
|
|
67
|
+
makeListenerEndpointForServiceNameItemURLAndReturnError(
|
|
68
|
+
serviceName: string,
|
|
69
|
+
itemURL: NSURL,
|
|
70
|
+
error: interop.PointerConvertible,
|
|
71
|
+
): NSXPCListenerEndpoint
|
|
72
|
+
|
|
73
|
+
valuesForAttributesForItemWithURLCompletion(
|
|
74
|
+
attributes: NSArray<interop.Object> | Array<interop.Object>,
|
|
75
|
+
itemURL: NSURL,
|
|
76
|
+
completion: (
|
|
77
|
+
p1: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
78
|
+
p2: NSError,
|
|
79
|
+
) => void | null,
|
|
80
|
+
): void
|
|
81
|
+
|
|
82
|
+
beginRequestWithExtensionContext(context: NSExtensionContext): void
|
|
83
|
+
|
|
84
|
+
isEqual(object: interop.Object): boolean
|
|
85
|
+
|
|
86
|
+
readonly hash: number
|
|
87
|
+
|
|
88
|
+
readonly superclass: interop.Pointer
|
|
89
|
+
|
|
90
|
+
class(): interop.Pointer
|
|
91
|
+
|
|
92
|
+
self(): this
|
|
93
|
+
|
|
94
|
+
performSelector(aSelector: string): interop.Object
|
|
95
|
+
|
|
96
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
97
|
+
|
|
98
|
+
performSelectorWithObjectWithObject(
|
|
99
|
+
aSelector: string,
|
|
100
|
+
object1: interop.Object,
|
|
101
|
+
object2: interop.Object,
|
|
102
|
+
): interop.Object
|
|
103
|
+
|
|
104
|
+
readonly isProxy: boolean
|
|
105
|
+
|
|
106
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
107
|
+
|
|
108
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
109
|
+
|
|
110
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
111
|
+
|
|
112
|
+
respondsToSelector(aSelector: string): boolean
|
|
113
|
+
|
|
114
|
+
retain(): this
|
|
115
|
+
|
|
116
|
+
release(): void
|
|
117
|
+
|
|
118
|
+
autorelease(): this
|
|
119
|
+
|
|
120
|
+
retainCount(): number
|
|
121
|
+
|
|
122
|
+
readonly zone: interop.Pointer
|
|
123
|
+
|
|
124
|
+
readonly description: string
|
|
125
|
+
|
|
126
|
+
readonly debugDescription: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare class FIFinderSyncController extends NSExtensionContext {
|
|
130
|
+
static defaultController<This extends abstract new (...args: any) => any>(
|
|
131
|
+
this: This,
|
|
132
|
+
): InstanceType<This>
|
|
133
|
+
|
|
134
|
+
directoryURLs: NSSet
|
|
135
|
+
|
|
136
|
+
setBadgeImageLabelForBadgeIdentifier(image: NSImage, label: string | null, badgeID: string): void
|
|
137
|
+
|
|
138
|
+
setBadgeIdentifierForURL(badgeID: string, url: NSURL): void
|
|
139
|
+
|
|
140
|
+
targetedURL(): NSURL
|
|
141
|
+
|
|
142
|
+
selectedItemURLs(): NSArray
|
|
143
|
+
|
|
144
|
+
lastUsedDateForItemWithURL(itemURL: NSURL): NSDate
|
|
145
|
+
|
|
146
|
+
setLastUsedDateForItemWithURLCompletion(
|
|
147
|
+
lastUsedDate: NSDate,
|
|
148
|
+
itemURL: NSURL,
|
|
149
|
+
completion: (p1: NSError) => void,
|
|
150
|
+
): void
|
|
151
|
+
|
|
152
|
+
tagDataForItemWithURL(itemURL: NSURL): NSData
|
|
153
|
+
|
|
154
|
+
setTagDataForItemWithURLCompletion(
|
|
155
|
+
tagData: NSData | null,
|
|
156
|
+
itemURL: NSURL,
|
|
157
|
+
completion: (p1: NSError) => void,
|
|
158
|
+
): void
|
|
159
|
+
|
|
160
|
+
static readonly extensionEnabled: boolean
|
|
161
|
+
|
|
162
|
+
static showExtensionManagementInterface(): void
|
|
163
|
+
|
|
164
|
+
static isExtensionEnabled(): boolean
|
|
165
|
+
}
|