@octane-xplat/macos-renderer 0.14.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,556 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const NLTagOrganizationName: string
|
|
5
|
+
|
|
6
|
+
declare const NLTagPlaceName: string
|
|
7
|
+
|
|
8
|
+
declare const NLTagOtherPunctuation: string
|
|
9
|
+
|
|
10
|
+
declare const NLTagDash: string
|
|
11
|
+
|
|
12
|
+
declare const NLTagWordJoiner: string
|
|
13
|
+
|
|
14
|
+
declare const NLTagCloseQuote: string
|
|
15
|
+
|
|
16
|
+
declare const NLTagSentenceTerminator: string
|
|
17
|
+
|
|
18
|
+
declare const NLTagOtherWord: string
|
|
19
|
+
|
|
20
|
+
declare const NLTagIdiom: string
|
|
21
|
+
|
|
22
|
+
declare const NLTagConjunction: string
|
|
23
|
+
|
|
24
|
+
declare const NLTagNumber: string
|
|
25
|
+
|
|
26
|
+
declare const NLTagPreposition: string
|
|
27
|
+
|
|
28
|
+
declare const NLTagPronoun: string
|
|
29
|
+
|
|
30
|
+
declare const NLTagNoun: string
|
|
31
|
+
|
|
32
|
+
declare const NLTagWhitespace: string
|
|
33
|
+
|
|
34
|
+
declare const NLTagPunctuation: string
|
|
35
|
+
|
|
36
|
+
declare const NLTagWord: string
|
|
37
|
+
|
|
38
|
+
declare const NLTagSchemeNameTypeOrLexicalClass: string
|
|
39
|
+
|
|
40
|
+
declare const NLTagSchemeNameType: string
|
|
41
|
+
|
|
42
|
+
declare const NLTagSchemeLexicalClass: string
|
|
43
|
+
|
|
44
|
+
declare const NLContextualEmbeddingKeyRevision: string
|
|
45
|
+
|
|
46
|
+
declare const NLContextualEmbeddingKeyScripts: string
|
|
47
|
+
|
|
48
|
+
declare const NLLanguageVietnamese: string
|
|
49
|
+
|
|
50
|
+
declare const NLLanguageUrdu: string
|
|
51
|
+
|
|
52
|
+
declare const NLLanguageUkrainian: string
|
|
53
|
+
|
|
54
|
+
declare const NLLanguageTraditionalChinese: string
|
|
55
|
+
|
|
56
|
+
declare const NLLanguageTelugu: string
|
|
57
|
+
|
|
58
|
+
declare const NLLanguageSpanish: string
|
|
59
|
+
|
|
60
|
+
declare const NLLanguageSinhalese: string
|
|
61
|
+
|
|
62
|
+
declare const NLLanguageSimplifiedChinese: string
|
|
63
|
+
|
|
64
|
+
declare const NLLanguageRussian: string
|
|
65
|
+
|
|
66
|
+
declare const NLLanguageRomanian: string
|
|
67
|
+
|
|
68
|
+
declare const NLLanguageOriya: string
|
|
69
|
+
|
|
70
|
+
declare const NLLanguageNorwegian: string
|
|
71
|
+
|
|
72
|
+
declare const NLLanguageMarathi: string
|
|
73
|
+
|
|
74
|
+
declare const NLLanguageMalay: string
|
|
75
|
+
|
|
76
|
+
declare const NLLanguageLao: string
|
|
77
|
+
|
|
78
|
+
declare const NLLanguageKorean: string
|
|
79
|
+
|
|
80
|
+
declare const NLLanguageIndonesian: string
|
|
81
|
+
|
|
82
|
+
declare const NLLanguageHungarian: string
|
|
83
|
+
|
|
84
|
+
declare const NLLanguageGujarati: string
|
|
85
|
+
|
|
86
|
+
declare const NLLanguageGreek: string
|
|
87
|
+
|
|
88
|
+
declare const NLLanguageGerman: string
|
|
89
|
+
|
|
90
|
+
declare const NLLanguageFrench: string
|
|
91
|
+
|
|
92
|
+
declare const NLLanguageEnglish: string
|
|
93
|
+
|
|
94
|
+
declare const NLLanguageDutch: string
|
|
95
|
+
|
|
96
|
+
declare const NLLanguageDanish: string
|
|
97
|
+
|
|
98
|
+
declare const NLLanguageCroatian: string
|
|
99
|
+
|
|
100
|
+
declare const NLLanguageCherokee: string
|
|
101
|
+
|
|
102
|
+
declare const NLLanguageBulgarian: string
|
|
103
|
+
|
|
104
|
+
declare const NLLanguageBengali: string
|
|
105
|
+
|
|
106
|
+
declare const NLLanguageArabic: string
|
|
107
|
+
|
|
108
|
+
declare const NLLanguageAmharic: string
|
|
109
|
+
|
|
110
|
+
declare const NLLanguageHindi: string
|
|
111
|
+
|
|
112
|
+
declare const NLTagSchemeScript: string
|
|
113
|
+
|
|
114
|
+
declare const NLLanguageTamil: string
|
|
115
|
+
|
|
116
|
+
declare const NLLanguageCzech: string
|
|
117
|
+
|
|
118
|
+
declare const NLLanguageThai: string
|
|
119
|
+
|
|
120
|
+
declare const NLLanguagePolish: string
|
|
121
|
+
|
|
122
|
+
declare const NLLanguageSwedish: string
|
|
123
|
+
|
|
124
|
+
declare const NLLanguageTurkish: string
|
|
125
|
+
|
|
126
|
+
declare const NLLanguagePersian: string
|
|
127
|
+
|
|
128
|
+
declare const NLLanguageUndetermined: string
|
|
129
|
+
|
|
130
|
+
declare const NLTagVerb: string
|
|
131
|
+
|
|
132
|
+
declare const NLTagParagraphBreak: string
|
|
133
|
+
|
|
134
|
+
declare const NLLanguageHebrew: string
|
|
135
|
+
|
|
136
|
+
declare const NLLanguageTibetan: string
|
|
137
|
+
|
|
138
|
+
declare const NLLanguageBurmese: string
|
|
139
|
+
|
|
140
|
+
declare const NLLanguageGeorgian: string
|
|
141
|
+
|
|
142
|
+
declare const NLTagSchemeSentimentScore: string
|
|
143
|
+
|
|
144
|
+
declare const NLContextualEmbeddingKeyLanguages: string
|
|
145
|
+
|
|
146
|
+
declare const NLTagSchemeTokenType: string
|
|
147
|
+
|
|
148
|
+
declare const NLLanguagePunjabi: string
|
|
149
|
+
|
|
150
|
+
declare const NLTagCloseParenthesis: string
|
|
151
|
+
|
|
152
|
+
declare const NLTagAdverb: string
|
|
153
|
+
|
|
154
|
+
declare const NLTagOpenParenthesis: string
|
|
155
|
+
|
|
156
|
+
declare const NLTagAdjective: string
|
|
157
|
+
|
|
158
|
+
declare const NLLanguageFinnish: string
|
|
159
|
+
|
|
160
|
+
declare const NLTagOtherWhitespace: string
|
|
161
|
+
|
|
162
|
+
declare const NLTagOpenQuote: string
|
|
163
|
+
|
|
164
|
+
declare const NLTagParticle: string
|
|
165
|
+
|
|
166
|
+
declare const NLLanguageMongolian: string
|
|
167
|
+
|
|
168
|
+
declare const NLTagSchemeLanguage: string
|
|
169
|
+
|
|
170
|
+
declare const NLLanguageSlovak: string
|
|
171
|
+
|
|
172
|
+
declare const NLTagPersonalName: string
|
|
173
|
+
|
|
174
|
+
declare const NLTagDeterminer: string
|
|
175
|
+
|
|
176
|
+
declare const NLTagClassifier: string
|
|
177
|
+
|
|
178
|
+
declare const NLLanguageMalayalam: string
|
|
179
|
+
|
|
180
|
+
declare const NLTagSchemeLemma: string
|
|
181
|
+
|
|
182
|
+
declare const NLLanguageArmenian: string
|
|
183
|
+
|
|
184
|
+
declare const NLLanguageCatalan: string
|
|
185
|
+
|
|
186
|
+
declare const NLLanguageKannada: string
|
|
187
|
+
|
|
188
|
+
declare const NLLanguagePortuguese: string
|
|
189
|
+
|
|
190
|
+
declare const NLLanguageKhmer: string
|
|
191
|
+
|
|
192
|
+
declare const NLLanguageIcelandic: string
|
|
193
|
+
|
|
194
|
+
declare const NLLanguageItalian: string
|
|
195
|
+
|
|
196
|
+
declare const NLTagOther: string
|
|
197
|
+
|
|
198
|
+
declare const NLTagInterjection: string
|
|
199
|
+
|
|
200
|
+
declare const NLLanguageJapanese: string
|
|
201
|
+
|
|
202
|
+
declare const NLTaggerAssetsResult: {
|
|
203
|
+
Available: 0
|
|
204
|
+
NotAvailable: 1
|
|
205
|
+
Error: 2
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare const NLTaggerOptions: {
|
|
209
|
+
OmitWords: 1
|
|
210
|
+
OmitPunctuation: 2
|
|
211
|
+
OmitWhitespace: 4
|
|
212
|
+
OmitOther: 8
|
|
213
|
+
JoinNames: 16
|
|
214
|
+
JoinContractions: 32
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
declare const NLModelType: {
|
|
218
|
+
Classifier: 0
|
|
219
|
+
Sequence: 1
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare const NLTokenizerAttributes: {
|
|
223
|
+
Numeric: 1
|
|
224
|
+
Symbolic: 2
|
|
225
|
+
Emoji: 4
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare const NLDistanceType: {
|
|
229
|
+
NLDistanceTypeCosine: 0
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare const NLTokenUnit: {
|
|
233
|
+
Word: 0
|
|
234
|
+
Sentence: 1
|
|
235
|
+
Paragraph: 2
|
|
236
|
+
Document: 3
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare const NLContextualEmbeddingAssetsResult: {
|
|
240
|
+
Available: 0
|
|
241
|
+
NotAvailable: 1
|
|
242
|
+
Error: 2
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare class NLTagger extends NSObject {
|
|
246
|
+
initWithTagSchemes(tagSchemes: NSArray<interop.Object> | Array<interop.Object>): this
|
|
247
|
+
|
|
248
|
+
readonly tagSchemes: NSArray
|
|
249
|
+
|
|
250
|
+
string: string
|
|
251
|
+
|
|
252
|
+
static availableTagSchemesForUnitLanguage(
|
|
253
|
+
unit: interop.Enum<typeof NLTokenUnit>,
|
|
254
|
+
language: string,
|
|
255
|
+
): NSArray
|
|
256
|
+
|
|
257
|
+
tokenRangeAtIndexUnit(characterIndex: number, unit: interop.Enum<typeof NLTokenUnit>): _NSRange
|
|
258
|
+
|
|
259
|
+
tokenRangeForRangeUnit(range: _NSRange, unit: interop.Enum<typeof NLTokenUnit>): _NSRange
|
|
260
|
+
|
|
261
|
+
readonly dominantLanguage: string
|
|
262
|
+
|
|
263
|
+
enumerateTagsInRangeUnitSchemeOptionsUsingBlock(
|
|
264
|
+
range: _NSRange,
|
|
265
|
+
unit: interop.Enum<typeof NLTokenUnit>,
|
|
266
|
+
scheme: string,
|
|
267
|
+
options: interop.Enum<typeof NLTaggerOptions>,
|
|
268
|
+
block: (p1: string, p2: _NSRange, p3: interop.PointerConvertible) => void | null,
|
|
269
|
+
): void
|
|
270
|
+
|
|
271
|
+
tagAtIndexUnitSchemeTokenRange(
|
|
272
|
+
characterIndex: number,
|
|
273
|
+
unit: interop.Enum<typeof NLTokenUnit>,
|
|
274
|
+
scheme: string,
|
|
275
|
+
tokenRange: interop.PointerConvertible,
|
|
276
|
+
): string
|
|
277
|
+
|
|
278
|
+
tagsInRangeUnitSchemeOptionsTokenRanges(
|
|
279
|
+
range: _NSRange,
|
|
280
|
+
unit: interop.Enum<typeof NLTokenUnit>,
|
|
281
|
+
scheme: string,
|
|
282
|
+
options: interop.Enum<typeof NLTaggerOptions>,
|
|
283
|
+
tokenRanges: interop.PointerConvertible,
|
|
284
|
+
): NSArray
|
|
285
|
+
|
|
286
|
+
tagHypothesesAtIndexUnitSchemeMaximumCountTokenRange(
|
|
287
|
+
characterIndex: number,
|
|
288
|
+
unit: interop.Enum<typeof NLTokenUnit>,
|
|
289
|
+
scheme: string,
|
|
290
|
+
maximumCount: number,
|
|
291
|
+
tokenRange: interop.PointerConvertible,
|
|
292
|
+
): NSDictionary
|
|
293
|
+
|
|
294
|
+
setLanguageRange(language: string, range: _NSRange): void
|
|
295
|
+
|
|
296
|
+
setOrthographyRange(orthography: NSOrthography, range: _NSRange): void
|
|
297
|
+
|
|
298
|
+
setModelsForTagScheme(
|
|
299
|
+
models: NSArray<interop.Object> | Array<interop.Object>,
|
|
300
|
+
tagScheme: string,
|
|
301
|
+
): void
|
|
302
|
+
|
|
303
|
+
modelsForTagScheme(tagScheme: string): NSArray
|
|
304
|
+
|
|
305
|
+
setGazetteersForTagScheme(
|
|
306
|
+
gazetteers: NSArray<interop.Object> | Array<interop.Object>,
|
|
307
|
+
tagScheme: string,
|
|
308
|
+
): void
|
|
309
|
+
|
|
310
|
+
gazetteersForTagScheme(tagScheme: string): NSArray
|
|
311
|
+
|
|
312
|
+
static requestAssetsForLanguageTagSchemeCompletionHandler(
|
|
313
|
+
language: string,
|
|
314
|
+
tagScheme: string,
|
|
315
|
+
completionHandler: (p1: interop.Enum<typeof NLTaggerAssetsResult>, p2: NSError) => void | null,
|
|
316
|
+
): void
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare class NLModel extends NSObject {
|
|
320
|
+
static modelWithContentsOfURLError<This extends abstract new (...args: any) => any>(
|
|
321
|
+
this: This,
|
|
322
|
+
url: NSURL,
|
|
323
|
+
error: interop.PointerConvertible,
|
|
324
|
+
): InstanceType<This>
|
|
325
|
+
|
|
326
|
+
static modelWithMLModelError<This extends abstract new (...args: any) => any>(
|
|
327
|
+
this: This,
|
|
328
|
+
mlModel: MLModel,
|
|
329
|
+
error: interop.PointerConvertible,
|
|
330
|
+
): InstanceType<This>
|
|
331
|
+
|
|
332
|
+
readonly configuration: NLModelConfiguration
|
|
333
|
+
|
|
334
|
+
predictedLabelForString(string: string): string
|
|
335
|
+
|
|
336
|
+
predictedLabelsForTokens(tokens: NSArray<interop.Object> | Array<interop.Object>): NSArray
|
|
337
|
+
|
|
338
|
+
predictedLabelHypothesesForStringMaximumCount(string: string, maximumCount: number): NSDictionary
|
|
339
|
+
|
|
340
|
+
predictedLabelHypothesesForTokensMaximumCount(
|
|
341
|
+
tokens: NSArray<interop.Object> | Array<interop.Object>,
|
|
342
|
+
maximumCount: number,
|
|
343
|
+
): NSArray
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
declare class NLLanguageRecognizer extends NSObject {
|
|
347
|
+
static dominantLanguageForString(string: string): string
|
|
348
|
+
|
|
349
|
+
init(): this
|
|
350
|
+
|
|
351
|
+
processString(string: string): void
|
|
352
|
+
|
|
353
|
+
reset(): void
|
|
354
|
+
|
|
355
|
+
readonly dominantLanguage: string
|
|
356
|
+
|
|
357
|
+
languageHypothesesWithMaximum(maxHypotheses: number): NSDictionary
|
|
358
|
+
|
|
359
|
+
get languageHints(): NSDictionary
|
|
360
|
+
set languageHints(
|
|
361
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
get languageConstraints(): NSArray
|
|
365
|
+
set languageConstraints(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare class NLGazetteer extends NSObject {
|
|
369
|
+
static gazetteerWithContentsOfURLError<This extends abstract new (...args: any) => any>(
|
|
370
|
+
this: This,
|
|
371
|
+
url: NSURL,
|
|
372
|
+
error: interop.PointerConvertible,
|
|
373
|
+
): InstanceType<This>
|
|
374
|
+
|
|
375
|
+
initWithContentsOfURLError(url: NSURL, error: interop.PointerConvertible): this
|
|
376
|
+
|
|
377
|
+
initWithDataError(data: NSData, error: interop.PointerConvertible): this
|
|
378
|
+
|
|
379
|
+
initWithDictionaryLanguageError(
|
|
380
|
+
dictionary:
|
|
381
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
382
|
+
| Record<interop.Object, interop.Object>,
|
|
383
|
+
language: string | null,
|
|
384
|
+
error: interop.PointerConvertible,
|
|
385
|
+
): this
|
|
386
|
+
|
|
387
|
+
labelForString(string: string): string
|
|
388
|
+
|
|
389
|
+
readonly language: string
|
|
390
|
+
|
|
391
|
+
readonly data: NSData
|
|
392
|
+
|
|
393
|
+
static writeGazetteerForDictionaryLanguageToURLError(
|
|
394
|
+
dictionary:
|
|
395
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
396
|
+
| Record<interop.Object, interop.Object>,
|
|
397
|
+
language: string | null,
|
|
398
|
+
url: NSURL,
|
|
399
|
+
error: interop.PointerConvertible,
|
|
400
|
+
): boolean
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare class NLEmbedding extends NSObject {
|
|
404
|
+
static wordEmbeddingForLanguage(language: string): NLEmbedding
|
|
405
|
+
|
|
406
|
+
static wordEmbeddingForLanguageRevision(language: string, revision: number): NLEmbedding
|
|
407
|
+
|
|
408
|
+
static sentenceEmbeddingForLanguage(language: string): NLEmbedding
|
|
409
|
+
|
|
410
|
+
static sentenceEmbeddingForLanguageRevision(language: string, revision: number): NLEmbedding
|
|
411
|
+
|
|
412
|
+
static embeddingWithContentsOfURLError<This extends abstract new (...args: any) => any>(
|
|
413
|
+
this: This,
|
|
414
|
+
url: NSURL,
|
|
415
|
+
error: interop.PointerConvertible,
|
|
416
|
+
): InstanceType<This>
|
|
417
|
+
|
|
418
|
+
containsString(string: string): boolean
|
|
419
|
+
|
|
420
|
+
distanceBetweenStringAndStringDistanceType(
|
|
421
|
+
firstString: string,
|
|
422
|
+
secondString: string,
|
|
423
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
424
|
+
): number
|
|
425
|
+
|
|
426
|
+
enumerateNeighborsForStringMaximumCountDistanceTypeUsingBlock(
|
|
427
|
+
string: string,
|
|
428
|
+
maxCount: number,
|
|
429
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
430
|
+
block: (p1: string, p2: number, p3: interop.PointerConvertible) => void,
|
|
431
|
+
): void
|
|
432
|
+
|
|
433
|
+
enumerateNeighborsForStringMaximumCountMaximumDistanceDistanceTypeUsingBlock(
|
|
434
|
+
string: string,
|
|
435
|
+
maxCount: number,
|
|
436
|
+
maxDistance: number,
|
|
437
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
438
|
+
block: (p1: string, p2: number, p3: interop.PointerConvertible) => void,
|
|
439
|
+
): void
|
|
440
|
+
|
|
441
|
+
neighborsForStringMaximumCountDistanceType(
|
|
442
|
+
string: string,
|
|
443
|
+
maxCount: number,
|
|
444
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
445
|
+
): NSArray
|
|
446
|
+
|
|
447
|
+
neighborsForStringMaximumCountMaximumDistanceDistanceType(
|
|
448
|
+
string: string,
|
|
449
|
+
maxCount: number,
|
|
450
|
+
maxDistance: number,
|
|
451
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
452
|
+
): NSArray
|
|
453
|
+
|
|
454
|
+
vectorForString(string: string): NSArray
|
|
455
|
+
|
|
456
|
+
getVectorForString(vector: interop.PointerConvertible, string: string): boolean
|
|
457
|
+
|
|
458
|
+
enumerateNeighborsForVectorMaximumCountDistanceTypeUsingBlock(
|
|
459
|
+
vector: NSArray<interop.Object> | Array<interop.Object>,
|
|
460
|
+
maxCount: number,
|
|
461
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
462
|
+
block: (p1: string, p2: number, p3: interop.PointerConvertible) => void,
|
|
463
|
+
): void
|
|
464
|
+
|
|
465
|
+
enumerateNeighborsForVectorMaximumCountMaximumDistanceDistanceTypeUsingBlock(
|
|
466
|
+
vector: NSArray<interop.Object> | Array<interop.Object>,
|
|
467
|
+
maxCount: number,
|
|
468
|
+
maxDistance: number,
|
|
469
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
470
|
+
block: (p1: string, p2: number, p3: interop.PointerConvertible) => void,
|
|
471
|
+
): void
|
|
472
|
+
|
|
473
|
+
neighborsForVectorMaximumCountDistanceType(
|
|
474
|
+
vector: NSArray<interop.Object> | Array<interop.Object>,
|
|
475
|
+
maxCount: number,
|
|
476
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
477
|
+
): NSArray
|
|
478
|
+
|
|
479
|
+
neighborsForVectorMaximumCountMaximumDistanceDistanceType(
|
|
480
|
+
vector: NSArray<interop.Object> | Array<interop.Object>,
|
|
481
|
+
maxCount: number,
|
|
482
|
+
maxDistance: number,
|
|
483
|
+
distanceType: interop.Enum<typeof NLDistanceType>,
|
|
484
|
+
): NSArray
|
|
485
|
+
|
|
486
|
+
readonly dimension: number
|
|
487
|
+
|
|
488
|
+
readonly vocabularySize: number
|
|
489
|
+
|
|
490
|
+
readonly language: string
|
|
491
|
+
|
|
492
|
+
readonly revision: number
|
|
493
|
+
|
|
494
|
+
static supportedRevisionsForLanguage(language: string): NSIndexSet
|
|
495
|
+
|
|
496
|
+
static currentRevisionForLanguage(language: string): number
|
|
497
|
+
|
|
498
|
+
static supportedSentenceEmbeddingRevisionsForLanguage(language: string): NSIndexSet
|
|
499
|
+
|
|
500
|
+
static currentSentenceEmbeddingRevisionForLanguage(language: string): number
|
|
501
|
+
|
|
502
|
+
static writeEmbeddingForDictionaryLanguageRevisionToURLError(
|
|
503
|
+
dictionary:
|
|
504
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
505
|
+
| Record<interop.Object, interop.Object>,
|
|
506
|
+
language: string | null,
|
|
507
|
+
revision: number,
|
|
508
|
+
url: NSURL,
|
|
509
|
+
error: interop.PointerConvertible,
|
|
510
|
+
): boolean
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
declare class NLTokenizer extends NSObject {
|
|
514
|
+
initWithUnit(unit: interop.Enum<typeof NLTokenUnit>): this
|
|
515
|
+
|
|
516
|
+
readonly unit: interop.Enum<typeof NLTokenUnit>
|
|
517
|
+
|
|
518
|
+
string: string
|
|
519
|
+
|
|
520
|
+
setLanguage(language: string): void
|
|
521
|
+
|
|
522
|
+
tokenRangeAtIndex(characterIndex: number): _NSRange
|
|
523
|
+
|
|
524
|
+
tokenRangeForRange(range: _NSRange): _NSRange
|
|
525
|
+
|
|
526
|
+
tokensForRange(range: _NSRange): NSArray
|
|
527
|
+
|
|
528
|
+
enumerateTokensInRangeUsingBlock(
|
|
529
|
+
range: _NSRange,
|
|
530
|
+
block: (
|
|
531
|
+
p1: _NSRange,
|
|
532
|
+
p2: interop.Enum<typeof NLTokenizerAttributes>,
|
|
533
|
+
p3: interop.PointerConvertible,
|
|
534
|
+
) => void,
|
|
535
|
+
): void
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
declare class NLModelConfiguration extends NSObject implements NSCopying, NSSecureCoding {
|
|
539
|
+
readonly type: interop.Enum<typeof NLModelType>
|
|
540
|
+
|
|
541
|
+
readonly language: string
|
|
542
|
+
|
|
543
|
+
readonly revision: number
|
|
544
|
+
|
|
545
|
+
static supportedRevisionsForType(type: interop.Enum<typeof NLModelType>): NSIndexSet
|
|
546
|
+
|
|
547
|
+
static currentRevisionForType(type: interop.Enum<typeof NLModelType>): number
|
|
548
|
+
|
|
549
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
550
|
+
|
|
551
|
+
static readonly supportsSecureCoding: boolean
|
|
552
|
+
|
|
553
|
+
encodeWithCoder(coder: NSCoder): void
|
|
554
|
+
|
|
555
|
+
initWithCoder(coder: NSCoder): this
|
|
556
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
|
|
3
|
+
declare const NIAlgorithmConvergenceStatus: {
|
|
4
|
+
Unknown: 0
|
|
5
|
+
NotConverged: 1
|
|
6
|
+
Converged: 2
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare const NIDLTDOAMeasurementType: {
|
|
10
|
+
Poll: 0
|
|
11
|
+
Response: 1
|
|
12
|
+
Final: 2
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const NIDLTDOACoordinatesType: {
|
|
16
|
+
Geodetic: 0
|
|
17
|
+
Relative: 1
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const NINearbyObjectVerticalDirectionEstimate: {
|
|
21
|
+
Unknown: 0
|
|
22
|
+
Same: 1
|
|
23
|
+
Above: 2
|
|
24
|
+
Below: 3
|
|
25
|
+
AboveOrBelow: 4
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const NIDLTDOADiscoveryMethod: {
|
|
29
|
+
WiFi: 0
|
|
30
|
+
BluetoothLowEnergy: 1
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const NINearbyObjectRemovalReason: {
|
|
34
|
+
Timeout: 0
|
|
35
|
+
PeerEnded: 1
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const NIMotionActivityState: {
|
|
39
|
+
Unknown: 0
|
|
40
|
+
Stationary: 1
|
|
41
|
+
Moving: 2
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare const NIErrorCode: {
|
|
45
|
+
UnsupportedPlatform: -5889
|
|
46
|
+
InvalidConfiguration: -5888
|
|
47
|
+
SessionFailed: -5887
|
|
48
|
+
ResourceUsageTimeout: -5886
|
|
49
|
+
ActiveSessionsLimitExceeded: -5885
|
|
50
|
+
UserDidNotAllow: -5884
|
|
51
|
+
}
|
package/types/NetFS.d.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
|
|
3
|
+
declare class NetFSInterface {
|
|
4
|
+
constructor(init?: NetFSInterface)
|
|
5
|
+
_interface: interop.Pointer
|
|
6
|
+
_factoryID: interop.Object | null
|
|
7
|
+
_refCount: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class NetFSMountInterface_V1 {
|
|
11
|
+
constructor(init?: NetFSMountInterface_V1)
|
|
12
|
+
_reserved: interop.Pointer
|
|
13
|
+
QueryInterface: (
|
|
14
|
+
p1: interop.PointerConvertible,
|
|
15
|
+
p2: CFUUIDBytes,
|
|
16
|
+
p3: interop.PointerConvertible,
|
|
17
|
+
) => number | null
|
|
18
|
+
AddRef: (p1: interop.PointerConvertible) => number | null
|
|
19
|
+
Release: (p1: interop.PointerConvertible) => number | null
|
|
20
|
+
CreateSessionRef: (p1: interop.PointerConvertible) => number | null
|
|
21
|
+
GetServerInfo: (
|
|
22
|
+
p1: interop.PointerConvertible,
|
|
23
|
+
p2: interop.PointerConvertible,
|
|
24
|
+
p3: interop.PointerConvertible,
|
|
25
|
+
p4: interop.PointerConvertible,
|
|
26
|
+
) => number | null
|
|
27
|
+
ParseURL: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => number | null
|
|
28
|
+
CreateURL: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => number | null
|
|
29
|
+
OpenSession: (
|
|
30
|
+
p1: interop.PointerConvertible,
|
|
31
|
+
p2: interop.PointerConvertible,
|
|
32
|
+
p3: interop.PointerConvertible,
|
|
33
|
+
p4: interop.PointerConvertible,
|
|
34
|
+
) => number | null
|
|
35
|
+
EnumerateShares: (
|
|
36
|
+
p1: interop.PointerConvertible,
|
|
37
|
+
p2: interop.PointerConvertible,
|
|
38
|
+
p3: interop.PointerConvertible,
|
|
39
|
+
) => number | null
|
|
40
|
+
Mount: (
|
|
41
|
+
p1: interop.PointerConvertible,
|
|
42
|
+
p2: interop.PointerConvertible,
|
|
43
|
+
p3: interop.PointerConvertible,
|
|
44
|
+
p4: interop.PointerConvertible,
|
|
45
|
+
p5: interop.PointerConvertible,
|
|
46
|
+
) => number | null
|
|
47
|
+
Cancel: (p1: interop.PointerConvertible) => number | null
|
|
48
|
+
CloseSession: (p1: interop.PointerConvertible) => number | null
|
|
49
|
+
GetMountInfo: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => number | null
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare function NetFSMountURLSync(
|
|
53
|
+
url: interop.Object,
|
|
54
|
+
mountpath: interop.Object,
|
|
55
|
+
user: interop.Object,
|
|
56
|
+
passwd: interop.Object,
|
|
57
|
+
open_options: interop.Object,
|
|
58
|
+
mount_options: interop.Object,
|
|
59
|
+
mountpoints: interop.PointerConvertible,
|
|
60
|
+
): number
|
|
61
|
+
|
|
62
|
+
declare function NetFSMountURLAsync(
|
|
63
|
+
url: interop.Object,
|
|
64
|
+
mountpath: interop.Object,
|
|
65
|
+
user: interop.Object,
|
|
66
|
+
passwd: interop.Object,
|
|
67
|
+
open_options: interop.Object,
|
|
68
|
+
mount_options: interop.Object,
|
|
69
|
+
requestID: interop.PointerConvertible,
|
|
70
|
+
dispatchq: NSObject,
|
|
71
|
+
mount_report: (
|
|
72
|
+
p1: number,
|
|
73
|
+
p2: interop.PointerConvertible,
|
|
74
|
+
p3: interop.PointerConvertible,
|
|
75
|
+
) => void,
|
|
76
|
+
): number
|
|
77
|
+
|
|
78
|
+
declare function NetFSMountURLCancel(requestID: interop.PointerConvertible): number
|
|
79
|
+
|
|
80
|
+
declare function NetFSMountURLProbe(hostname: interop.Object): interop.Object
|
|
81
|
+
|
|
82
|
+
declare function NetFSCopyURLForRemountingVolume(localPathURL: interop.Object): interop.Object
|
|
83
|
+
|
|
84
|
+
declare function NetFSInterface_AddRef(p1: interop.PointerConvertible): number
|
|
85
|
+
|
|
86
|
+
declare function NetFSInterface_Release(p1: interop.PointerConvertible): number
|
|
87
|
+
|
|
88
|
+
declare function NetFS_CreateInterface(
|
|
89
|
+
factoryID: interop.Object,
|
|
90
|
+
interfaceFTbl: interop.PointerConvertible,
|
|
91
|
+
): interop.Pointer
|
|
92
|
+
|
|
93
|
+
declare function NetFSQueryInterface(
|
|
94
|
+
p1: interop.PointerConvertible,
|
|
95
|
+
iid: CFUUIDBytes,
|
|
96
|
+
ppv: interop.PointerConvertible,
|
|
97
|
+
): number
|
|
98
|
+
|
|
99
|
+
declare function NetFSCFStringtoCString(p1: interop.Object): string
|