@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,306 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./AppKit.d.ts" />
|
|
3
|
+
/// <reference path="./Runtime.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const SLServiceTypeLinkedIn: string
|
|
6
|
+
|
|
7
|
+
declare const SLServiceTypeTencentWeibo: string
|
|
8
|
+
|
|
9
|
+
declare const SLServiceTypeSinaWeibo: string
|
|
10
|
+
|
|
11
|
+
declare const SLServiceTypeTwitter: string
|
|
12
|
+
|
|
13
|
+
declare const SLServiceTypeFacebook: string
|
|
14
|
+
|
|
15
|
+
declare const SLRequestMethod: {
|
|
16
|
+
GET: 0
|
|
17
|
+
POST: 1
|
|
18
|
+
DELETE: 2
|
|
19
|
+
PUT: 3
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class SLComposeServiceViewController
|
|
23
|
+
extends NSViewController
|
|
24
|
+
implements NSTextViewDelegate
|
|
25
|
+
{
|
|
26
|
+
presentationAnimationDidFinish(): void
|
|
27
|
+
|
|
28
|
+
readonly textView: NSTextView
|
|
29
|
+
|
|
30
|
+
readonly contentText: string
|
|
31
|
+
|
|
32
|
+
placeholder: string
|
|
33
|
+
|
|
34
|
+
didSelectPost(): void
|
|
35
|
+
|
|
36
|
+
didSelectCancel(): void
|
|
37
|
+
|
|
38
|
+
cancel(): void
|
|
39
|
+
|
|
40
|
+
isContentValid(): boolean
|
|
41
|
+
|
|
42
|
+
validateContent(): void
|
|
43
|
+
|
|
44
|
+
charactersRemaining: NSNumber
|
|
45
|
+
|
|
46
|
+
textViewClickedOnLinkAtIndex(
|
|
47
|
+
textView: NSTextView,
|
|
48
|
+
link: interop.Object,
|
|
49
|
+
charIndex: number,
|
|
50
|
+
): boolean
|
|
51
|
+
|
|
52
|
+
textViewClickedOnCellInRectAtIndex(
|
|
53
|
+
textView: NSTextView,
|
|
54
|
+
cell: NSTextAttachmentCell,
|
|
55
|
+
cellFrame: CGRect,
|
|
56
|
+
charIndex: number,
|
|
57
|
+
): void
|
|
58
|
+
|
|
59
|
+
textViewDoubleClickedOnCellInRectAtIndex(
|
|
60
|
+
textView: NSTextView,
|
|
61
|
+
cell: NSTextAttachmentCell,
|
|
62
|
+
cellFrame: CGRect,
|
|
63
|
+
charIndex: number,
|
|
64
|
+
): void
|
|
65
|
+
|
|
66
|
+
textViewDraggedCellInRectEventAtIndex(
|
|
67
|
+
view: NSTextView,
|
|
68
|
+
cell: NSTextAttachmentCell,
|
|
69
|
+
rect: CGRect,
|
|
70
|
+
event: NSEvent,
|
|
71
|
+
charIndex: number,
|
|
72
|
+
): void
|
|
73
|
+
|
|
74
|
+
textViewWritablePasteboardTypesForCellAtIndex(
|
|
75
|
+
view: NSTextView,
|
|
76
|
+
cell: NSTextAttachmentCell,
|
|
77
|
+
charIndex: number,
|
|
78
|
+
): NSArray
|
|
79
|
+
|
|
80
|
+
textViewWriteCellAtIndexToPasteboardType(
|
|
81
|
+
view: NSTextView,
|
|
82
|
+
cell: NSTextAttachmentCell,
|
|
83
|
+
charIndex: number,
|
|
84
|
+
pboard: NSPasteboard,
|
|
85
|
+
type: string,
|
|
86
|
+
): boolean
|
|
87
|
+
|
|
88
|
+
textViewWillChangeSelectionFromCharacterRangeToCharacterRange(
|
|
89
|
+
textView: NSTextView,
|
|
90
|
+
oldSelectedCharRange: _NSRange,
|
|
91
|
+
newSelectedCharRange: _NSRange,
|
|
92
|
+
): _NSRange
|
|
93
|
+
|
|
94
|
+
textViewWillChangeSelectionFromCharacterRangesToCharacterRanges(
|
|
95
|
+
textView: NSTextView,
|
|
96
|
+
oldSelectedCharRanges: NSArray<interop.Object> | Array<interop.Object>,
|
|
97
|
+
newSelectedCharRanges: NSArray<interop.Object> | Array<interop.Object>,
|
|
98
|
+
): NSArray
|
|
99
|
+
|
|
100
|
+
textViewShouldChangeTextInRangesReplacementStrings(
|
|
101
|
+
textView: NSTextView,
|
|
102
|
+
affectedRanges: NSArray<interop.Object> | Array<interop.Object>,
|
|
103
|
+
replacementStrings: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
104
|
+
): boolean
|
|
105
|
+
|
|
106
|
+
textViewShouldChangeTypingAttributesToAttributes(
|
|
107
|
+
textView: NSTextView,
|
|
108
|
+
oldTypingAttributes:
|
|
109
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
110
|
+
| Record<interop.Object, interop.Object>,
|
|
111
|
+
newTypingAttributes:
|
|
112
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
113
|
+
| Record<interop.Object, interop.Object>,
|
|
114
|
+
): NSDictionary
|
|
115
|
+
|
|
116
|
+
textViewDidChangeSelection(notification: NSNotification): void
|
|
117
|
+
|
|
118
|
+
textViewDidChangeTypingAttributes(notification: NSNotification): void
|
|
119
|
+
|
|
120
|
+
textViewWillDisplayToolTipForCharacterAtIndex(
|
|
121
|
+
textView: NSTextView,
|
|
122
|
+
tooltip: string,
|
|
123
|
+
characterIndex: number,
|
|
124
|
+
): string
|
|
125
|
+
|
|
126
|
+
textViewCompletionsForPartialWordRangeIndexOfSelectedItem(
|
|
127
|
+
textView: NSTextView,
|
|
128
|
+
words: NSArray<interop.Object> | Array<interop.Object>,
|
|
129
|
+
charRange: _NSRange,
|
|
130
|
+
index: interop.PointerConvertible,
|
|
131
|
+
): NSArray
|
|
132
|
+
|
|
133
|
+
textViewShouldChangeTextInRangeReplacementString(
|
|
134
|
+
textView: NSTextView,
|
|
135
|
+
affectedCharRange: _NSRange,
|
|
136
|
+
replacementString: string | null,
|
|
137
|
+
): boolean
|
|
138
|
+
|
|
139
|
+
textViewDoCommandBySelector(textView: NSTextView, commandSelector: string): boolean
|
|
140
|
+
|
|
141
|
+
textViewShouldSetSpellingStateRange(
|
|
142
|
+
textView: NSTextView,
|
|
143
|
+
value: number,
|
|
144
|
+
affectedCharRange: _NSRange,
|
|
145
|
+
): number
|
|
146
|
+
|
|
147
|
+
textViewMenuForEventAtIndex(
|
|
148
|
+
view: NSTextView,
|
|
149
|
+
menu: NSMenu,
|
|
150
|
+
event: NSEvent,
|
|
151
|
+
charIndex: number,
|
|
152
|
+
): NSMenu
|
|
153
|
+
|
|
154
|
+
textViewWillCheckTextInRangeOptionsTypes(
|
|
155
|
+
view: NSTextView,
|
|
156
|
+
range: _NSRange,
|
|
157
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
158
|
+
checkingTypes: interop.PointerConvertible,
|
|
159
|
+
): NSDictionary
|
|
160
|
+
|
|
161
|
+
textViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount(
|
|
162
|
+
view: NSTextView,
|
|
163
|
+
range: _NSRange,
|
|
164
|
+
checkingTypes: number,
|
|
165
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
166
|
+
results: NSArray<interop.Object> | Array<interop.Object>,
|
|
167
|
+
orthography: NSOrthography,
|
|
168
|
+
wordCount: number,
|
|
169
|
+
): NSArray
|
|
170
|
+
|
|
171
|
+
textViewURLForContentsOfTextAttachmentAtIndex(
|
|
172
|
+
textView: NSTextView,
|
|
173
|
+
textAttachment: NSTextAttachment,
|
|
174
|
+
charIndex: number,
|
|
175
|
+
): NSURL
|
|
176
|
+
|
|
177
|
+
textViewWillShowSharingServicePickerForItems(
|
|
178
|
+
textView: NSTextView,
|
|
179
|
+
servicePicker: NSSharingServicePicker,
|
|
180
|
+
items: NSArray<interop.Object> | Array<interop.Object>,
|
|
181
|
+
): NSSharingServicePicker
|
|
182
|
+
|
|
183
|
+
undoManagerForTextView(view: NSTextView): NSUndoManager
|
|
184
|
+
|
|
185
|
+
textViewShouldUpdateTouchBarItemIdentifiers(
|
|
186
|
+
textView: NSTextView,
|
|
187
|
+
identifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
188
|
+
): NSArray
|
|
189
|
+
|
|
190
|
+
textViewCandidatesForSelectedRange(textView: NSTextView, selectedRange: _NSRange): NSArray
|
|
191
|
+
|
|
192
|
+
textViewCandidatesForSelectedRange(
|
|
193
|
+
textView: NSTextView,
|
|
194
|
+
candidates: NSArray<interop.Object> | Array<interop.Object>,
|
|
195
|
+
selectedRange: _NSRange,
|
|
196
|
+
): NSArray
|
|
197
|
+
|
|
198
|
+
textViewShouldSelectCandidateAtIndex(textView: NSTextView, index: number): boolean
|
|
199
|
+
|
|
200
|
+
textViewClickedOnLink(textView: NSTextView, link: interop.Object): boolean
|
|
201
|
+
|
|
202
|
+
textViewClickedOnCellInRect(
|
|
203
|
+
textView: NSTextView,
|
|
204
|
+
cell: NSTextAttachmentCell,
|
|
205
|
+
cellFrame: CGRect,
|
|
206
|
+
): void
|
|
207
|
+
|
|
208
|
+
textViewDoubleClickedOnCellInRect(
|
|
209
|
+
textView: NSTextView,
|
|
210
|
+
cell: NSTextAttachmentCell,
|
|
211
|
+
cellFrame: CGRect,
|
|
212
|
+
): void
|
|
213
|
+
|
|
214
|
+
textViewDraggedCellInRectEvent(
|
|
215
|
+
view: NSTextView,
|
|
216
|
+
cell: NSTextAttachmentCell,
|
|
217
|
+
rect: CGRect,
|
|
218
|
+
event: NSEvent,
|
|
219
|
+
): void
|
|
220
|
+
|
|
221
|
+
textShouldBeginEditing(textObject: NSText): boolean
|
|
222
|
+
|
|
223
|
+
textShouldEndEditing(textObject: NSText): boolean
|
|
224
|
+
|
|
225
|
+
textDidBeginEditing(notification: NSNotification): void
|
|
226
|
+
|
|
227
|
+
textDidEndEditing(notification: NSNotification): void
|
|
228
|
+
|
|
229
|
+
textDidChange(notification: NSNotification): void
|
|
230
|
+
|
|
231
|
+
isEqual(object: interop.Object): boolean
|
|
232
|
+
|
|
233
|
+
readonly hash: number
|
|
234
|
+
|
|
235
|
+
readonly superclass: interop.Pointer
|
|
236
|
+
|
|
237
|
+
class(): interop.Pointer
|
|
238
|
+
|
|
239
|
+
self(): this
|
|
240
|
+
|
|
241
|
+
performSelector(aSelector: string): interop.Object
|
|
242
|
+
|
|
243
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
244
|
+
|
|
245
|
+
performSelectorWithObjectWithObject(
|
|
246
|
+
aSelector: string,
|
|
247
|
+
object1: interop.Object,
|
|
248
|
+
object2: interop.Object,
|
|
249
|
+
): interop.Object
|
|
250
|
+
|
|
251
|
+
readonly isProxy: boolean
|
|
252
|
+
|
|
253
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
254
|
+
|
|
255
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
256
|
+
|
|
257
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
258
|
+
|
|
259
|
+
respondsToSelector(aSelector: string): boolean
|
|
260
|
+
|
|
261
|
+
retain(): this
|
|
262
|
+
|
|
263
|
+
release(): void
|
|
264
|
+
|
|
265
|
+
autorelease(): this
|
|
266
|
+
|
|
267
|
+
retainCount(): number
|
|
268
|
+
|
|
269
|
+
readonly zone: interop.Pointer
|
|
270
|
+
|
|
271
|
+
readonly description: string
|
|
272
|
+
|
|
273
|
+
readonly debugDescription: string
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare class SLRequest extends NSObject {
|
|
277
|
+
static requestForServiceTypeRequestMethodURLParameters(
|
|
278
|
+
serviceType: string,
|
|
279
|
+
requestMethod: interop.Enum<typeof SLRequestMethod>,
|
|
280
|
+
url: NSURL,
|
|
281
|
+
parameters:
|
|
282
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
283
|
+
| Record<interop.Object, interop.Object>,
|
|
284
|
+
): SLRequest
|
|
285
|
+
|
|
286
|
+
account: ACAccount
|
|
287
|
+
|
|
288
|
+
readonly requestMethod: interop.Enum<typeof SLRequestMethod>
|
|
289
|
+
|
|
290
|
+
readonly URL: NSURL
|
|
291
|
+
|
|
292
|
+
readonly parameters: NSDictionary
|
|
293
|
+
|
|
294
|
+
addMultipartDataWithNameTypeFilename(
|
|
295
|
+
data: NSData,
|
|
296
|
+
name: string,
|
|
297
|
+
type: string,
|
|
298
|
+
filename: string,
|
|
299
|
+
): void
|
|
300
|
+
|
|
301
|
+
addMultipartDataWithNameType(data: NSData, name: string, type: string): void
|
|
302
|
+
|
|
303
|
+
preparedURLRequest(): NSURLRequest
|
|
304
|
+
|
|
305
|
+
performRequestWithHandler(handler: (p1: NSData, p2: NSHTTPURLResponse, p3: NSError) => void): void
|
|
306
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const SNErrorDomain: string
|
|
5
|
+
|
|
6
|
+
declare const SNErrorCode: {
|
|
7
|
+
UnknownError: 1
|
|
8
|
+
OperationFailed: 2
|
|
9
|
+
InvalidFormat: 3
|
|
10
|
+
InvalidModel: 4
|
|
11
|
+
InvalidFile: 5
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare interface SNResultsObserving extends NSObjectProtocol {
|
|
15
|
+
requestDidProduceResult(request: SNRequest, result: SNResult): void
|
|
16
|
+
|
|
17
|
+
requestDidFailWithError?(request: SNRequest, error: NSError): void
|
|
18
|
+
|
|
19
|
+
requestDidComplete?(request: SNRequest): void
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class SNResultsObserving extends NativeObject implements SNResultsObserving {}
|
|
23
|
+
|
|
24
|
+
declare interface SNResult extends NSObjectProtocol {}
|
|
25
|
+
|
|
26
|
+
declare class SNResult extends NativeObject implements SNResult {}
|
|
27
|
+
|
|
28
|
+
declare interface SNRequest extends NSObjectProtocol {}
|
|
29
|
+
|
|
30
|
+
declare class SNRequest extends NativeObject implements SNRequest {}
|
|
31
|
+
|
|
32
|
+
declare class SNClassificationResult extends NSObject implements SNResult {
|
|
33
|
+
readonly classifications: NSArray
|
|
34
|
+
|
|
35
|
+
readonly timeRange: CMTimeRange
|
|
36
|
+
|
|
37
|
+
isEqual(object: interop.Object): boolean
|
|
38
|
+
|
|
39
|
+
readonly hash: number
|
|
40
|
+
|
|
41
|
+
readonly superclass: interop.Pointer
|
|
42
|
+
|
|
43
|
+
class(): interop.Pointer
|
|
44
|
+
|
|
45
|
+
self(): this
|
|
46
|
+
|
|
47
|
+
performSelector(aSelector: string): interop.Object
|
|
48
|
+
|
|
49
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
50
|
+
|
|
51
|
+
performSelectorWithObjectWithObject(
|
|
52
|
+
aSelector: string,
|
|
53
|
+
object1: interop.Object,
|
|
54
|
+
object2: interop.Object,
|
|
55
|
+
): interop.Object
|
|
56
|
+
|
|
57
|
+
readonly isProxy: boolean
|
|
58
|
+
|
|
59
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
60
|
+
|
|
61
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
62
|
+
|
|
63
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
64
|
+
|
|
65
|
+
respondsToSelector(aSelector: string): boolean
|
|
66
|
+
|
|
67
|
+
retain(): this
|
|
68
|
+
|
|
69
|
+
release(): void
|
|
70
|
+
|
|
71
|
+
autorelease(): this
|
|
72
|
+
|
|
73
|
+
retainCount(): number
|
|
74
|
+
|
|
75
|
+
readonly zone: interop.Pointer
|
|
76
|
+
|
|
77
|
+
readonly description: string
|
|
78
|
+
|
|
79
|
+
readonly debugDescription: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare class SNClassification extends NSObject {
|
|
83
|
+
readonly identifier: string
|
|
84
|
+
|
|
85
|
+
readonly confidence: number
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class SNClassifySoundRequest extends NSObject implements SNRequest {
|
|
89
|
+
overlapFactor: number
|
|
90
|
+
|
|
91
|
+
initWithMLModelError(mlModel: MLModel, error: interop.PointerConvertible): this
|
|
92
|
+
|
|
93
|
+
isEqual(object: interop.Object): boolean
|
|
94
|
+
|
|
95
|
+
readonly hash: number
|
|
96
|
+
|
|
97
|
+
readonly superclass: interop.Pointer
|
|
98
|
+
|
|
99
|
+
class(): interop.Pointer
|
|
100
|
+
|
|
101
|
+
self(): this
|
|
102
|
+
|
|
103
|
+
performSelector(aSelector: string): interop.Object
|
|
104
|
+
|
|
105
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
106
|
+
|
|
107
|
+
performSelectorWithObjectWithObject(
|
|
108
|
+
aSelector: string,
|
|
109
|
+
object1: interop.Object,
|
|
110
|
+
object2: interop.Object,
|
|
111
|
+
): interop.Object
|
|
112
|
+
|
|
113
|
+
readonly isProxy: boolean
|
|
114
|
+
|
|
115
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
116
|
+
|
|
117
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
118
|
+
|
|
119
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
120
|
+
|
|
121
|
+
respondsToSelector(aSelector: string): boolean
|
|
122
|
+
|
|
123
|
+
retain(): this
|
|
124
|
+
|
|
125
|
+
release(): void
|
|
126
|
+
|
|
127
|
+
autorelease(): this
|
|
128
|
+
|
|
129
|
+
retainCount(): number
|
|
130
|
+
|
|
131
|
+
readonly zone: interop.Pointer
|
|
132
|
+
|
|
133
|
+
readonly description: string
|
|
134
|
+
|
|
135
|
+
readonly debugDescription: string
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare class SNAudioFileAnalyzer extends NSObject {
|
|
139
|
+
initWithURLError(url: NSURL, error: interop.PointerConvertible): this
|
|
140
|
+
|
|
141
|
+
addRequestWithObserverError(
|
|
142
|
+
request: SNRequest,
|
|
143
|
+
observer: SNResultsObserving,
|
|
144
|
+
error: interop.PointerConvertible,
|
|
145
|
+
): boolean
|
|
146
|
+
|
|
147
|
+
removeRequest(request: SNRequest): void
|
|
148
|
+
|
|
149
|
+
removeAllRequests(): void
|
|
150
|
+
|
|
151
|
+
analyze(): void
|
|
152
|
+
|
|
153
|
+
analyzeWithCompletionHandler(completionHandler: (p1: boolean) => void): void
|
|
154
|
+
|
|
155
|
+
cancelAnalysis(): void
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare class SNAudioStreamAnalyzer extends NSObject {
|
|
159
|
+
initWithFormat(format: AVAudioFormat): this
|
|
160
|
+
|
|
161
|
+
addRequestWithObserverError(
|
|
162
|
+
request: SNRequest,
|
|
163
|
+
observer: SNResultsObserving,
|
|
164
|
+
error: interop.PointerConvertible,
|
|
165
|
+
): boolean
|
|
166
|
+
|
|
167
|
+
removeRequest(request: SNRequest): void
|
|
168
|
+
|
|
169
|
+
removeAllRequests(): void
|
|
170
|
+
|
|
171
|
+
analyzeAudioBufferAtAudioFramePosition(
|
|
172
|
+
audioBuffer: AVAudioBuffer,
|
|
173
|
+
audioFramePosition: number,
|
|
174
|
+
): void
|
|
175
|
+
|
|
176
|
+
completeAnalysis(): void
|
|
177
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const SFSpeechRecognitionTaskHint: {
|
|
5
|
+
Unspecified: 0
|
|
6
|
+
Dictation: 1
|
|
7
|
+
Search: 2
|
|
8
|
+
Confirmation: 3
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const SFSpeechRecognitionTaskState: {
|
|
12
|
+
Starting: 0
|
|
13
|
+
Running: 1
|
|
14
|
+
Finishing: 2
|
|
15
|
+
Canceling: 3
|
|
16
|
+
Completed: 4
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const SFSpeechRecognizerAuthorizationStatus: {
|
|
20
|
+
NotDetermined: 0
|
|
21
|
+
Denied: 1
|
|
22
|
+
Restricted: 2
|
|
23
|
+
Authorized: 3
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare interface SFSpeechRecognizerDelegate extends NSObjectProtocol {
|
|
27
|
+
speechRecognizerAvailabilityDidChange?(
|
|
28
|
+
speechRecognizer: SFSpeechRecognizer,
|
|
29
|
+
available: boolean,
|
|
30
|
+
): void
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class SFSpeechRecognizerDelegate
|
|
34
|
+
extends NativeObject
|
|
35
|
+
implements SFSpeechRecognizerDelegate {}
|
|
36
|
+
|
|
37
|
+
declare interface SFSpeechRecognitionTaskDelegate extends NSObjectProtocol {
|
|
38
|
+
speechRecognitionDidDetectSpeech?(task: SFSpeechRecognitionTask): void
|
|
39
|
+
|
|
40
|
+
speechRecognitionTaskDidHypothesizeTranscription?(
|
|
41
|
+
task: SFSpeechRecognitionTask,
|
|
42
|
+
transcription: SFTranscription,
|
|
43
|
+
): void
|
|
44
|
+
|
|
45
|
+
speechRecognitionTaskDidFinishRecognition?(
|
|
46
|
+
task: SFSpeechRecognitionTask,
|
|
47
|
+
recognitionResult: SFSpeechRecognitionResult,
|
|
48
|
+
): void
|
|
49
|
+
|
|
50
|
+
speechRecognitionTaskFinishedReadingAudio?(task: SFSpeechRecognitionTask): void
|
|
51
|
+
|
|
52
|
+
speechRecognitionTaskWasCancelled?(task: SFSpeechRecognitionTask): void
|
|
53
|
+
|
|
54
|
+
speechRecognitionTaskDidFinishSuccessfully?(
|
|
55
|
+
task: SFSpeechRecognitionTask,
|
|
56
|
+
successfully: boolean,
|
|
57
|
+
): void
|
|
58
|
+
|
|
59
|
+
speechRecognitionTaskDidProcessAudioDuration?(
|
|
60
|
+
task: SFSpeechRecognitionTask,
|
|
61
|
+
duration: number,
|
|
62
|
+
): void
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class SFSpeechRecognitionTaskDelegate
|
|
66
|
+
extends NativeObject
|
|
67
|
+
implements SFSpeechRecognitionTaskDelegate {}
|
|
68
|
+
|
|
69
|
+
declare class SFAcousticFeature extends NSObject implements NSCopying, NSSecureCoding {
|
|
70
|
+
readonly acousticFeatureValuePerFrame: NSArray
|
|
71
|
+
|
|
72
|
+
readonly frameDuration: number
|
|
73
|
+
|
|
74
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
75
|
+
|
|
76
|
+
static readonly supportsSecureCoding: boolean
|
|
77
|
+
|
|
78
|
+
encodeWithCoder(coder: NSCoder): void
|
|
79
|
+
|
|
80
|
+
initWithCoder(coder: NSCoder): this
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class SFTranscription extends NSObject implements NSCopying, NSSecureCoding {
|
|
84
|
+
readonly formattedString: string
|
|
85
|
+
|
|
86
|
+
readonly segments: NSArray
|
|
87
|
+
|
|
88
|
+
readonly speakingRate: number
|
|
89
|
+
|
|
90
|
+
readonly averagePauseDuration: number
|
|
91
|
+
|
|
92
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
93
|
+
|
|
94
|
+
static readonly supportsSecureCoding: boolean
|
|
95
|
+
|
|
96
|
+
encodeWithCoder(coder: NSCoder): void
|
|
97
|
+
|
|
98
|
+
initWithCoder(coder: NSCoder): this
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class SFSpeechURLRecognitionRequest extends SFSpeechRecognitionRequest {
|
|
102
|
+
initWithURL(URL: NSURL): this
|
|
103
|
+
|
|
104
|
+
readonly URL: NSURL
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class SFSpeechRecognizer extends NSObject {
|
|
108
|
+
static supportedLocales(): NSSet
|
|
109
|
+
|
|
110
|
+
static authorizationStatus(): interop.Enum<typeof SFSpeechRecognizerAuthorizationStatus>
|
|
111
|
+
|
|
112
|
+
static requestAuthorization(
|
|
113
|
+
handler: (p1: interop.Enum<typeof SFSpeechRecognizerAuthorizationStatus>) => void,
|
|
114
|
+
): void
|
|
115
|
+
|
|
116
|
+
init(): this
|
|
117
|
+
|
|
118
|
+
initWithLocale(locale: NSLocale): this
|
|
119
|
+
|
|
120
|
+
readonly available: boolean
|
|
121
|
+
|
|
122
|
+
readonly locale: NSLocale
|
|
123
|
+
|
|
124
|
+
supportsOnDeviceRecognition: boolean
|
|
125
|
+
|
|
126
|
+
delegate: SFSpeechRecognizerDelegate | null
|
|
127
|
+
|
|
128
|
+
defaultTaskHint: interop.Enum<typeof SFSpeechRecognitionTaskHint>
|
|
129
|
+
|
|
130
|
+
recognitionTaskWithRequestResultHandler(
|
|
131
|
+
request: SFSpeechRecognitionRequest,
|
|
132
|
+
resultHandler: (p1: SFSpeechRecognitionResult, p2: NSError) => void | null,
|
|
133
|
+
): SFSpeechRecognitionTask
|
|
134
|
+
|
|
135
|
+
recognitionTaskWithRequestDelegate(
|
|
136
|
+
request: SFSpeechRecognitionRequest,
|
|
137
|
+
delegate: SFSpeechRecognitionTaskDelegate,
|
|
138
|
+
): SFSpeechRecognitionTask
|
|
139
|
+
|
|
140
|
+
queue: NSOperationQueue
|
|
141
|
+
|
|
142
|
+
isAvailable(): boolean
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare class SFTranscriptionSegment extends NSObject implements NSCopying, NSSecureCoding {
|
|
146
|
+
readonly substring: string
|
|
147
|
+
|
|
148
|
+
readonly substringRange: _NSRange
|
|
149
|
+
|
|
150
|
+
readonly timestamp: number
|
|
151
|
+
|
|
152
|
+
readonly duration: number
|
|
153
|
+
|
|
154
|
+
readonly confidence: number
|
|
155
|
+
|
|
156
|
+
readonly alternativeSubstrings: NSArray
|
|
157
|
+
|
|
158
|
+
readonly voiceAnalytics: SFVoiceAnalytics
|
|
159
|
+
|
|
160
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
161
|
+
|
|
162
|
+
static readonly supportsSecureCoding: boolean
|
|
163
|
+
|
|
164
|
+
encodeWithCoder(coder: NSCoder): void
|
|
165
|
+
|
|
166
|
+
initWithCoder(coder: NSCoder): this
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class SFSpeechRecognitionTask extends NSObject {
|
|
170
|
+
readonly state: interop.Enum<typeof SFSpeechRecognitionTaskState>
|
|
171
|
+
|
|
172
|
+
readonly finishing: boolean
|
|
173
|
+
|
|
174
|
+
finish(): void
|
|
175
|
+
|
|
176
|
+
readonly cancelled: boolean
|
|
177
|
+
|
|
178
|
+
cancel(): void
|
|
179
|
+
|
|
180
|
+
readonly error: NSError
|
|
181
|
+
|
|
182
|
+
isFinishing(): boolean
|
|
183
|
+
|
|
184
|
+
isCancelled(): boolean
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare class SFSpeechRecognitionRequest extends NSObject {
|
|
188
|
+
taskHint: interop.Enum<typeof SFSpeechRecognitionTaskHint>
|
|
189
|
+
|
|
190
|
+
shouldReportPartialResults: boolean
|
|
191
|
+
|
|
192
|
+
get contextualStrings(): NSArray
|
|
193
|
+
set contextualStrings(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
194
|
+
|
|
195
|
+
interactionIdentifier: string
|
|
196
|
+
|
|
197
|
+
requiresOnDeviceRecognition: boolean
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare class SFSpeechAudioBufferRecognitionRequest extends SFSpeechRecognitionRequest {
|
|
201
|
+
readonly nativeAudioFormat: AVAudioFormat
|
|
202
|
+
|
|
203
|
+
appendAudioPCMBuffer(audioPCMBuffer: AVAudioPCMBuffer): void
|
|
204
|
+
|
|
205
|
+
appendAudioSampleBuffer(sampleBuffer: interop.Object): void
|
|
206
|
+
|
|
207
|
+
endAudio(): void
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare class SFSpeechRecognitionResult extends NSObject implements NSCopying, NSSecureCoding {
|
|
211
|
+
readonly bestTranscription: SFTranscription
|
|
212
|
+
|
|
213
|
+
readonly transcriptions: NSArray
|
|
214
|
+
|
|
215
|
+
readonly final: boolean
|
|
216
|
+
|
|
217
|
+
readonly speechRecognitionMetadata: SFSpeechRecognitionMetadata
|
|
218
|
+
|
|
219
|
+
isFinal(): boolean
|
|
220
|
+
|
|
221
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
222
|
+
|
|
223
|
+
static readonly supportsSecureCoding: boolean
|
|
224
|
+
|
|
225
|
+
encodeWithCoder(coder: NSCoder): void
|
|
226
|
+
|
|
227
|
+
initWithCoder(coder: NSCoder): this
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class SFVoiceAnalytics extends NSObject implements NSCopying, NSSecureCoding {
|
|
231
|
+
readonly jitter: SFAcousticFeature
|
|
232
|
+
|
|
233
|
+
readonly shimmer: SFAcousticFeature
|
|
234
|
+
|
|
235
|
+
readonly pitch: SFAcousticFeature
|
|
236
|
+
|
|
237
|
+
readonly voicing: SFAcousticFeature
|
|
238
|
+
|
|
239
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
240
|
+
|
|
241
|
+
static readonly supportsSecureCoding: boolean
|
|
242
|
+
|
|
243
|
+
encodeWithCoder(coder: NSCoder): void
|
|
244
|
+
|
|
245
|
+
initWithCoder(coder: NSCoder): this
|
|
246
|
+
}
|