@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,475 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+
4
+ declare const MPLanguageOptionCharacteristicVoiceOverTranslation: string
5
+
6
+ declare const MPLanguageOptionCharacteristicDescribesVideo: string
7
+
8
+ declare const MPLanguageOptionCharacteristicEasyToRead: string
9
+
10
+ declare const MPLanguageOptionCharacteristicTranscribesSpokenDialog: string
11
+
12
+ declare const MPLanguageOptionCharacteristicContainsOnlyForcedSubtitles: string
13
+
14
+ declare const MPLanguageOptionCharacteristicIsAuxiliaryContent: string
15
+
16
+ declare const MPLanguageOptionCharacteristicIsMainProgramContent: string
17
+
18
+ declare const MPNowPlayingInfoPropertyCurrentPlaybackDate: string
19
+
20
+ declare const MPNowPlayingInfoPropertyExternalUserProfileIdentifier: string
21
+
22
+ declare const MPNowPlayingInfoPropertyChapterCount: string
23
+
24
+ declare const MPNowPlayingInfoPropertyDefaultPlaybackRate: string
25
+
26
+ declare const MPNowPlayingInfoPropertyPlaybackRate: string
27
+
28
+ declare const MPMediaPlaylistPropertyDescriptionText: string
29
+
30
+ declare const MPMediaPlaylistPropertyPlaylistAttributes: string
31
+
32
+ declare const MPMediaPlaylistPropertyCloudGlobalID: string
33
+
34
+ declare const MPMediaItemPropertyUserGrouping: string
35
+
36
+ declare const MPMediaItemPropertyLastPlayedDate: string
37
+
38
+ declare const MPMediaItemPropertyHasProtectedAsset: string
39
+
40
+ declare const MPMediaItemPropertyAssetURL: string
41
+
42
+ declare const MPMediaItemPropertyIsCompilation: string
43
+
44
+ declare const MPMediaItemPropertyLyrics: string
45
+
46
+ declare const MPMediaItemPropertyDiscNumber: string
47
+
48
+ declare const MPMediaItemPropertyAlbumTrackCount: string
49
+
50
+ declare const MPMediaItemPropertyAlbumTrackNumber: string
51
+
52
+ declare const MPMediaItemPropertyComposerPersistentID: string
53
+
54
+ declare const MPMediaItemPropertyGenrePersistentID: string
55
+
56
+ declare const MPMediaItemPropertyGenre: string
57
+
58
+ declare const MPMediaItemPropertyAlbumArtistPersistentID: string
59
+
60
+ declare const MPMediaItemPropertyArtistPersistentID: string
61
+
62
+ declare const MPMediaItemPropertyArtist: string
63
+
64
+ declare const MPMediaItemPropertyAlbumPersistentID: string
65
+
66
+ declare const MPMediaItemPropertyAlbumTitle: string
67
+
68
+ declare const MPMediaItemPropertyTitle: string
69
+
70
+ declare const MPErrorDomain: string
71
+
72
+ declare const MPMediaItemPropertyComments: string
73
+
74
+ declare const MPNowPlayingInfoPropertyChapterNumber: string
75
+
76
+ declare const MPNowPlayingInfoCollectionIdentifier: string
77
+
78
+ declare const MPMediaItemPropertyPlaybackDuration: string
79
+
80
+ declare const MPMediaPlaybackIsPreparedToPlayDidChangeNotification: string
81
+
82
+ declare const MPMediaItemPropertyIsCloudItem: string
83
+
84
+ declare const MPNowPlayingInfoPropertyIsLiveStream: string
85
+
86
+ declare const MPMediaItemPropertyArtwork: string
87
+
88
+ declare const MPNowPlayingInfoPropertyMediaType: string
89
+
90
+ declare const MPNowPlayingInfoPropertyElapsedPlaybackTime: string
91
+
92
+ declare const MPMediaItemPropertySkipCount: string
93
+
94
+ declare const MPMediaPlaylistPropertySeedItems: string
95
+
96
+ declare const MPNowPlayingInfoPropertyAssetURL: string
97
+
98
+ declare const MPNowPlayingInfoPropertyPlaybackProgress: string
99
+
100
+ declare const MPNowPlayingInfoPropertyExternalContentIdentifier: string
101
+
102
+ declare const MPLanguageOptionCharacteristicLanguageTranslation: string
103
+
104
+ declare const MPMediaPlaylistPropertyPersistentID: string
105
+
106
+ declare const MPMediaPlaylistPropertyName: string
107
+
108
+ declare const MPNowPlayingInfoPropertyServiceIdentifier: string
109
+
110
+ declare const MPMediaItemPropertyComposer: string
111
+
112
+ declare const MPMediaItemPropertyDiscCount: string
113
+
114
+ declare const MPNowPlayingInfoPropertyPlaybackQueueCount: string
115
+
116
+ declare const MPMediaItemPropertyAlbumArtist: string
117
+
118
+ declare const MPLanguageOptionCharacteristicDescribesMusicAndSound: string
119
+
120
+ declare const MPMediaItemPropertyPlayCount: string
121
+
122
+ declare const MPMediaItemPropertyMediaType: string
123
+
124
+ declare const MPMediaItemPropertyPlaybackStoreID: string
125
+
126
+ declare const MPNowPlayingInfoPropertyPlaybackQueueIndex: string
127
+
128
+ declare const MPNowPlayingInfoPropertyAvailableLanguageOptions: string
129
+
130
+ declare const MPMediaItemPropertyReleaseDate: string
131
+
132
+ declare const MPMediaItemPropertyBeatsPerMinute: string
133
+
134
+ declare const MPMediaItemPropertyBookmarkTime: string
135
+
136
+ declare const MPLanguageOptionCharacteristicDubbedTranslation: string
137
+
138
+ declare const MPMediaEntityPropertyPersistentID: string
139
+
140
+ declare const MPMediaItemPropertyDateAdded: string
141
+
142
+ declare const MPMediaItemPropertyRating: string
143
+
144
+ declare const MPMediaItemPropertyPodcastPersistentID: string
145
+
146
+ declare const MPNowPlayingInfoPropertyCurrentLanguageOptions: string
147
+
148
+ declare const MPMediaItemPropertyIsExplicit: string
149
+
150
+ declare const MPMediaItemPropertyPodcastTitle: string
151
+
152
+ declare const MPMediaItemPropertyPersistentID: string
153
+
154
+ declare const MPMediaPlaylistPropertyAuthorDisplayName: string
155
+
156
+ declare const MPMediaType: {
157
+ Music: 1
158
+ Podcast: 2
159
+ AudioBook: 4
160
+ AudioITunesU: 8
161
+ AnyAudio: 255
162
+ Movie: 256
163
+ TVShow: 512
164
+ VideoPodcast: 1024
165
+ MusicVideo: 2048
166
+ VideoITunesU: 4096
167
+ HomeVideo: 8192
168
+ AnyVideo: 65280
169
+ Any: -1
170
+ }
171
+
172
+ declare const MPRemoteCommandHandlerStatus: {
173
+ Success: 0
174
+ NoSuchContent: 100
175
+ NoActionableNowPlayingItem: 110
176
+ DeviceNotFound: 120
177
+ CommandFailed: 200
178
+ }
179
+
180
+ declare const MPShuffleType: {
181
+ Off: 0
182
+ Items: 1
183
+ Collections: 2
184
+ }
185
+
186
+ declare const MPNowPlayingInfoMediaType: {
187
+ None: 0
188
+ Audio: 1
189
+ Video: 2
190
+ }
191
+
192
+ declare const MPChangeLanguageOptionSetting: {
193
+ None: 0
194
+ NowPlayingItemOnly: 1
195
+ Permanent: 2
196
+ }
197
+
198
+ declare const MPErrorCode: {
199
+ Unknown: 0
200
+ PermissionDenied: 1
201
+ CloudServiceCapabilityMissing: 2
202
+ NetworkConnectionFailed: 3
203
+ NotFound: 4
204
+ NotSupported: 5
205
+ Cancelled: 6
206
+ RequestTimedOut: 7
207
+ }
208
+
209
+ declare const MPSeekCommandEventType: {
210
+ Begin: 0
211
+ End: 1
212
+ }
213
+
214
+ declare const MPRepeatType: {
215
+ Off: 0
216
+ One: 1
217
+ All: 2
218
+ }
219
+
220
+ declare const MPNowPlayingInfoLanguageOptionType: {
221
+ Audible: 0
222
+ Legible: 1
223
+ }
224
+
225
+ declare const MPNowPlayingPlaybackState: {
226
+ Unknown: 0
227
+ Playing: 1
228
+ Paused: 2
229
+ Stopped: 3
230
+ Interrupted: 4
231
+ }
232
+
233
+ declare interface MPSystemMusicPlayerController extends NSObjectProtocol {}
234
+
235
+ declare class MPSystemMusicPlayerController
236
+ extends NativeObject
237
+ implements MPSystemMusicPlayerController {}
238
+
239
+ declare class MPChangeRepeatModeCommandEvent extends MPRemoteCommandEvent {
240
+ readonly repeatType: interop.Enum<typeof MPRepeatType>
241
+
242
+ readonly preservesRepeatMode: boolean
243
+ }
244
+
245
+ declare class MPChangeShuffleModeCommandEvent extends MPRemoteCommandEvent {
246
+ readonly shuffleType: interop.Enum<typeof MPShuffleType>
247
+
248
+ readonly preservesShuffleMode: boolean
249
+ }
250
+
251
+ declare class MPChangePlaybackPositionCommandEvent extends MPRemoteCommandEvent {
252
+ readonly positionTime: number
253
+ }
254
+
255
+ declare class MPChangeLanguageOptionCommandEvent extends MPRemoteCommandEvent {
256
+ readonly languageOption: MPNowPlayingInfoLanguageOption
257
+
258
+ readonly setting: interop.Enum<typeof MPChangeLanguageOptionSetting>
259
+ }
260
+
261
+ declare class MPChangePlaybackRateCommandEvent extends MPRemoteCommandEvent {
262
+ readonly playbackRate: number
263
+ }
264
+
265
+ declare class MPSeekCommandEvent extends MPRemoteCommandEvent {
266
+ readonly type: interop.Enum<typeof MPSeekCommandEventType>
267
+ }
268
+
269
+ declare class MPRemoteCommandEvent extends NSObject {
270
+ readonly command: MPRemoteCommand
271
+
272
+ readonly timestamp: number
273
+ }
274
+
275
+ declare class MPChangeRepeatModeCommand extends MPRemoteCommand {
276
+ currentRepeatType: interop.Enum<typeof MPRepeatType>
277
+ }
278
+
279
+ declare class MPChangePlaybackPositionCommand extends MPRemoteCommand {}
280
+
281
+ declare class MPRatingCommand extends MPRemoteCommand {
282
+ minimumRating: number
283
+
284
+ maximumRating: number
285
+ }
286
+
287
+ declare class MPSkipIntervalCommand extends MPRemoteCommand {
288
+ get preferredIntervals(): NSArray
289
+ set preferredIntervals(value: NSArray<interop.Object> | Array<interop.Object>)
290
+ }
291
+
292
+ declare class MPRemoteCommand extends NSObject {
293
+ enabled: boolean
294
+
295
+ addTargetAction(target: interop.Object, action: string): void
296
+
297
+ removeTargetAction(target: interop.Object, action: string | null): void
298
+
299
+ removeTarget(target: interop.Object | null): void
300
+
301
+ addTargetWithHandler(
302
+ handler: (p1: MPRemoteCommandEvent) => interop.Enum<typeof MPRemoteCommandHandlerStatus>,
303
+ ): interop.Object
304
+
305
+ isEnabled(): boolean
306
+ }
307
+
308
+ declare class MPNowPlayingInfoLanguageOptionGroup extends NSObject {
309
+ initWithLanguageOptionsDefaultLanguageOptionAllowEmptySelection(
310
+ languageOptions: NSArray<interop.Object> | Array<interop.Object>,
311
+ defaultLanguageOption: MPNowPlayingInfoLanguageOption | null,
312
+ allowEmptySelection: boolean,
313
+ ): this
314
+
315
+ readonly languageOptions: NSArray
316
+
317
+ readonly defaultLanguageOption: MPNowPlayingInfoLanguageOption
318
+
319
+ readonly allowEmptySelection: boolean
320
+ }
321
+
322
+ declare class MPNowPlayingInfoLanguageOption extends NSObject {
323
+ initWithTypeLanguageTagCharacteristicsDisplayNameIdentifier(
324
+ languageOptionType: interop.Enum<typeof MPNowPlayingInfoLanguageOptionType>,
325
+ languageTag: string,
326
+ languageOptionCharacteristics: NSArray<interop.Object> | Array<interop.Object> | null,
327
+ displayName: string,
328
+ identifier: string,
329
+ ): this
330
+
331
+ isAutomaticLegibleLanguageOption(): boolean
332
+
333
+ isAutomaticAudibleLanguageOption(): boolean
334
+
335
+ readonly languageOptionType: interop.Enum<typeof MPNowPlayingInfoLanguageOptionType>
336
+
337
+ readonly languageTag: string
338
+
339
+ readonly languageOptionCharacteristics: NSArray
340
+
341
+ readonly displayName: string
342
+
343
+ readonly identifier: string
344
+ }
345
+
346
+ declare class MPContentItem extends NSObject {
347
+ initWithIdentifier(identifier: string): this
348
+
349
+ readonly identifier: string
350
+
351
+ title: string
352
+
353
+ subtitle: string
354
+
355
+ artwork: MPMediaItemArtwork
356
+
357
+ playbackProgress: number
358
+
359
+ streamingContent: boolean
360
+
361
+ explicitContent: boolean
362
+
363
+ container: boolean
364
+
365
+ playable: boolean
366
+
367
+ isStreamingContent(): boolean
368
+
369
+ isExplicitContent(): boolean
370
+
371
+ isContainer(): boolean
372
+
373
+ isPlayable(): boolean
374
+ }
375
+
376
+ declare class MPChangeShuffleModeCommand extends MPRemoteCommand {
377
+ currentShuffleType: interop.Enum<typeof MPShuffleType>
378
+ }
379
+
380
+ declare class MPRatingCommandEvent extends MPRemoteCommandEvent {
381
+ readonly rating: number
382
+ }
383
+
384
+ declare class MPMediaItemArtwork extends NSObject {
385
+ initWithBoundsSizeRequestHandler(
386
+ boundsSize: CGSize,
387
+ requestHandler: (p1: CGSize) => NSImage,
388
+ ): this
389
+
390
+ imageWithSize(size: CGSize): NSImage
391
+
392
+ readonly bounds: CGRect
393
+
394
+ readonly imageCropRect: CGRect
395
+ }
396
+
397
+ declare class MPFeedbackCommand extends MPRemoteCommand {
398
+ active: boolean
399
+
400
+ localizedTitle: string
401
+
402
+ localizedShortTitle: string
403
+
404
+ isActive(): boolean
405
+ }
406
+
407
+ declare class MPNowPlayingInfoCenter extends NSObject {
408
+ static defaultCenter(): MPNowPlayingInfoCenter
409
+
410
+ get nowPlayingInfo(): NSDictionary
411
+ set nowPlayingInfo(
412
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
413
+ )
414
+
415
+ playbackState: interop.Enum<typeof MPNowPlayingPlaybackState>
416
+ }
417
+
418
+ declare class MPRemoteCommandCenter extends NSObject {
419
+ readonly pauseCommand: MPRemoteCommand
420
+
421
+ readonly playCommand: MPRemoteCommand
422
+
423
+ readonly stopCommand: MPRemoteCommand
424
+
425
+ readonly togglePlayPauseCommand: MPRemoteCommand
426
+
427
+ readonly enableLanguageOptionCommand: MPRemoteCommand
428
+
429
+ readonly disableLanguageOptionCommand: MPRemoteCommand
430
+
431
+ readonly changePlaybackRateCommand: MPChangePlaybackRateCommand
432
+
433
+ readonly changeRepeatModeCommand: MPChangeRepeatModeCommand
434
+
435
+ readonly changeShuffleModeCommand: MPChangeShuffleModeCommand
436
+
437
+ readonly nextTrackCommand: MPRemoteCommand
438
+
439
+ readonly previousTrackCommand: MPRemoteCommand
440
+
441
+ readonly skipForwardCommand: MPSkipIntervalCommand
442
+
443
+ readonly skipBackwardCommand: MPSkipIntervalCommand
444
+
445
+ readonly seekForwardCommand: MPRemoteCommand
446
+
447
+ readonly seekBackwardCommand: MPRemoteCommand
448
+
449
+ readonly changePlaybackPositionCommand: MPChangePlaybackPositionCommand
450
+
451
+ readonly ratingCommand: MPRatingCommand
452
+
453
+ readonly likeCommand: MPFeedbackCommand
454
+
455
+ readonly dislikeCommand: MPFeedbackCommand
456
+
457
+ readonly bookmarkCommand: MPFeedbackCommand
458
+
459
+ static sharedCommandCenter(): MPRemoteCommandCenter
460
+ }
461
+
462
+ declare class MPSkipIntervalCommandEvent extends MPRemoteCommandEvent {
463
+ readonly interval: number
464
+ }
465
+
466
+ declare class MPChangePlaybackRateCommand extends MPRemoteCommand {
467
+ get supportedPlaybackRates(): NSArray
468
+ set supportedPlaybackRates(value: NSArray<interop.Object> | Array<interop.Object>)
469
+ }
470
+
471
+ declare class MPFeedbackCommandEvent extends MPRemoteCommandEvent {
472
+ readonly negative: boolean
473
+
474
+ isNegative(): boolean
475
+ }
@@ -0,0 +1,70 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+
3
+ declare const kMTAudioProcessingTapCallbacksVersion_0: number
4
+
5
+ declare const kMTAudioProcessingTapFlag_EndOfStream: number
6
+
7
+ declare const kMTAudioProcessingTapFlag_StartOfStream: number
8
+
9
+ declare const kMTAudioProcessingTapCreationFlag_PreEffects: number
10
+
11
+ declare const kMTAudioProcessingTapCreationFlag_PostEffects: number
12
+
13
+ declare class MTAudioProcessingTapCallbacks {
14
+ constructor(init?: MTAudioProcessingTapCallbacks)
15
+ version: number
16
+ clientInfo: interop.Pointer
17
+ init: (
18
+ p1: interop.PointerConvertible,
19
+ p2: interop.PointerConvertible,
20
+ p3: interop.PointerConvertible,
21
+ ) => void | null
22
+ finalize: (p1: interop.PointerConvertible) => void | null
23
+ prepare: (
24
+ p1: interop.PointerConvertible,
25
+ p2: number,
26
+ p3: interop.PointerConvertible,
27
+ ) => void | null
28
+ unprepare: (p1: interop.PointerConvertible) => void | null
29
+ process: (
30
+ p1: interop.PointerConvertible,
31
+ p2: number,
32
+ p3: number,
33
+ p4: interop.PointerConvertible,
34
+ p5: interop.PointerConvertible,
35
+ p6: interop.PointerConvertible,
36
+ ) => void | null
37
+ }
38
+
39
+ declare class opaqueMTAudioProcessingTap {
40
+ constructor(init?: opaqueMTAudioProcessingTap)
41
+ }
42
+
43
+ declare function MTAudioProcessingTapGetTypeID(): number
44
+
45
+ declare function MTAudioProcessingTapCreate(
46
+ allocator: interop.Object,
47
+ callbacks: interop.PointerConvertible,
48
+ flags: number,
49
+ tapOut: interop.PointerConvertible,
50
+ ): number
51
+
52
+ declare function MTAudioProcessingTapGetStorage(tap: interop.Object): interop.Pointer
53
+
54
+ declare function MTAudioProcessingTapGetSourceAudio(
55
+ tap: interop.Object,
56
+ numberFrames: number,
57
+ bufferListInOut: interop.PointerConvertible,
58
+ flagsOut: interop.PointerConvertible,
59
+ timeRangeOut: interop.PointerConvertible,
60
+ numberFramesOut: interop.PointerConvertible,
61
+ ): number
62
+
63
+ declare function MTRegisterProfessionalVideoWorkflowFormatReaders(): void
64
+
65
+ declare function MTCopyLocalizedNameForMediaType(mediaType: number): interop.Object
66
+
67
+ declare function MTCopyLocalizedNameForMediaSubType(
68
+ mediaType: number,
69
+ mediaSubType: number,
70
+ ): interop.Object