@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.
Files changed (222) hide show
  1. package/README.md +95 -20
  2. package/package.json +15 -2
  3. package/src/appearance.ts +2 -0
  4. package/src/fonts.ts +2 -0
  5. package/src/formatted-text.ts +147 -0
  6. package/src/gestures.ts +196 -0
  7. package/src/host-globals.d.ts +55 -0
  8. package/src/html-text.ts +88 -0
  9. package/src/image.ts +91 -16
  10. package/src/index.d.ts +9 -0
  11. package/src/index.ts +5030 -678
  12. package/src/layer.ts +11 -9
  13. package/src/list-template.ts +266 -0
  14. package/src/list-view.ts +445 -0
  15. package/src/portal-components.macos.tsx +86 -0
  16. package/src/presentation.ts +48 -15
  17. package/src/scroll-view.ts +124 -0
  18. package/src/tab-view.ts +512 -0
  19. package/src/template-props.ts +402 -0
  20. package/src/vendor/listview/LICENSE +19 -0
  21. package/src/vendor/listview/README.md +1 -0
  22. package/src/vendor/listview/binding-options.ts +189 -0
  23. package/src/vendor/listview/expressions.ts +285 -0
  24. package/src/webview.ts +36 -7
  25. package/types/ARKitCore.d.ts +199 -0
  26. package/types/AVFAudio.d.ts +2304 -0
  27. package/types/AVFoundation.d.ts +6974 -0
  28. package/types/AVKit.d.ts +215 -0
  29. package/types/AVRouting.d.ts +7 -0
  30. package/types/Accelerate.d.ts +4776 -0
  31. package/types/Accessibility.d.ts +69 -0
  32. package/types/Accounts.d.ts +134 -0
  33. package/types/AdSupport.d.ts +12 -0
  34. package/types/AddressBook.d.ts +1012 -0
  35. package/types/AppKit.d.ts +34247 -0
  36. package/types/AppTrackingTransparency.d.ts +23 -0
  37. package/types/AppleScriptKit.d.ts +6 -0
  38. package/types/ApplicationServices.d.ts +6346 -0
  39. package/types/AudioToolbox.d.ts +7129 -0
  40. package/types/AudioVideoBridging.d.ts +613 -0
  41. package/types/AuthenticationServices.d.ts +982 -0
  42. package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
  43. package/types/Automator.d.ts +248 -0
  44. package/types/BackgroundAssets.d.ts +9 -0
  45. package/types/BrowserEngineKit.d.ts +166 -0
  46. package/types/BusinessChat.d.ts +29 -0
  47. package/types/CFNetwork.d.ts +931 -0
  48. package/types/CalendarStore.d.ts +354 -0
  49. package/types/CallKit.d.ts +30 -0
  50. package/types/Carbon.d.ts +16207 -0
  51. package/types/ClassKit.d.ts +281 -0
  52. package/types/CloudKit.d.ts +1565 -0
  53. package/types/Collaboration.d.ts +123 -0
  54. package/types/ColorSync.d.ts +562 -0
  55. package/types/CompositorServices.d.ts +60 -0
  56. package/types/ComputeGraph.d.ts +16 -0
  57. package/types/Contacts.d.ts +1558 -0
  58. package/types/ContactsUI.d.ts +39 -0
  59. package/types/CoreAudio.d.ts +1376 -0
  60. package/types/CoreAudioKit.d.ts +122 -0
  61. package/types/CoreAudioTypes.d.ts +1003 -0
  62. package/types/CoreBluetooth.d.ts +657 -0
  63. package/types/CoreData.d.ts +2479 -0
  64. package/types/CoreFoundation.d.ts +5546 -0
  65. package/types/CoreGraphics.d.ts +3676 -0
  66. package/types/CoreHaptics.d.ts +361 -0
  67. package/types/CoreImage.d.ts +4781 -0
  68. package/types/CoreLocation.d.ts +564 -0
  69. package/types/CoreMIDI.d.ts +1538 -0
  70. package/types/CoreML.d.ts +905 -0
  71. package/types/CoreMedia.d.ts +2615 -0
  72. package/types/CoreMediaIO.d.ts +1046 -0
  73. package/types/CoreMotion.d.ts +316 -0
  74. package/types/CoreServices.d.ts +24810 -0
  75. package/types/CoreSpotlight.d.ts +789 -0
  76. package/types/CoreTelephony.d.ts +31 -0
  77. package/types/CoreText.d.ts +3973 -0
  78. package/types/CoreTransferable.d.ts +3 -0
  79. package/types/CoreVideo.d.ts +1162 -0
  80. package/types/CoreWLAN.d.ts +556 -0
  81. package/types/CryptoTokenKit.d.ts +548 -0
  82. package/types/DVDPlayback.d.ts +931 -0
  83. package/types/DataDetection.d.ts +66 -0
  84. package/types/DeviceCheck.d.ts +46 -0
  85. package/types/DeviceDiscoveryExtension.d.ts +142 -0
  86. package/types/DirectoryService.d.ts +966 -0
  87. package/types/DiscRecording.d.ts +2345 -0
  88. package/types/DiscRecordingUI.d.ts +288 -0
  89. package/types/DiskArbitration.d.ts +366 -0
  90. package/types/DriverKit.d.ts +639 -0
  91. package/types/EventKit.d.ts +640 -0
  92. package/types/ExceptionHandling.d.ts +56 -0
  93. package/types/ExecutionPolicy.d.ts +30 -0
  94. package/types/ExternalAccessory.d.ts +98 -0
  95. package/types/FSKit.d.ts +237 -0
  96. package/types/FileProvider.d.ts +495 -0
  97. package/types/FileProviderUI.d.ts +31 -0
  98. package/types/FinderSync.d.ts +165 -0
  99. package/types/FocusEngine.d.ts +133 -0
  100. package/types/ForceFeedback.d.ts +399 -0
  101. package/types/Foundation.d.ts +18216 -0
  102. package/types/GLKit.d.ts +937 -0
  103. package/types/GLUT.d.ts +1018 -0
  104. package/types/GSS.d.ts +855 -0
  105. package/types/GameController.d.ts +1394 -0
  106. package/types/GameKit.d.ts +1958 -0
  107. package/types/GameSave.d.ts +54 -0
  108. package/types/GameplayKit.d.ts +1645 -0
  109. package/types/HealthKit.d.ts +278 -0
  110. package/types/Hypervisor.d.ts +2079 -0
  111. package/types/ICADevices.d.ts +1400 -0
  112. package/types/IOBluetooth.d.ts +6094 -0
  113. package/types/IOBluetoothUI.d.ts +250 -0
  114. package/types/IOKit.d.ts +25804 -0
  115. package/types/IOSurface.d.ts +435 -0
  116. package/types/IOUSBHost.d.ts +809 -0
  117. package/types/ImageCaptureCore.d.ts +1104 -0
  118. package/types/ImageIO.d.ts +1697 -0
  119. package/types/InputMethodKit.d.ts +264 -0
  120. package/types/InstallerPlugins.d.ts +102 -0
  121. package/types/InstantMessage.d.ts +229 -0
  122. package/types/Intents.d.ts +1833 -0
  123. package/types/IntentsUI.d.ts +5 -0
  124. package/types/JavaRuntimeSupport.d.ts +520 -0
  125. package/types/JavaScriptCore.d.ts +934 -0
  126. package/types/Kerberos.d.ts +3754 -0
  127. package/types/Kernel.d.ts +33698 -0
  128. package/types/KernelManagement.d.ts +5 -0
  129. package/types/LatentSemanticMapping.d.ts +152 -0
  130. package/types/LinkPresentation.d.ts +57 -0
  131. package/types/LocalAuthentication.d.ts +94 -0
  132. package/types/MLCompute.d.ts +2343 -0
  133. package/types/MapKit.d.ts +2125 -0
  134. package/types/Matter.d.ts +151 -0
  135. package/types/MediaAccessibility.d.ts +137 -0
  136. package/types/MediaLibrary.d.ts +394 -0
  137. package/types/MediaPlayer.d.ts +475 -0
  138. package/types/MediaToolbox.d.ts +70 -0
  139. package/types/Metal.d.ts +4542 -0
  140. package/types/MetalFX.d.ts +107 -0
  141. package/types/MetalKit.d.ts +524 -0
  142. package/types/MetalPerformanceShaders.d.ts +9306 -0
  143. package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
  144. package/types/MetricKit.d.ts +231 -0
  145. package/types/ModelIO.d.ts +2908 -0
  146. package/types/MultipeerConnectivity.d.ts +348 -0
  147. package/types/NaturalLanguage.d.ts +556 -0
  148. package/types/NearbyInteraction.d.ts +51 -0
  149. package/types/NetFS.d.ts +99 -0
  150. package/types/Network.d.ts +1622 -0
  151. package/types/NetworkExtension.d.ts +1574 -0
  152. package/types/NotificationCenter.d.ts +103 -0
  153. package/types/OSAKit.d.ts +260 -0
  154. package/types/OSLog.d.ts +208 -0
  155. package/types/OpenAL.d.ts +314 -0
  156. package/types/OpenCL.d.ts +2489 -0
  157. package/types/OpenDirectory.d.ts +1919 -0
  158. package/types/OpenGL.d.ts +11322 -0
  159. package/types/PCSC.d.ts +534 -0
  160. package/types/PDFKit.d.ts +1575 -0
  161. package/types/PHASE.d.ts +166 -0
  162. package/types/ParavirtualizedGraphics.d.ts +153 -0
  163. package/types/PassKit.d.ts +1287 -0
  164. package/types/PencilKit.d.ts +201 -0
  165. package/types/Photos.d.ts +1125 -0
  166. package/types/PhotosUI.d.ts +397 -0
  167. package/types/PreferencePanes.d.ts +68 -0
  168. package/types/ProximityReaderStub.d.ts +5 -0
  169. package/types/PushKit.d.ts +45 -0
  170. package/types/Quartz.d.ts +1642 -0
  171. package/types/QuartzCore.d.ts +1398 -0
  172. package/types/QuickLook.d.ts +212 -0
  173. package/types/QuickLookThumbnailing.d.ts +131 -0
  174. package/types/QuickLookUI.d.ts +117 -0
  175. package/types/REVISION.json +5 -0
  176. package/types/ReplayKit.d.ts +294 -0
  177. package/types/Runtime.d.ts +51605 -0
  178. package/types/SafariServices.d.ts +430 -0
  179. package/types/SafetyKit.d.ts +7 -0
  180. package/types/SceneKit.d.ts +4996 -0
  181. package/types/ScreenCaptureKit.d.ts +16 -0
  182. package/types/ScreenSaver.d.ts +41 -0
  183. package/types/ScreenTime.d.ts +41 -0
  184. package/types/ScriptingBridge.d.ts +96 -0
  185. package/types/Security.d.ts +14336 -0
  186. package/types/SecurityFoundation.d.ts +53 -0
  187. package/types/SecurityInterface.d.ts +297 -0
  188. package/types/SensorKit.d.ts +7 -0
  189. package/types/ServiceManagement.d.ts +71 -0
  190. package/types/SharedWithYou.d.ts +9 -0
  191. package/types/SharedWithYouCore.d.ts +5 -0
  192. package/types/ShazamKit.d.ts +12 -0
  193. package/types/Social.d.ts +306 -0
  194. package/types/SoundAnalysis.d.ts +177 -0
  195. package/types/Speech.d.ts +246 -0
  196. package/types/SpriteKit.d.ts +2766 -0
  197. package/types/StoreKit.d.ts +509 -0
  198. package/types/SyncServices.d.ts +551 -0
  199. package/types/SystemConfiguration.d.ts +1415 -0
  200. package/types/SystemExtensions.d.ts +89 -0
  201. package/types/TWAIN.d.ts +380 -0
  202. package/types/Tcl.d.ts +4013 -0
  203. package/types/ThreadNetwork.d.ts +77 -0
  204. package/types/Tk.d.ts +3750 -0
  205. package/types/UIUtilities.d.ts +31 -0
  206. package/types/UniformTypeIdentifiers.d.ts +358 -0
  207. package/types/UserNotifications.d.ts +538 -0
  208. package/types/UserNotificationsUI.d.ts +38 -0
  209. package/types/VideoDecodeAcceleration.d.ts +50 -0
  210. package/types/VideoSubscriberAccount.d.ts +139 -0
  211. package/types/VideoToolbox.d.ts +907 -0
  212. package/types/Virtualization.d.ts +302 -0
  213. package/types/Vision.d.ts +1723 -0
  214. package/types/WebKit.d.ts +5195 -0
  215. package/types/WidgetKit.d.ts +9 -0
  216. package/types/_LocationEssentials.d.ts +159 -0
  217. package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
  218. package/types/iTunesLibrary.d.ts +528 -0
  219. package/types/index.d.ts +9 -0
  220. package/types/vecLib.d.ts +33586 -0
  221. package/types/vmnet.d.ts +178 -0
  222. package/src/appkit.d.ts +0 -472
@@ -0,0 +1,103 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./AppKit.d.ts" />
3
+ /// <reference path="./Runtime.d.ts" />
4
+
5
+ declare const NCUpdateResult: {
6
+ NewData: 0
7
+ NoData: 1
8
+ Failed: 2
9
+ }
10
+
11
+ declare interface NCWidgetSearchViewDelegate extends NSObjectProtocol {
12
+ widgetSearchSearchForTermMaxResults(
13
+ controller: NCWidgetSearchViewController,
14
+ searchTerm: string,
15
+ max: number,
16
+ ): void
17
+
18
+ widgetSearchTermCleared(controller: NCWidgetSearchViewController): void
19
+
20
+ widgetSearchResultSelected(controller: NCWidgetSearchViewController, object: interop.Object): void
21
+ }
22
+
23
+ declare class NCWidgetSearchViewDelegate
24
+ extends NativeObject
25
+ implements NCWidgetSearchViewDelegate {}
26
+
27
+ declare interface NCWidgetListViewDelegate extends NSObjectProtocol {
28
+ widgetListViewControllerForRow(list: NCWidgetListViewController, row: number): NSViewController
29
+
30
+ widgetListPerformAddAction?(list: NCWidgetListViewController): void
31
+
32
+ widgetListShouldReorderRow?(list: NCWidgetListViewController, row: number): boolean
33
+
34
+ widgetListDidReorderRowToRow?(
35
+ list: NCWidgetListViewController,
36
+ row: number,
37
+ newIndex: number,
38
+ ): void
39
+
40
+ widgetListShouldRemoveRow?(list: NCWidgetListViewController, row: number): boolean
41
+
42
+ widgetListDidRemoveRow?(list: NCWidgetListViewController, row: number): void
43
+ }
44
+
45
+ declare class NCWidgetListViewDelegate extends NativeObject implements NCWidgetListViewDelegate {}
46
+
47
+ declare interface NCWidgetProviding extends NSExtensionRequestHandling {
48
+ widgetPerformUpdateWithCompletionHandler?(
49
+ completionHandler: (p1: interop.Enum<typeof NCUpdateResult>) => void,
50
+ ): void
51
+
52
+ widgetMarginInsetsForProposedMarginInsets?(defaultMarginInset: NSEdgeInsets): NSEdgeInsets
53
+
54
+ readonly widgetAllowsEditing?: boolean
55
+
56
+ widgetDidBeginEditing?(): void
57
+
58
+ widgetDidEndEditing?(): void
59
+ }
60
+
61
+ declare class NCWidgetProviding extends NativeObject implements NCWidgetProviding {}
62
+
63
+ declare class NCWidgetListViewController extends NSViewController {
64
+ delegate: NCWidgetListViewDelegate
65
+
66
+ get contents(): NSArray
67
+ set contents(value: NSArray<interop.Object> | Array<interop.Object>)
68
+
69
+ minimumVisibleRowCount: number
70
+
71
+ hasDividerLines: boolean
72
+
73
+ editing: boolean
74
+
75
+ showsAddButtonWhenEditing: boolean
76
+
77
+ viewControllerAtRowMakeIfNecessary(row: number, makeIfNecesary: boolean): NSViewController
78
+
79
+ rowForViewController(viewController: NSViewController): number
80
+ }
81
+
82
+ declare class NCWidgetSearchViewController extends NSViewController {
83
+ delegate: NCWidgetSearchViewDelegate
84
+
85
+ get searchResults(): NSArray
86
+ set searchResults(value: NSArray<interop.Object> | Array<interop.Object>)
87
+
88
+ searchDescription: string
89
+
90
+ searchResultsPlaceholderString: string
91
+
92
+ searchResultKeyPath: string
93
+ }
94
+
95
+ declare class NCWidgetController extends NSObject {
96
+ static widgetController<This extends abstract new (...args: any) => any>(
97
+ this: This,
98
+ ): InstanceType<This>
99
+
100
+ static defaultWidgetController(): NCWidgetController
101
+
102
+ setHasContentForWidgetWithBundleIdentifier(flag: boolean, bundleID: string): void
103
+ }
@@ -0,0 +1,260 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+ /// <reference path="./AppKit.d.ts" />
4
+
5
+ declare const OSAStorageTextType: string
6
+
7
+ declare const OSAStorageApplicationBundleType: string
8
+
9
+ declare const OSAStorageScriptBundleType: string
10
+
11
+ declare const OSAStorageScriptType: string
12
+
13
+ declare const OSAScriptErrorBriefMessage: string
14
+
15
+ declare const OSAScriptErrorMessage: string
16
+
17
+ declare const OSAScriptErrorRangeKey: string
18
+
19
+ declare const OSAScriptErrorAppAddressKey: string
20
+
21
+ declare const OSAScriptErrorExpectedTypeKey: string
22
+
23
+ declare const OSAScriptErrorBriefMessageKey: string
24
+
25
+ declare const OSAScriptErrorMessageKey: string
26
+
27
+ declare const OSAScriptErrorAppNameKey: string
28
+
29
+ declare const OSAScriptErrorOffendingObjectKey: string
30
+
31
+ declare const OSAScriptErrorNumberKey: string
32
+
33
+ declare const OSAScriptErrorRange: string
34
+
35
+ declare const OSAScriptErrorPartialResultKey: string
36
+
37
+ declare const OSAStorageApplicationType: string
38
+
39
+ declare const OSAScriptErrorNumber: string
40
+
41
+ declare const OSAScriptErrorAppName: string
42
+
43
+ declare const OSALanguageFeatures: {
44
+ Compiling: 2
45
+ GetSource: 4
46
+ AECoercion: 8
47
+ AESending: 16
48
+ Recording: 32
49
+ Convenience: 64
50
+ Dialects: 128
51
+ EventHandling: 256
52
+ }
53
+
54
+ declare const OSAScriptState: {
55
+ Stopped: 0
56
+ Running: 1
57
+ Recording: 2
58
+ }
59
+
60
+ declare const OSAStorageOptions: {
61
+ Null: 0
62
+ PreventGetSource: 1
63
+ CompileIntoContext: 2
64
+ DontSetScriptLocation: 16777216
65
+ StayOpenApplet: 268435456
66
+ ShowStartupScreen: 536870912
67
+ }
68
+
69
+ declare class OSAScriptController extends NSController {
70
+ scriptView: OSAScriptView
71
+
72
+ resultView: NSTextView
73
+
74
+ script: OSAScript
75
+
76
+ language: OSALanguage
77
+
78
+ readonly scriptState: interop.Enum<typeof OSAScriptState>
79
+
80
+ readonly compiling: boolean
81
+
82
+ compileScript(sender: interop.Object | null): void
83
+
84
+ recordScript(sender: interop.Object | null): void
85
+
86
+ runScript(sender: interop.Object | null): void
87
+
88
+ stopScript(sender: interop.Object | null): void
89
+
90
+ isCompiling(): boolean
91
+ }
92
+
93
+ declare class OSALanguageInstance extends NSObject {
94
+ static languageInstanceWithLanguage<This extends abstract new (...args: any) => any>(
95
+ this: This,
96
+ language: OSALanguage,
97
+ ): InstanceType<This>
98
+
99
+ initWithLanguage(language: OSALanguage): this
100
+
101
+ readonly language: OSALanguage
102
+
103
+ readonly componentInstance: interop.Pointer
104
+
105
+ defaultTarget: NSAppleEventDescriptor
106
+
107
+ richTextFromDescriptor(descriptor: NSAppleEventDescriptor): NSAttributedString
108
+ }
109
+
110
+ declare class OSAScriptView extends NSTextView {
111
+ source: string
112
+
113
+ usesScriptAssistant: boolean
114
+
115
+ usesTabs: boolean
116
+
117
+ tabWidth: number
118
+
119
+ wrapsLines: boolean
120
+
121
+ indentsWrappedLines: boolean
122
+
123
+ indentWidth: number
124
+ }
125
+
126
+ declare class OSALanguage extends NSObject {
127
+ static availableLanguages(): NSArray
128
+
129
+ static languageForName(name: string): OSALanguage
130
+
131
+ static languageForScriptDataDescriptor(descriptor: NSAppleEventDescriptor): OSALanguage
132
+
133
+ static defaultLanguage(): OSALanguage
134
+
135
+ static setDefaultLanguage(defaultLanguage: OSALanguage): void
136
+
137
+ initWithComponent(component: interop.PointerConvertible): this
138
+
139
+ sharedLanguageInstance(): OSALanguageInstance
140
+
141
+ readonly componentInstance: interop.Pointer
142
+
143
+ readonly name: string
144
+
145
+ readonly info: string
146
+
147
+ readonly version: string
148
+
149
+ readonly type: number
150
+
151
+ readonly subType: number
152
+
153
+ readonly manufacturer: number
154
+
155
+ readonly features: interop.Enum<typeof OSALanguageFeatures>
156
+
157
+ readonly threadSafe: boolean
158
+
159
+ isThreadSafe(): boolean
160
+ }
161
+
162
+ declare class OSAScript extends NSObject implements NSCopying {
163
+ static scriptDataDescriptorWithContentsOfURL(url: NSURL): NSAppleEventDescriptor
164
+
165
+ initWithSource(source: string): this
166
+
167
+ initWithSourceLanguage(source: string, language: OSALanguage | null): this
168
+
169
+ initWithSourceFromURLLanguageInstanceUsingStorageOptions(
170
+ source: string,
171
+ url: NSURL | null,
172
+ instance: OSALanguageInstance | null,
173
+ storageOptions: interop.Enum<typeof OSAStorageOptions>,
174
+ ): this
175
+
176
+ initWithContentsOfURLError(url: NSURL, errorInfo: interop.PointerConvertible): this
177
+
178
+ initWithContentsOfURLLanguageError(
179
+ url: NSURL,
180
+ language: OSALanguage,
181
+ errorInfo: interop.PointerConvertible,
182
+ ): this
183
+
184
+ initWithContentsOfURLLanguageInstanceUsingStorageOptionsError(
185
+ url: NSURL,
186
+ instance: OSALanguageInstance | null,
187
+ storageOptions: interop.Enum<typeof OSAStorageOptions>,
188
+ errorInfo: interop.PointerConvertible,
189
+ ): this
190
+
191
+ initWithCompiledDataError(data: NSData, errorInfo: interop.PointerConvertible): this
192
+
193
+ initWithCompiledDataFromURLUsingStorageOptionsError(
194
+ data: NSData,
195
+ url: NSURL | null,
196
+ storageOptions: interop.Enum<typeof OSAStorageOptions>,
197
+ errorInfo: interop.PointerConvertible,
198
+ ): this
199
+
200
+ initWithScriptDataDescriptorFromURLLanguageInstanceUsingStorageOptionsError(
201
+ data: NSAppleEventDescriptor,
202
+ url: NSURL | null,
203
+ instance: OSALanguageInstance | null,
204
+ storageOptions: interop.Enum<typeof OSAStorageOptions>,
205
+ errorInfo: interop.PointerConvertible,
206
+ ): this
207
+
208
+ readonly source: string
209
+
210
+ readonly url: NSURL
211
+
212
+ language: OSALanguage
213
+
214
+ languageInstance: OSALanguageInstance
215
+
216
+ readonly compiled: boolean
217
+
218
+ compileAndReturnError(errorInfo: interop.PointerConvertible): boolean
219
+
220
+ executeAndReturnError(errorInfo: interop.PointerConvertible): NSAppleEventDescriptor
221
+
222
+ executeAppleEventError(
223
+ event: NSAppleEventDescriptor,
224
+ errorInfo: interop.PointerConvertible,
225
+ ): NSAppleEventDescriptor
226
+
227
+ executeAndReturnDisplayValueError(
228
+ displayValue: interop.PointerConvertible,
229
+ errorInfo: interop.PointerConvertible,
230
+ ): NSAppleEventDescriptor
231
+
232
+ executeHandlerWithNameArgumentsError(
233
+ name: string,
234
+ arguments$: NSArray<interop.Object> | Array<interop.Object>,
235
+ errorInfo: interop.PointerConvertible,
236
+ ): NSAppleEventDescriptor
237
+
238
+ readonly richTextSource: NSAttributedString
239
+
240
+ richTextFromDescriptor(descriptor: NSAppleEventDescriptor): NSAttributedString
241
+
242
+ writeToURLOfTypeError(url: NSURL, type: string, errorInfo: interop.PointerConvertible): boolean
243
+
244
+ writeToURLOfTypeUsingStorageOptionsError(
245
+ url: NSURL,
246
+ type: string,
247
+ storageOptions: interop.Enum<typeof OSAStorageOptions>,
248
+ errorInfo: interop.PointerConvertible,
249
+ ): boolean
250
+
251
+ compiledDataForTypeUsingStorageOptionsError(
252
+ type: string,
253
+ storageOptions: interop.Enum<typeof OSAStorageOptions>,
254
+ errorInfo: interop.PointerConvertible,
255
+ ): NSData
256
+
257
+ isCompiled(): boolean
258
+
259
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
260
+ }
@@ -0,0 +1,208 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+ /// <reference path="./Foundation.d.ts" />
4
+
5
+ declare const OSLogEntrySignpostType: {
6
+ Undefined: 0
7
+ IntervalBegin: 1
8
+ IntervalEnd: 2
9
+ Event: 3
10
+ }
11
+
12
+ declare const OSLogEntryLogLevel: {
13
+ Undefined: 0
14
+ Debug: 1
15
+ Info: 2
16
+ Notice: 3
17
+ Error: 4
18
+ Fault: 5
19
+ }
20
+
21
+ declare const OSLogMessageComponentArgumentCategory: {
22
+ Undefined: 0
23
+ Data: 1
24
+ Double: 2
25
+ Int64: 3
26
+ String: 4
27
+ UInt64: 5
28
+ }
29
+
30
+ declare const OSLogEnumeratorOptions: {
31
+ OSLogEnumeratorReverse: 1
32
+ }
33
+
34
+ declare const OSLogEntryStoreCategory: {
35
+ Undefined: 0
36
+ Metadata: 1
37
+ ShortTerm: 2
38
+ LongTermAuto: 3
39
+ LongTerm1: 4
40
+ LongTerm3: 5
41
+ LongTerm7: 6
42
+ LongTerm14: 7
43
+ LongTerm30: 8
44
+ }
45
+
46
+ declare interface OSLogEntryWithPayload {
47
+ readonly category: string
48
+
49
+ readonly components: NSArray
50
+
51
+ readonly formatString: string
52
+
53
+ readonly subsystem: string
54
+ }
55
+
56
+ declare class OSLogEntryWithPayload extends NativeObject implements OSLogEntryWithPayload {}
57
+
58
+ declare interface OSLogEntryFromProcess {
59
+ readonly activityIdentifier: number
60
+
61
+ readonly process: string
62
+
63
+ readonly processIdentifier: number
64
+
65
+ readonly sender: string
66
+
67
+ readonly threadIdentifier: number
68
+ }
69
+
70
+ declare class OSLogEntryFromProcess extends NativeObject implements OSLogEntryFromProcess {}
71
+
72
+ declare class OSLogPosition extends NSObject {}
73
+
74
+ declare class OSLogEnumerator extends NSEnumerator {}
75
+
76
+ declare class OSLogEntryLog
77
+ extends OSLogEntry
78
+ implements OSLogEntryFromProcess, OSLogEntryWithPayload
79
+ {
80
+ readonly level: interop.Enum<typeof OSLogEntryLogLevel>
81
+
82
+ readonly activityIdentifier: number
83
+
84
+ readonly process: string
85
+
86
+ readonly processIdentifier: number
87
+
88
+ readonly sender: string
89
+
90
+ readonly threadIdentifier: number
91
+
92
+ readonly category: string
93
+
94
+ readonly components: NSArray
95
+
96
+ readonly formatString: string
97
+
98
+ readonly subsystem: string
99
+ }
100
+
101
+ declare class OSLogEntryActivity extends OSLogEntry implements OSLogEntryFromProcess {
102
+ readonly parentActivityIdentifier: number
103
+
104
+ readonly activityIdentifier: number
105
+
106
+ readonly process: string
107
+
108
+ readonly processIdentifier: number
109
+
110
+ readonly sender: string
111
+
112
+ readonly threadIdentifier: number
113
+ }
114
+
115
+ declare class OSLogMessageComponent extends NSObject implements NSSecureCoding {
116
+ readonly formatSubstring: string
117
+
118
+ readonly placeholder: string
119
+
120
+ readonly argumentCategory: interop.Enum<typeof OSLogMessageComponentArgumentCategory>
121
+
122
+ readonly argumentDataValue: NSData
123
+
124
+ readonly argumentDoubleValue: number
125
+
126
+ readonly argumentInt64Value: number
127
+
128
+ readonly argumentNumberValue: NSNumber
129
+
130
+ readonly argumentStringValue: string
131
+
132
+ readonly argumentUInt64Value: number
133
+
134
+ static readonly supportsSecureCoding: boolean
135
+
136
+ encodeWithCoder(coder: NSCoder): void
137
+
138
+ initWithCoder(coder: NSCoder): this
139
+ }
140
+
141
+ declare class OSLogEntrySignpost
142
+ extends OSLogEntry
143
+ implements OSLogEntryFromProcess, OSLogEntryWithPayload
144
+ {
145
+ readonly signpostIdentifier: number
146
+
147
+ readonly signpostName: string
148
+
149
+ readonly signpostType: interop.Enum<typeof OSLogEntrySignpostType>
150
+
151
+ readonly activityIdentifier: number
152
+
153
+ readonly process: string
154
+
155
+ readonly processIdentifier: number
156
+
157
+ readonly sender: string
158
+
159
+ readonly threadIdentifier: number
160
+
161
+ readonly category: string
162
+
163
+ readonly components: NSArray
164
+
165
+ readonly formatString: string
166
+
167
+ readonly subsystem: string
168
+ }
169
+
170
+ declare class OSLogEntry extends NSObject {
171
+ readonly composedMessage: string
172
+
173
+ readonly date: NSDate
174
+
175
+ readonly storeCategory: interop.Enum<typeof OSLogEntryStoreCategory>
176
+ }
177
+
178
+ declare class OSLogStore extends NSObject {
179
+ static localStoreAndReturnError<This extends abstract new (...args: any) => any>(
180
+ this: This,
181
+ error: interop.PointerConvertible,
182
+ ): InstanceType<This>
183
+
184
+ static storeWithURLError<This extends abstract new (...args: any) => any>(
185
+ this: This,
186
+ url: NSURL,
187
+ error: interop.PointerConvertible,
188
+ ): InstanceType<This>
189
+
190
+ init(): this
191
+
192
+ entriesEnumeratorWithOptionsPositionPredicateError(
193
+ options: interop.Enum<typeof OSLogEnumeratorOptions>,
194
+ position: OSLogPosition | null,
195
+ predicate: NSPredicate | null,
196
+ error: interop.PointerConvertible,
197
+ ): OSLogEnumerator
198
+
199
+ entriesEnumeratorAndReturnError(error: interop.PointerConvertible): OSLogEnumerator
200
+
201
+ positionWithDate(date: NSDate): OSLogPosition
202
+
203
+ positionWithTimeIntervalSinceEnd(seconds: number): OSLogPosition
204
+
205
+ positionWithTimeIntervalSinceLatestBoot(seconds: number): OSLogPosition
206
+ }
207
+
208
+ declare class OSLogEntryBoundary extends OSLogEntry {}