@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,1104 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+
4
+ declare const ICScannerStatusWarmingUp: string
5
+
6
+ declare const ICButtonTypePrint: string
7
+
8
+ declare const ICButtonTypeCopy: string
9
+
10
+ declare const ICButtonTypeMail: string
11
+
12
+ declare const ICButtonTypeScan: string
13
+
14
+ declare const ICDeleteErrorDeviceMissing: string
15
+
16
+ declare const ICDeleteErrorFileMissing: string
17
+
18
+ declare const ICDeleteFailed: string
19
+
20
+ declare const ICDeleteCanceled: string
21
+
22
+ declare const ICDeleteSuccessful: string
23
+
24
+ declare const ICCameraDeviceCanAcceptPTPCommands: string
25
+
26
+ declare const ICCameraDeviceCanSyncClock: string
27
+
28
+ declare const ICCameraDeviceCanDeleteOneFile: string
29
+
30
+ declare const ICCameraDeviceCanTakePicture: string
31
+
32
+ declare const ICTruncateAfterSuccessfulDownload: string
33
+
34
+ declare const ICDownloadSidecarFiles: string
35
+
36
+ declare const ICOverwrite: string
37
+
38
+ declare const ICSavedAncillaryFiles: string
39
+
40
+ declare const ICSavedFilename: string
41
+
42
+ declare const ICSaveAsFilename: string
43
+
44
+ declare const ICDownloadsDirectoryURL: string
45
+
46
+ declare const ICErrorDomain: string
47
+
48
+ declare const ICDeviceLocationDescriptionBluetooth: string
49
+
50
+ declare const ICDeviceLocationDescriptionUSB: string
51
+
52
+ declare const ICEnumerationChronologicalOrder: string
53
+
54
+ declare const ICDeviceCanEjectOrDisconnect: string
55
+
56
+ declare const ICStatusCodeKey: string
57
+
58
+ declare const ICStatusNotificationKey: string
59
+
60
+ declare const ICTransportTypeTCPIP: string
61
+
62
+ declare const ICTransportTypeMassStorage: string
63
+
64
+ declare const ICTransportTypeBluetooth: string
65
+
66
+ declare const ICTransportTypeFireWire: string
67
+
68
+ declare const ICTransportTypeUSB: string
69
+
70
+ declare const ICDeleteErrorReadOnly: string
71
+
72
+ declare const ICRunLoopMode: string
73
+
74
+ declare const ICCameraDeviceCanReceiveFile: string
75
+
76
+ declare const ICButtonTypeWeb: string
77
+
78
+ declare const ICDeviceLocationDescriptionFireWire: string
79
+
80
+ declare const ICLocalizedStatusNotificationKey: string
81
+
82
+ declare const ICScannerStatusWarmUpDone: string
83
+
84
+ declare const ICImageSourceThumbnailMaxPixelSize: string
85
+
86
+ declare const ICCameraDeviceCanTakePictureUsingShutterReleaseOnCamera: string
87
+
88
+ declare const ICDeleteAfterSuccessfulDownload: string
89
+
90
+ declare const ICScannerStatusRequestsOverviewScan: string
91
+
92
+ declare const ICImageSourceShouldCache: string
93
+
94
+ declare const ICButtonTypeTransfer: string
95
+
96
+ declare const ICDeleteErrorCanceled: string
97
+
98
+ declare const ICDeviceLocationDescriptionMassStorage: string
99
+
100
+ declare const ICCameraDeviceSupportsHEIF: string
101
+
102
+ declare const ICCameraDeviceCanDeleteAllFiles: string
103
+
104
+ declare const ICScannerPixelDataType: {
105
+ BW: 0
106
+ Gray: 1
107
+ RGB: 2
108
+ Palette: 3
109
+ CMY: 4
110
+ CMYK: 5
111
+ YUV: 6
112
+ YUVK: 7
113
+ CIEXYZ: 8
114
+ }
115
+
116
+ declare const ICScannerTransferMode: {
117
+ File: 0
118
+ Memory: 1
119
+ }
120
+
121
+ declare const ICScannerFeatureType: {
122
+ Enumeration: 0
123
+ Range: 1
124
+ Boolean: 2
125
+ Template: 3
126
+ }
127
+
128
+ declare const ICScannerFunctionalUnitState: {
129
+ Ready: 1
130
+ ScanInProgress: 2
131
+ OverviewScanInProgress: 4
132
+ }
133
+
134
+ declare const ICScannerBitDepth: {
135
+ Depth1Bit: 1
136
+ Depth8Bits: 8
137
+ Depth16Bits: 16
138
+ }
139
+
140
+ declare const ICLegacyReturnCode: {
141
+ CommunicationErr: -9900
142
+ DeviceNotFoundErr: -9901
143
+ DeviceNotOpenErr: -9902
144
+ FileCorruptedErr: -9903
145
+ IOPendingErr: -9904
146
+ InvalidObjectErr: -9905
147
+ InvalidPropertyErr: -9906
148
+ IndexOutOfRangeErr: -9907
149
+ PropertyTypeNotFoundErr: -9908
150
+ CannotYieldDevice: -9909
151
+ DataTypeNotFoundErr: -9910
152
+ DeviceMemoryAllocationErr: -9911
153
+ DeviceInternalErr: -9912
154
+ DeviceInvalidParamErr: -9913
155
+ DeviceAlreadyOpenErr: -9914
156
+ DeviceLocationIDNotFoundErr: -9915
157
+ DeviceGUIDNotFoundErr: -9916
158
+ DeviceIOServicePathNotFoundErr: -9917
159
+ DeviceUnsupportedErr: -9918
160
+ FrameworkInternalErr: -9919
161
+ ExtensionInternalErr: -9920
162
+ InvalidSessionErr: -9921
163
+ }
164
+
165
+ declare const ICReturnPTPDeviceErrorCode: {
166
+ Failed: -21250
167
+ NotAuthorized: -21249
168
+ }
169
+
170
+ declare const ICReturnCodeOffset: {
171
+ ThumbnailOffset: -21000
172
+ MetadataOffset: -21050
173
+ DownloadOffset: -21100
174
+ DeleteOffset: -21150
175
+ ExFATOffset: -21200
176
+ PTPOffset: -21250
177
+ SystemOffset: -21300
178
+ DeviceOffset: -21350
179
+ DeviceConnection: -21400
180
+ ObjectOffset: -21450
181
+ }
182
+
183
+ declare const ICScannerFunctionalUnitType: {
184
+ Flatbed: 0
185
+ PositiveTransparency: 1
186
+ NegativeTransparency: 2
187
+ DocumentFeeder: 3
188
+ }
189
+
190
+ declare const ICDeviceLocationTypeMask: {
191
+ Local: 256
192
+ Shared: 512
193
+ Bonjour: 1024
194
+ Bluetooth: 2048
195
+ Remote: 65024
196
+ }
197
+
198
+ declare const ICScannerMeasurementUnit: {
199
+ Inches: 0
200
+ Centimeters: 1
201
+ Picas: 2
202
+ Points: 3
203
+ Twips: 4
204
+ Pixels: 5
205
+ }
206
+
207
+ declare const ICMediaPresentation: {
208
+ Converted: 1
209
+ Original: 2
210
+ }
211
+
212
+ declare const ICEXIFOrientationType: {
213
+ Orientation1: 1
214
+ Orientation2: 2
215
+ Orientation3: 3
216
+ Orientation4: 4
217
+ Orientation5: 5
218
+ Orientation6: 6
219
+ Orientation7: 7
220
+ Orientation8: 8
221
+ }
222
+
223
+ declare const ICReturnMetadataErrorCode: {
224
+ NotAvailable: -20150
225
+ AlreadyFetching: -20149
226
+ Canceled: -20148
227
+ Invalid: -20147
228
+ }
229
+
230
+ declare const ICScannerColorDataFormatType: {
231
+ Chunky: 0
232
+ Planar: 1
233
+ }
234
+
235
+ declare const ICDeviceType: {
236
+ Camera: 1
237
+ Scanner: 2
238
+ }
239
+
240
+ declare const ICDeviceTypeMask: {
241
+ Camera: 1
242
+ Scanner: 2
243
+ }
244
+
245
+ declare const ICReturnThumbnailErrorCode: {
246
+ NotAvailable: -21000
247
+ AlreadyFetching: -20999
248
+ Canceled: -20098
249
+ Invalid: -20097
250
+ }
251
+
252
+ declare const ICScannerDocumentType: {
253
+ TypeDefault: 0
254
+ TypeA4: 1
255
+ TypeB5: 2
256
+ TypeUSLetter: 3
257
+ TypeUSLegal: 4
258
+ TypeA5: 5
259
+ TypeISOB4: 6
260
+ TypeISOB6: 7
261
+ TypeUSLedger: 9
262
+ TypeUSExecutive: 10
263
+ TypeA3: 11
264
+ TypeISOB3: 12
265
+ TypeA6: 13
266
+ TypeC4: 14
267
+ TypeC5: 15
268
+ TypeC6: 16
269
+ Type4A0: 17
270
+ Type2A0: 18
271
+ TypeA0: 19
272
+ TypeA1: 20
273
+ TypeA2: 21
274
+ TypeA7: 22
275
+ TypeA8: 23
276
+ TypeA9: 24
277
+ Type10: 25
278
+ TypeISOB0: 26
279
+ TypeISOB1: 27
280
+ TypeISOB2: 28
281
+ TypeISOB5: 29
282
+ TypeISOB7: 30
283
+ TypeISOB8: 31
284
+ TypeISOB9: 32
285
+ TypeISOB10: 33
286
+ TypeJISB0: 34
287
+ TypeJISB1: 35
288
+ TypeJISB2: 36
289
+ TypeJISB3: 37
290
+ TypeJISB4: 38
291
+ TypeJISB6: 39
292
+ TypeJISB7: 40
293
+ TypeJISB8: 41
294
+ TypeJISB9: 42
295
+ TypeJISB10: 43
296
+ TypeC0: 44
297
+ TypeC1: 45
298
+ TypeC2: 46
299
+ TypeC3: 47
300
+ TypeC7: 48
301
+ TypeC8: 49
302
+ TypeC9: 50
303
+ TypeC10: 51
304
+ TypeUSStatement: 52
305
+ TypeBusinessCard: 53
306
+ TypeE: 60
307
+ Type3R: 61
308
+ Type4R: 62
309
+ Type5R: 63
310
+ Type6R: 64
311
+ Type8R: 65
312
+ TypeS8R: 66
313
+ Type10R: 67
314
+ TypeS10R: 68
315
+ Type11R: 69
316
+ Type12R: 70
317
+ TypeS12R: 71
318
+ Type110: 72
319
+ TypeAPSH: 73
320
+ TypeAPSC: 74
321
+ TypeAPSP: 75
322
+ Type135: 76
323
+ TypeMF: 77
324
+ TypeLF: 78
325
+ }
326
+
327
+ declare const ICReturnCode: {
328
+ Success: 0
329
+ InvalidParam: -9922
330
+ CommunicationTimedOut: -9923
331
+ ScanOperationCanceled: -9924
332
+ ScannerInUseByLocalUser: -9925
333
+ ScannerInUseByRemoteUser: -9926
334
+ DeviceFailedToOpenSession: -9927
335
+ DeviceFailedToCloseSession: -9928
336
+ ScannerFailedToSelectFunctionalUnit: -9929
337
+ ScannerFailedToCompleteOverviewScan: -9930
338
+ ScannerFailedToCompleteScan: -9931
339
+ ReceivedUnsolicitedScannerStatusInfo: -9932
340
+ ReceivedUnsolicitedScannerErrorInfo: -9933
341
+ DownloadFailed: -9934
342
+ UploadFailed: -9935
343
+ FailedToCompletePassThroughCommand: -9936
344
+ DownloadCanceled: -9937
345
+ FailedToEnabeTethering: -9938
346
+ FailedToDisabeTethering: -9939
347
+ FailedToCompleteSendMessageRequest: -9940
348
+ DeleteFilesFailed: -9941
349
+ DeleteFilesCanceled: -9942
350
+ DeviceIsPasscodeLocked: -9943
351
+ DeviceFailedToTakePicture: -9944
352
+ DeviceSoftwareNotInstalled: -9945
353
+ DeviceSoftwareIsBeingInstalled: -9946
354
+ DeviceSoftwareInstallationCompleted: -9947
355
+ DeviceSoftwareInstallationCanceled: -9948
356
+ DeviceSoftwareInstallationFailed: -9949
357
+ DeviceSoftwareNotAvailable: -9950
358
+ DeviceCouldNotPair: -9951
359
+ DeviceCouldNotUnpair: -9952
360
+ DeviceNeedsCredentials: -9953
361
+ DeviceIsBusyEnumerating: -9954
362
+ DeviceCommandGeneralFailure: -9955
363
+ DeviceFailedToCompleteTransfer: -9956
364
+ DeviceFailedToSendData: -9957
365
+ SessionNotOpened: -9958
366
+ ExFATVolumeInvalid: 21200
367
+ MultiErrorDictionary: -30000
368
+ }
369
+
370
+ declare const ICReturnObjectErrorCode: {
371
+ DoesNotExist: -21450
372
+ DataOffsetInvalid: -21449
373
+ CouldNotBeRead: -21448
374
+ DataEmpty: -21447
375
+ DataRequestTooLarge: -21446
376
+ }
377
+
378
+ declare const ICReturnConnectionErrorCode: {
379
+ DriverExited: -21350
380
+ ClosedSessionSuddenly: -21349
381
+ EjectedSuddenly: -21348
382
+ SessionAlreadyOpen: -21347
383
+ EjectFailed: -21346
384
+ FailedToOpen: -21345
385
+ FailedToOpenDevice: -21344
386
+ NotAuthorizedToOpenDevice: -21343
387
+ }
388
+
389
+ declare const ICReturnDownloadErrorCode: {
390
+ PathInvalid: -21100
391
+ FileWritable: -21099
392
+ }
393
+
394
+ declare const ICDeviceLocationType: {
395
+ Local: 256
396
+ Shared: 512
397
+ Bonjour: 1024
398
+ Bluetooth: 2048
399
+ }
400
+
401
+ declare interface ICScannerDeviceDelegate extends ICDeviceDelegate {
402
+ scannerDeviceDidBecomeAvailable?(scanner: ICScannerDevice): void
403
+
404
+ scannerDeviceDidSelectFunctionalUnitError?(
405
+ scanner: ICScannerDevice,
406
+ functionalUnit: ICScannerFunctionalUnit,
407
+ error: NSError | null,
408
+ ): void
409
+
410
+ scannerDeviceDidScanToURLData?(scanner: ICScannerDevice, url: NSURL, data: NSData): void
411
+
412
+ scannerDeviceDidScanToURL?(scanner: ICScannerDevice, url: NSURL): void
413
+
414
+ scannerDeviceDidScanToBandData?(scanner: ICScannerDevice, data: ICScannerBandData): void
415
+
416
+ scannerDeviceDidCompleteOverviewScanWithError?(
417
+ scanner: ICScannerDevice,
418
+ error: NSError | null,
419
+ ): void
420
+
421
+ scannerDeviceDidCompleteScanWithError?(scanner: ICScannerDevice, error: NSError | null): void
422
+ }
423
+
424
+ declare class ICScannerDeviceDelegate extends NativeObject implements ICScannerDeviceDelegate {}
425
+
426
+ declare interface ICDeviceBrowserDelegate extends NSObjectProtocol {
427
+ deviceBrowserDidAddDeviceMoreComing(
428
+ browser: ICDeviceBrowser,
429
+ device: ICDevice,
430
+ moreComing: boolean,
431
+ ): void
432
+
433
+ deviceBrowserDidRemoveDeviceMoreGoing(
434
+ browser: ICDeviceBrowser,
435
+ device: ICDevice,
436
+ moreGoing: boolean,
437
+ ): void
438
+
439
+ deviceBrowserDeviceDidChangeName?(browser: ICDeviceBrowser, device: ICDevice): void
440
+
441
+ deviceBrowserDeviceDidChangeSharingState?(browser: ICDeviceBrowser, device: ICDevice): void
442
+
443
+ deviceBrowserRequestsSelectDevice?(browser: ICDeviceBrowser, device: ICDevice): void
444
+
445
+ deviceBrowserDidEnumerateLocalDevices?(browser: ICDeviceBrowser): void
446
+ }
447
+
448
+ declare class ICDeviceBrowserDelegate extends NativeObject implements ICDeviceBrowserDelegate {}
449
+
450
+ declare interface ICCameraDeviceDownloadDelegate extends NSObjectProtocol {
451
+ didDownloadFileErrorOptionsContextInfo?(
452
+ file: ICCameraFile,
453
+ error: NSError | null,
454
+ options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
455
+ contextInfo: interop.PointerConvertible,
456
+ ): void
457
+
458
+ didReceiveDownloadProgressForFileDownloadedBytesMaxBytes?(
459
+ file: ICCameraFile,
460
+ downloadedBytes: number,
461
+ maxBytes: number,
462
+ ): void
463
+ }
464
+
465
+ declare class ICCameraDeviceDownloadDelegate
466
+ extends NativeObject
467
+ implements ICCameraDeviceDownloadDelegate {}
468
+
469
+ declare interface ICDeviceDelegate extends NSObjectProtocol {
470
+ deviceDidCloseSessionWithError(device: ICDevice, error: NSError | null): void
471
+
472
+ didRemoveDevice(device: ICDevice): void
473
+
474
+ deviceDidOpenSessionWithError(device: ICDevice, error: NSError | null): void
475
+
476
+ deviceDidBecomeReady?(device: ICDevice): void
477
+
478
+ deviceDidChangeName?(device: ICDevice): void
479
+
480
+ deviceDidReceiveStatusInformation?(
481
+ device: ICDevice,
482
+ status: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
483
+ ): void
484
+
485
+ deviceDidEncounterError?(device: ICDevice, error: NSError | null): void
486
+
487
+ deviceDidEjectWithError?(device: ICDevice, error: NSError | null): void
488
+
489
+ deviceDidChangeSharingState?(device: ICDevice): void
490
+ }
491
+
492
+ declare class ICDeviceDelegate extends NativeObject implements ICDeviceDelegate {}
493
+
494
+ declare interface ICCameraDeviceDelegate extends ICDeviceDelegate {
495
+ cameraDeviceDidAddItems(
496
+ camera: ICCameraDevice,
497
+ items: NSArray<interop.Object> | Array<interop.Object>,
498
+ ): void
499
+
500
+ cameraDeviceDidRemoveItems(
501
+ camera: ICCameraDevice,
502
+ items: NSArray<interop.Object> | Array<interop.Object>,
503
+ ): void
504
+
505
+ cameraDeviceDidReceiveThumbnailForItemError(
506
+ camera: ICCameraDevice,
507
+ thumbnail: interop.Object | null,
508
+ item: ICCameraItem,
509
+ error: NSError | null,
510
+ ): void
511
+
512
+ cameraDeviceDidReceiveMetadataForItemError(
513
+ camera: ICCameraDevice,
514
+ metadata:
515
+ | NSDictionary<interop.Object, interop.Object>
516
+ | Record<interop.Object, interop.Object>
517
+ | null,
518
+ item: ICCameraItem,
519
+ error: NSError | null,
520
+ ): void
521
+
522
+ cameraDeviceDidRenameItems(
523
+ camera: ICCameraDevice,
524
+ items: NSArray<interop.Object> | Array<interop.Object>,
525
+ ): void
526
+
527
+ cameraDeviceDidChangeCapability(camera: ICCameraDevice): void
528
+
529
+ cameraDeviceDidReceivePTPEvent(camera: ICCameraDevice, eventData: NSData): void
530
+
531
+ deviceDidBecomeReadyWithCompleteContentCatalog(device: ICCameraDevice): void
532
+
533
+ cameraDeviceDidRemoveAccessRestriction(device: ICDevice): void
534
+
535
+ cameraDeviceDidEnableAccessRestriction(device: ICDevice): void
536
+
537
+ cameraDeviceShouldGetThumbnailOfItem?(cameraDevice: ICCameraDevice, item: ICCameraItem): boolean
538
+
539
+ cameraDeviceShouldGetMetadataOfItem?(cameraDevice: ICCameraDevice, item: ICCameraItem): boolean
540
+
541
+ cameraDeviceDidCompleteDeleteFilesWithError?(camera: ICCameraDevice, error: NSError | null): void
542
+
543
+ cameraDeviceDidAddItem?(camera: ICCameraDevice, item: ICCameraItem): void
544
+
545
+ cameraDeviceDidRemoveItem?(camera: ICCameraDevice, item: ICCameraItem): void
546
+
547
+ cameraDeviceDidReceiveThumbnailForItem?(camera: ICCameraDevice, item: ICCameraItem): void
548
+
549
+ cameraDeviceDidReceiveMetadataForItem?(camera: ICCameraDevice, item: ICCameraItem): void
550
+ }
551
+
552
+ declare class ICCameraDeviceDelegate extends NativeObject implements ICCameraDeviceDelegate {}
553
+
554
+ declare class ICScannerBandData extends NSObject {
555
+ readonly fullImageWidth: number
556
+
557
+ readonly fullImageHeight: number
558
+
559
+ readonly bitsPerPixel: number
560
+
561
+ readonly bitsPerComponent: number
562
+
563
+ readonly numComponents: number
564
+
565
+ readonly bigEndian: boolean
566
+
567
+ readonly pixelDataType: interop.Enum<typeof ICScannerPixelDataType>
568
+
569
+ readonly colorSyncProfilePath: string
570
+
571
+ readonly bytesPerRow: number
572
+
573
+ readonly dataStartRow: number
574
+
575
+ readonly dataNumRows: number
576
+
577
+ readonly dataSize: number
578
+
579
+ readonly dataBuffer: NSData
580
+
581
+ isBigEndian(): boolean
582
+ }
583
+
584
+ declare class ICScannerFunctionalUnitNegativeTransparency extends ICScannerFunctionalUnit {
585
+ readonly supportedDocumentTypes: NSIndexSet
586
+
587
+ documentType: interop.Enum<typeof ICScannerDocumentType>
588
+
589
+ readonly documentSize: CGSize
590
+ }
591
+
592
+ declare class ICScannerFeatureRange extends ICScannerFeature {
593
+ currentValue: number
594
+
595
+ readonly defaultValue: number
596
+
597
+ readonly minValue: number
598
+
599
+ readonly maxValue: number
600
+
601
+ readonly stepSize: number
602
+ }
603
+
604
+ declare class ICScannerFeature extends NSObject {
605
+ readonly type: interop.Enum<typeof ICScannerFeatureType>
606
+
607
+ readonly internalName: string
608
+
609
+ readonly humanReadableName: string
610
+
611
+ readonly tooltip: string
612
+ }
613
+
614
+ declare class ICCameraDevice extends ICDevice {
615
+ readonly contentCatalogPercentCompleted: number
616
+
617
+ readonly contents: NSArray
618
+
619
+ readonly mediaFiles: NSArray
620
+
621
+ readonly ejectable: boolean
622
+
623
+ readonly locked: boolean
624
+
625
+ readonly accessRestrictedAppleDevice: boolean
626
+
627
+ readonly iCloudPhotosEnabled: boolean
628
+
629
+ readonly mountPoint: string
630
+
631
+ mediaPresentation: interop.Enum<typeof ICMediaPresentation>
632
+
633
+ filesOfType(fileUTType: string): NSArray
634
+
635
+ requestReadDataFromFileAtOffsetLengthReadDelegateDidReadDataSelectorContextInfo(
636
+ file: ICCameraFile,
637
+ offset: number,
638
+ length: number,
639
+ readDelegate: interop.Object,
640
+ selector: string,
641
+ contextInfo: interop.PointerConvertible,
642
+ ): void
643
+
644
+ requestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo(
645
+ file: ICCameraFile,
646
+ options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
647
+ downloadDelegate: ICCameraDeviceDownloadDelegate,
648
+ selector: string,
649
+ contextInfo: interop.PointerConvertible,
650
+ ): void
651
+
652
+ cancelDownload(): void
653
+
654
+ requestDeleteFiles(files: NSArray<interop.Object> | Array<interop.Object>): void
655
+
656
+ requestDeleteFilesDeleteFailedCompletion(
657
+ files: NSArray<interop.Object> | Array<interop.Object>,
658
+ deleteFailed: (
659
+ p1: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
660
+ ) => void,
661
+ completion: (
662
+ p1: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
663
+ p2: NSError,
664
+ ) => void | null,
665
+ ): NSProgress
666
+
667
+ cancelDelete(): void
668
+
669
+ requestSyncClock(): void
670
+
671
+ readonly timeOffset: number
672
+
673
+ readonly batteryLevelAvailable: boolean
674
+
675
+ readonly batteryLevel: number
676
+
677
+ requestUploadFileOptionsUploadDelegateDidUploadSelectorContextInfo(
678
+ fileURL: NSURL,
679
+ options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
680
+ uploadDelegate: interop.Object,
681
+ selector: string,
682
+ contextInfo: interop.PointerConvertible,
683
+ ): void
684
+
685
+ readonly tetheredCaptureEnabled: boolean
686
+
687
+ requestTakePicture(): void
688
+
689
+ requestEnableTethering(): void
690
+
691
+ requestDisableTethering(): void
692
+
693
+ requestSendPTPCommandOutDataSendCommandDelegateDidSendCommandSelectorContextInfo(
694
+ command: NSData,
695
+ data: NSData | null,
696
+ sendCommandDelegate: interop.Object,
697
+ selector: string,
698
+ contextInfo: interop.PointerConvertible,
699
+ ): void
700
+
701
+ requestSendPTPCommandOutDataCompletion(
702
+ ptpCommand: NSData,
703
+ ptpData: NSData | null,
704
+ completion: (p1: NSData, p2: NSData, p3: NSError) => void | null,
705
+ ): void
706
+
707
+ isEjectable(): boolean
708
+
709
+ isLocked(): boolean
710
+
711
+ isAccessRestrictedAppleDevice(): boolean
712
+ }
713
+
714
+ declare class ICCameraFolder extends ICCameraItem {
715
+ readonly contents: NSArray
716
+ }
717
+
718
+ declare class ICCameraFile extends ICCameraItem {
719
+ readonly width: number
720
+
721
+ readonly height: number
722
+
723
+ readonly originalFilename: string
724
+
725
+ readonly createdFilename: string
726
+
727
+ readonly fileSize: number
728
+
729
+ orientation: interop.Enum<typeof ICEXIFOrientationType>
730
+
731
+ readonly duration: number
732
+
733
+ readonly highFramerate: boolean
734
+
735
+ readonly timeLapse: boolean
736
+
737
+ readonly firstPicked: boolean
738
+
739
+ readonly originatingAssetID: string
740
+
741
+ readonly groupUUID: string
742
+
743
+ readonly gpsString: string
744
+
745
+ readonly relatedUUID: string
746
+
747
+ readonly burstUUID: string
748
+
749
+ readonly burstFavorite: boolean
750
+
751
+ readonly burstPicked: boolean
752
+
753
+ readonly sidecarFiles: NSArray
754
+
755
+ readonly pairedRawImage: ICCameraFile
756
+
757
+ readonly fileCreationDate: NSDate
758
+
759
+ readonly fileModificationDate: NSDate
760
+
761
+ readonly exifCreationDate: NSDate
762
+
763
+ readonly exifModificationDate: NSDate
764
+
765
+ readonly fingerprint: string
766
+
767
+ static fingerprintForFileAtURL(url: NSURL): string | null
768
+
769
+ requestThumbnailDataWithOptionsCompletion(
770
+ options:
771
+ | NSDictionary<interop.Object, interop.Object>
772
+ | Record<interop.Object, interop.Object>
773
+ | null,
774
+ completion: (p1: NSData, p2: NSError) => void | null,
775
+ ): void
776
+
777
+ requestMetadataDictionaryWithOptionsCompletion(
778
+ options:
779
+ | NSDictionary<interop.Object, interop.Object>
780
+ | Record<interop.Object, interop.Object>
781
+ | null,
782
+ completion: (
783
+ p1: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
784
+ p2: NSError,
785
+ ) => void | null,
786
+ ): void
787
+
788
+ requestDownloadWithOptionsCompletion(
789
+ options:
790
+ | NSDictionary<interop.Object, interop.Object>
791
+ | Record<interop.Object, interop.Object>
792
+ | null,
793
+ completion: (p1: string, p2: NSError) => void | null,
794
+ ): NSProgress | null
795
+
796
+ requestReadDataAtOffsetLengthCompletion(
797
+ offset: number,
798
+ length: number,
799
+ completion: (p1: NSData, p2: NSError) => void | null,
800
+ ): void
801
+ }
802
+
803
+ declare class ICScannerFeatureTemplate extends ICScannerFeature {
804
+ readonly targets: NSArray
805
+ }
806
+
807
+ declare class ICScannerFunctionalUnitPositiveTransparency extends ICScannerFunctionalUnit {
808
+ readonly supportedDocumentTypes: NSIndexSet
809
+
810
+ documentType: interop.Enum<typeof ICScannerDocumentType>
811
+
812
+ readonly documentSize: CGSize
813
+ }
814
+
815
+ declare class ICScannerFeatureEnumeration extends ICScannerFeature {
816
+ currentValue: interop.Object
817
+
818
+ readonly defaultValue: interop.Object
819
+
820
+ readonly values: NSArray
821
+
822
+ readonly menuItemLabels: NSArray
823
+
824
+ readonly menuItemLabelsTooltips: NSArray
825
+ }
826
+
827
+ declare class ICCameraItem extends NSObject {
828
+ readonly device: ICCameraDevice
829
+
830
+ readonly parentFolder: ICCameraFolder
831
+
832
+ readonly name: string
833
+
834
+ readonly UTI: string
835
+
836
+ readonly fileSystemPath: string
837
+
838
+ readonly locked: boolean
839
+
840
+ readonly raw: boolean
841
+
842
+ readonly inTemporaryStore: boolean
843
+
844
+ readonly creationDate: NSDate
845
+
846
+ readonly modificationDate: NSDate
847
+
848
+ readonly thumbnail: interop.Object
849
+
850
+ readonly metadata: NSDictionary
851
+
852
+ readonly userData: NSMutableDictionary
853
+
854
+ readonly ptpObjectHandle: number
855
+
856
+ readonly addedAfterContentCatalogCompleted: boolean
857
+
858
+ requestThumbnail(): void
859
+
860
+ requestMetadata(): void
861
+
862
+ flushThumbnailCache(): void
863
+
864
+ flushMetadataCache(): void
865
+
866
+ readonly thumbnailIfAvailable: interop.Object
867
+
868
+ readonly largeThumbnailIfAvailable: interop.Object
869
+
870
+ readonly metadataIfAvailable: NSDictionary
871
+
872
+ isLocked(): boolean
873
+
874
+ isRaw(): boolean
875
+
876
+ isInTemporaryStore(): boolean
877
+
878
+ wasAddedAfterContentCatalogCompleted(): boolean
879
+ }
880
+
881
+ declare class ICDeviceBrowser extends NSObject {
882
+ delegate: ICDeviceBrowserDelegate
883
+
884
+ readonly browsing: boolean
885
+
886
+ browsedDeviceTypeMask: interop.Enum<typeof ICDeviceTypeMask>
887
+
888
+ readonly devices: NSArray
889
+
890
+ readonly preferredDevice: ICDevice
891
+
892
+ init(): this
893
+
894
+ start(): void
895
+
896
+ stop(): void
897
+
898
+ isBrowsing(): boolean
899
+ }
900
+
901
+ declare class ICScannerFunctionalUnitDocumentFeeder extends ICScannerFunctionalUnit {
902
+ readonly supportedDocumentTypes: NSIndexSet
903
+
904
+ documentType: interop.Enum<typeof ICScannerDocumentType>
905
+
906
+ readonly documentSize: CGSize
907
+
908
+ readonly supportsDuplexScanning: boolean
909
+
910
+ duplexScanningEnabled: boolean
911
+
912
+ readonly documentLoaded: boolean
913
+
914
+ oddPageOrientation: interop.Enum<typeof ICEXIFOrientationType>
915
+
916
+ evenPageOrientation: interop.Enum<typeof ICEXIFOrientationType>
917
+
918
+ readonly reverseFeederPageOrder: boolean
919
+ }
920
+
921
+ declare class ICScannerFunctionalUnit extends NSObject {
922
+ readonly type: interop.Enum<typeof ICScannerFunctionalUnitType>
923
+
924
+ pixelDataType: interop.Enum<typeof ICScannerPixelDataType>
925
+
926
+ readonly supportedBitDepths: NSIndexSet
927
+
928
+ bitDepth: interop.Enum<typeof ICScannerBitDepth>
929
+
930
+ readonly supportedMeasurementUnits: NSIndexSet
931
+
932
+ measurementUnit: interop.Enum<typeof ICScannerMeasurementUnit>
933
+
934
+ readonly supportedResolutions: NSIndexSet
935
+
936
+ readonly preferredResolutions: NSIndexSet
937
+
938
+ resolution: number
939
+
940
+ readonly nativeXResolution: number
941
+
942
+ readonly nativeYResolution: number
943
+
944
+ readonly supportedScaleFactors: NSIndexSet
945
+
946
+ readonly preferredScaleFactors: NSIndexSet
947
+
948
+ scaleFactor: number
949
+
950
+ readonly templates: NSArray
951
+
952
+ readonly vendorFeatures: NSArray
953
+
954
+ readonly physicalSize: CGSize
955
+
956
+ scanArea: CGRect
957
+
958
+ scanAreaOrientation: interop.Enum<typeof ICEXIFOrientationType>
959
+
960
+ readonly acceptsThresholdForBlackAndWhiteScanning: boolean
961
+
962
+ usesThresholdForBlackAndWhiteScanning: boolean
963
+
964
+ readonly defaultThresholdForBlackAndWhiteScanning: number
965
+
966
+ thresholdForBlackAndWhiteScanning: number
967
+
968
+ readonly state: interop.Enum<typeof ICScannerFunctionalUnitState>
969
+
970
+ readonly scanInProgress: boolean
971
+
972
+ readonly scanProgressPercentDone: number
973
+
974
+ readonly canPerformOverviewScan: boolean
975
+
976
+ readonly overviewScanInProgress: boolean
977
+
978
+ readonly overviewImage: interop.Object
979
+
980
+ overviewResolution: number
981
+ }
982
+
983
+ declare class ICScannerFeatureBoolean extends ICScannerFeature {
984
+ value: boolean
985
+ }
986
+
987
+ declare class ICScannerFunctionalUnitFlatbed extends ICScannerFunctionalUnit {
988
+ readonly supportedDocumentTypes: NSIndexSet
989
+
990
+ documentType: interop.Enum<typeof ICScannerDocumentType>
991
+
992
+ readonly documentSize: CGSize
993
+ }
994
+
995
+ declare class ICScannerDevice extends ICDevice {
996
+ readonly availableFunctionalUnitTypes: NSArray
997
+
998
+ readonly selectedFunctionalUnit: ICScannerFunctionalUnit
999
+
1000
+ transferMode: interop.Enum<typeof ICScannerTransferMode>
1001
+
1002
+ maxMemoryBandSize: number
1003
+
1004
+ downloadsDirectory: NSURL
1005
+
1006
+ documentName: string
1007
+
1008
+ documentUTI: string
1009
+
1010
+ defaultUsername: string
1011
+
1012
+ requestOpenSessionWithCredentialsPassword(username: string, password: string): void
1013
+
1014
+ requestSelectFunctionalUnit(type: interop.Enum<typeof ICScannerFunctionalUnitType>): void
1015
+
1016
+ requestOverviewScan(): void
1017
+
1018
+ requestScan(): void
1019
+
1020
+ cancelScan(): void
1021
+ }
1022
+
1023
+ declare class ICDevice extends NSObject {
1024
+ delegate: ICDeviceDelegate
1025
+
1026
+ readonly type: interop.Enum<typeof ICDeviceType>
1027
+
1028
+ readonly capabilities: NSArray
1029
+
1030
+ readonly name: string
1031
+
1032
+ readonly productKind: string
1033
+
1034
+ readonly icon: interop.Object
1035
+
1036
+ readonly transportType: string
1037
+
1038
+ readonly UUIDString: string
1039
+
1040
+ readonly locationDescription: string
1041
+
1042
+ readonly hasOpenSession: boolean
1043
+
1044
+ readonly userData: NSMutableDictionary
1045
+
1046
+ readonly modulePath: string
1047
+
1048
+ readonly moduleVersion: string
1049
+
1050
+ readonly serialNumberString: string
1051
+
1052
+ readonly usbLocationID: number
1053
+
1054
+ readonly usbProductID: number
1055
+
1056
+ readonly usbVendorID: number
1057
+
1058
+ requestOpenSession(): void
1059
+
1060
+ requestCloseSession(): void
1061
+
1062
+ requestEject(): void
1063
+
1064
+ requestOpenSessionWithOptionsCompletion(
1065
+ options:
1066
+ | NSDictionary<interop.Object, interop.Object>
1067
+ | Record<interop.Object, interop.Object>
1068
+ | null,
1069
+ completion: (p1: NSError) => void | null,
1070
+ ): void
1071
+
1072
+ requestCloseSessionWithOptionsCompletion(
1073
+ options:
1074
+ | NSDictionary<interop.Object, interop.Object>
1075
+ | Record<interop.Object, interop.Object>
1076
+ | null,
1077
+ completion: (p1: NSError) => void | null,
1078
+ ): void
1079
+
1080
+ requestEjectWithCompletion(completion: (p1: NSError) => void | null): void
1081
+
1082
+ autolaunchApplicationPath: string
1083
+
1084
+ readonly remote: boolean
1085
+
1086
+ readonly persistentIDString: string
1087
+
1088
+ requestSendMessageOutDataMaxReturnedDataSizeSendMessageDelegateDidSendMessageSelectorContextInfo(
1089
+ messageCode: number,
1090
+ data: NSData,
1091
+ maxReturnedDataSize: number,
1092
+ sendMessageDelegate: interop.Object,
1093
+ selector: string,
1094
+ contextInfo: interop.PointerConvertible,
1095
+ ): void
1096
+
1097
+ requestEjectOrDisconnect(): void
1098
+
1099
+ requestYield(): void
1100
+
1101
+ readonly moduleExecutableArchitecture: number
1102
+
1103
+ isRemote(): boolean
1104
+ }