@octane-xplat/macos-renderer 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,657 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+
4
+ declare const CBUUIDCharacteristicValidRangeString: string
5
+
6
+ declare const CBUUIDClientCharacteristicConfigurationString: string
7
+
8
+ declare const CBUUIDCharacteristicUserDescriptionString: string
9
+
10
+ declare const CBPeripheralManagerRestoredStateServicesKey: string
11
+
12
+ declare const CBPeripheralManagerOptionShowPowerAlertKey: string
13
+
14
+ declare const CBATTErrorDomain: string
15
+
16
+ declare const CBCentralManagerRestoredStateScanOptionsKey: string
17
+
18
+ declare const CBCentralManagerRestoredStateScanServicesKey: string
19
+
20
+ declare const CBConnectPeripheralOptionStartDelayKey: string
21
+
22
+ declare const CBConnectPeripheralOptionNotifyOnNotificationKey: string
23
+
24
+ declare const CBConnectPeripheralOptionNotifyOnConnectionKey: string
25
+
26
+ declare const CBCentralManagerScanOptionSolicitedServiceUUIDsKey: string
27
+
28
+ declare const CBCentralManagerOptionShowPowerAlertKey: string
29
+
30
+ declare const CBAdvertisementDataSolicitedServiceUUIDsKey: string
31
+
32
+ declare const CBAdvertisementDataIsConnectable: string
33
+
34
+ declare const CBUUIDCharacteristicObservationScheduleString: string
35
+
36
+ declare const CBAdvertisementDataTxPowerLevelKey: string
37
+
38
+ declare const CBCentralManagerScanOptionAllowDuplicatesKey: string
39
+
40
+ declare const CBConnectPeripheralOptionNotifyOnDisconnectionKey: string
41
+
42
+ declare const CBUUIDCharacteristicExtendedPropertiesString: string
43
+
44
+ declare const CBCentralManagerOptionRestoreIdentifierKey: string
45
+
46
+ declare const CBAdvertisementDataServiceDataKey: string
47
+
48
+ declare const CBPeripheralManagerOptionRestoreIdentifierKey: string
49
+
50
+ declare const CBAdvertisementDataOverflowServiceUUIDsKey: string
51
+
52
+ declare const CBUUIDL2CAPPSMCharacteristicString: string
53
+
54
+ declare const CBUUIDCharacteristicFormatString: string
55
+
56
+ declare const CBAdvertisementDataServiceUUIDsKey: string
57
+
58
+ declare const CBAdvertisementDataLocalNameKey: string
59
+
60
+ declare const CBAdvertisementDataManufacturerDataKey: string
61
+
62
+ declare const CBErrorDomain: string
63
+
64
+ declare const CBUUIDCharacteristicAggregateFormatString: string
65
+
66
+ declare const CBPeripheralManagerRestoredStateAdvertisementDataKey: string
67
+
68
+ declare const CBCentralManagerRestoredStatePeripheralsKey: string
69
+
70
+ declare const CBUUIDServerCharacteristicConfigurationString: string
71
+
72
+ declare const CBAttributePermissions: {
73
+ Readable: 1
74
+ Writeable: 2
75
+ ReadEncryptionRequired: 4
76
+ WriteEncryptionRequired: 8
77
+ }
78
+
79
+ declare const CBCharacteristicWriteType: {
80
+ With: 0
81
+ Without: 1
82
+ }
83
+
84
+ declare const CBPeripheralState: {
85
+ Disconnected: 0
86
+ Connecting: 1
87
+ Connected: 2
88
+ Disconnecting: 3
89
+ }
90
+
91
+ declare const CBPeripheralManagerConnectionLatency: {
92
+ Low: 0
93
+ Medium: 1
94
+ High: 2
95
+ }
96
+
97
+ declare const CBPeripheralManagerState: {
98
+ Unknown: 0
99
+ Resetting: 1
100
+ Unsupported: 2
101
+ Unauthorized: 3
102
+ PoweredOff: 4
103
+ PoweredOn: 5
104
+ }
105
+
106
+ declare const CBConnectionEvent: {
107
+ Disconnected: 0
108
+ Connected: 1
109
+ }
110
+
111
+ declare const CBCentralManagerState: {
112
+ Unknown: 0
113
+ Resetting: 1
114
+ Unsupported: 2
115
+ Unauthorized: 3
116
+ PoweredOff: 4
117
+ PoweredOn: 5
118
+ }
119
+
120
+ declare const CBCharacteristicProperties: {
121
+ Broadcast: 1
122
+ Read: 2
123
+ WriteWithoutResponse: 4
124
+ Write: 8
125
+ Notify: 16
126
+ Indicate: 32
127
+ AuthenticatedSignedWrites: 64
128
+ ExtendedProperties: 128
129
+ NotifyEncryptionRequired: 256
130
+ IndicateEncryptionRequired: 512
131
+ }
132
+
133
+ declare const CBError: {
134
+ Unknown: 0
135
+ InvalidParameters: 1
136
+ InvalidHandle: 2
137
+ NotConnected: 3
138
+ OutOfSpace: 4
139
+ OperationCancelled: 5
140
+ ConnectionTimeout: 6
141
+ PeripheralDisconnected: 7
142
+ UUIDNotAllowed: 8
143
+ AlreadyAdvertising: 9
144
+ ConnectionFailed: 10
145
+ ConnectionLimitReached: 11
146
+ UnkownDevice: 12
147
+ UnknownDevice: 12
148
+ OperationNotSupported: 13
149
+ PeerRemovedPairingInformation: 14
150
+ EncryptionTimedOut: 15
151
+ TooManyLEPairedDevices: 16
152
+ }
153
+
154
+ declare const CBManagerAuthorization: {
155
+ NotDetermined: 0
156
+ Restricted: 1
157
+ Denied: 2
158
+ AllowedAlways: 3
159
+ }
160
+
161
+ declare const CBATTError: {
162
+ Success: 0
163
+ InvalidHandle: 1
164
+ ReadNotPermitted: 2
165
+ WriteNotPermitted: 3
166
+ InvalidPdu: 4
167
+ InsufficientAuthentication: 5
168
+ RequestNotSupported: 6
169
+ InvalidOffset: 7
170
+ InsufficientAuthorization: 8
171
+ PrepareQueueFull: 9
172
+ AttributeNotFound: 10
173
+ AttributeNotLong: 11
174
+ InsufficientEncryptionKeySize: 12
175
+ InvalidAttributeValueLength: 13
176
+ UnlikelyError: 14
177
+ InsufficientEncryption: 15
178
+ UnsupportedGroupType: 16
179
+ InsufficientResources: 17
180
+ }
181
+
182
+ declare const CBPeripheralManagerAuthorizationStatus: {
183
+ NotDetermined: 0
184
+ Restricted: 1
185
+ Denied: 2
186
+ Authorized: 3
187
+ }
188
+
189
+ declare const CBManagerState: {
190
+ Unknown: 0
191
+ Resetting: 1
192
+ Unsupported: 2
193
+ Unauthorized: 3
194
+ PoweredOff: 4
195
+ PoweredOn: 5
196
+ }
197
+
198
+ declare interface CBPeripheralManagerDelegate extends NSObjectProtocol {
199
+ peripheralManagerDidUpdateState(peripheral: CBPeripheralManager): void
200
+
201
+ peripheralManagerWillRestoreState?(
202
+ peripheral: CBPeripheralManager,
203
+ dict: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
204
+ ): void
205
+
206
+ peripheralManagerDidStartAdvertisingError?(
207
+ peripheral: CBPeripheralManager,
208
+ error: NSError | null,
209
+ ): void
210
+
211
+ peripheralManagerDidAddServiceError?(
212
+ peripheral: CBPeripheralManager,
213
+ service: CBService,
214
+ error: NSError | null,
215
+ ): void
216
+
217
+ peripheralManagerCentralDidSubscribeToCharacteristic?(
218
+ peripheral: CBPeripheralManager,
219
+ central: CBCentral,
220
+ characteristic: CBCharacteristic,
221
+ ): void
222
+
223
+ peripheralManagerCentralDidUnsubscribeFromCharacteristic?(
224
+ peripheral: CBPeripheralManager,
225
+ central: CBCentral,
226
+ characteristic: CBCharacteristic,
227
+ ): void
228
+
229
+ peripheralManagerDidReceiveReadRequest?(
230
+ peripheral: CBPeripheralManager,
231
+ request: CBATTRequest,
232
+ ): void
233
+
234
+ peripheralManagerDidReceiveWriteRequests?(
235
+ peripheral: CBPeripheralManager,
236
+ requests: NSArray<interop.Object> | Array<interop.Object>,
237
+ ): void
238
+
239
+ peripheralManagerIsReadyToUpdateSubscribers?(peripheral: CBPeripheralManager): void
240
+
241
+ peripheralManagerDidPublishL2CAPChannelError?(
242
+ peripheral: CBPeripheralManager,
243
+ PSM: number,
244
+ error: NSError | null,
245
+ ): void
246
+
247
+ peripheralManagerDidUnpublishL2CAPChannelError?(
248
+ peripheral: CBPeripheralManager,
249
+ PSM: number,
250
+ error: NSError | null,
251
+ ): void
252
+
253
+ peripheralManagerDidOpenL2CAPChannelError?(
254
+ peripheral: CBPeripheralManager,
255
+ channel: CBL2CAPChannel | null,
256
+ error: NSError | null,
257
+ ): void
258
+ }
259
+
260
+ declare class CBPeripheralManagerDelegate
261
+ extends NativeObject
262
+ implements CBPeripheralManagerDelegate {}
263
+
264
+ declare interface CBCentralManagerDelegate extends NSObjectProtocol {
265
+ centralManagerDidUpdateState(central: CBCentralManager): void
266
+
267
+ centralManagerWillRestoreState?(
268
+ central: CBCentralManager,
269
+ dict: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
270
+ ): void
271
+
272
+ centralManagerDidDiscoverPeripheralAdvertisementDataRSSI?(
273
+ central: CBCentralManager,
274
+ peripheral: CBPeripheral,
275
+ advertisementData:
276
+ | NSDictionary<interop.Object, interop.Object>
277
+ | Record<interop.Object, interop.Object>,
278
+ RSSI: NSNumber,
279
+ ): void
280
+
281
+ centralManagerDidConnectPeripheral?(central: CBCentralManager, peripheral: CBPeripheral): void
282
+
283
+ centralManagerDidFailToConnectPeripheralError?(
284
+ central: CBCentralManager,
285
+ peripheral: CBPeripheral,
286
+ error: NSError | null,
287
+ ): void
288
+
289
+ centralManagerDidDisconnectPeripheralError?(
290
+ central: CBCentralManager,
291
+ peripheral: CBPeripheral,
292
+ error: NSError | null,
293
+ ): void
294
+
295
+ centralManagerDidDisconnectPeripheralTimestampIsReconnectingError?(
296
+ central: CBCentralManager,
297
+ peripheral: CBPeripheral,
298
+ timestamp: number,
299
+ isReconnecting: boolean,
300
+ error: NSError | null,
301
+ ): void
302
+ }
303
+
304
+ declare class CBCentralManagerDelegate extends NativeObject implements CBCentralManagerDelegate {}
305
+
306
+ declare interface CBPeripheralDelegate extends NSObjectProtocol {
307
+ peripheralDidUpdateName?(peripheral: CBPeripheral): void
308
+
309
+ peripheralDidModifyServices?(
310
+ peripheral: CBPeripheral,
311
+ invalidatedServices: NSArray<interop.Object> | Array<interop.Object>,
312
+ ): void
313
+
314
+ peripheralDidUpdateRSSIError?(peripheral: CBPeripheral, error: NSError | null): void
315
+
316
+ peripheralDidReadRSSIError?(peripheral: CBPeripheral, RSSI: NSNumber, error: NSError | null): void
317
+
318
+ peripheralDidDiscoverServices?(peripheral: CBPeripheral, error: NSError | null): void
319
+
320
+ peripheralDidDiscoverIncludedServicesForServiceError?(
321
+ peripheral: CBPeripheral,
322
+ service: CBService,
323
+ error: NSError | null,
324
+ ): void
325
+
326
+ peripheralDidDiscoverCharacteristicsForServiceError?(
327
+ peripheral: CBPeripheral,
328
+ service: CBService,
329
+ error: NSError | null,
330
+ ): void
331
+
332
+ peripheralDidUpdateValueForCharacteristicError?(
333
+ peripheral: CBPeripheral,
334
+ characteristic: CBCharacteristic,
335
+ error: NSError | null,
336
+ ): void
337
+
338
+ peripheralDidWriteValueForCharacteristicError?(
339
+ peripheral: CBPeripheral,
340
+ characteristic: CBCharacteristic,
341
+ error: NSError | null,
342
+ ): void
343
+
344
+ peripheralDidUpdateNotificationStateForCharacteristicError?(
345
+ peripheral: CBPeripheral,
346
+ characteristic: CBCharacteristic,
347
+ error: NSError | null,
348
+ ): void
349
+
350
+ peripheralDidDiscoverDescriptorsForCharacteristicError?(
351
+ peripheral: CBPeripheral,
352
+ characteristic: CBCharacteristic,
353
+ error: NSError | null,
354
+ ): void
355
+
356
+ peripheralDidUpdateValueForDescriptorError?(
357
+ peripheral: CBPeripheral,
358
+ descriptor: CBDescriptor,
359
+ error: NSError | null,
360
+ ): void
361
+
362
+ peripheralDidWriteValueForDescriptorError?(
363
+ peripheral: CBPeripheral,
364
+ descriptor: CBDescriptor,
365
+ error: NSError | null,
366
+ ): void
367
+
368
+ peripheralIsReadyToSendWriteWithoutResponse?(peripheral: CBPeripheral): void
369
+
370
+ peripheralDidOpenL2CAPChannelError?(
371
+ peripheral: CBPeripheral,
372
+ channel: CBL2CAPChannel | null,
373
+ error: NSError | null,
374
+ ): void
375
+ }
376
+
377
+ declare class CBPeripheralDelegate extends NativeObject implements CBPeripheralDelegate {}
378
+
379
+ declare class CBUUID extends NSObject implements NSCopying {
380
+ readonly data: NSData
381
+
382
+ readonly UUIDString: string
383
+
384
+ static UUIDWithString(theString: string): CBUUID
385
+
386
+ static UUIDWithData(theData: NSData): CBUUID
387
+
388
+ static UUIDWithCFUUID(theUUID: interop.Object): CBUUID
389
+
390
+ static UUIDWithNSUUID(theUUID: NSUUID): CBUUID
391
+
392
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
393
+ }
394
+
395
+ declare class CBMutableDescriptor extends CBDescriptor {
396
+ initWithTypeValue(UUID: CBUUID, value: interop.Object | null): this
397
+ }
398
+
399
+ declare class CBCharacteristic extends CBAttribute {
400
+ readonly service: CBService | null
401
+
402
+ readonly properties: interop.Enum<typeof CBCharacteristicProperties>
403
+
404
+ readonly value: NSData
405
+
406
+ readonly descriptors: NSArray
407
+
408
+ readonly isBroadcasted: boolean
409
+
410
+ readonly isNotifying: boolean
411
+ }
412
+
413
+ declare class CBService extends CBAttribute {
414
+ readonly peripheral: CBPeripheral | null
415
+
416
+ readonly isPrimary: boolean
417
+
418
+ readonly includedServices: NSArray
419
+
420
+ readonly characteristics: NSArray
421
+ }
422
+
423
+ declare class CBPeripheral extends CBPeer {
424
+ delegate: CBPeripheralDelegate
425
+
426
+ readonly name: string
427
+
428
+ readonly RSSI: NSNumber
429
+
430
+ readonly state: interop.Enum<typeof CBPeripheralState>
431
+
432
+ readonly services: NSArray
433
+
434
+ readonly canSendWriteWithoutResponse: boolean
435
+
436
+ readRSSI(): void
437
+
438
+ discoverServices(serviceUUIDs: NSArray<interop.Object> | Array<interop.Object> | null): void
439
+
440
+ discoverIncludedServicesForService(
441
+ includedServiceUUIDs: NSArray<interop.Object> | Array<interop.Object> | null,
442
+ service: CBService,
443
+ ): void
444
+
445
+ discoverCharacteristicsForService(
446
+ characteristicUUIDs: NSArray<interop.Object> | Array<interop.Object> | null,
447
+ service: CBService,
448
+ ): void
449
+
450
+ readValueForCharacteristic(characteristic: CBCharacteristic): void
451
+
452
+ maximumWriteValueLengthForType(type: interop.Enum<typeof CBCharacteristicWriteType>): number
453
+
454
+ writeValueForCharacteristicType(
455
+ data: NSData,
456
+ characteristic: CBCharacteristic,
457
+ type: interop.Enum<typeof CBCharacteristicWriteType>,
458
+ ): void
459
+
460
+ setNotifyValueForCharacteristic(enabled: boolean, characteristic: CBCharacteristic): void
461
+
462
+ discoverDescriptorsForCharacteristic(characteristic: CBCharacteristic): void
463
+
464
+ readValueForDescriptor(descriptor: CBDescriptor): void
465
+
466
+ writeValueForDescriptor(data: NSData, descriptor: CBDescriptor): void
467
+
468
+ openL2CAPChannel(PSM: number): void
469
+ }
470
+
471
+ declare class CBPeer extends NSObject implements NSCopying {
472
+ readonly identifier: NSUUID
473
+
474
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
475
+ }
476
+
477
+ declare class CBManager extends NSObject {
478
+ readonly state: interop.Enum<typeof CBManagerState>
479
+
480
+ readonly authorization: interop.Enum<typeof CBManagerAuthorization>
481
+
482
+ static readonly authorization: interop.Enum<typeof CBManagerAuthorization>
483
+ }
484
+
485
+ declare class CBCentral extends CBPeer {
486
+ readonly maximumUpdateValueLength: number
487
+ }
488
+
489
+ declare class CBL2CAPChannel extends NSObject {
490
+ readonly peer: CBPeer
491
+
492
+ readonly inputStream: NSInputStream
493
+
494
+ readonly outputStream: NSOutputStream
495
+
496
+ readonly PSM: number
497
+ }
498
+
499
+ declare class CBATTRequest extends NSObject {
500
+ readonly central: CBCentral
501
+
502
+ readonly characteristic: CBCharacteristic
503
+
504
+ readonly offset: number
505
+
506
+ value: NSData
507
+ }
508
+
509
+ declare class CBPeripheralManager extends CBManager {
510
+ delegate: CBPeripheralManagerDelegate
511
+
512
+ readonly isAdvertising: boolean
513
+
514
+ static authorizationStatus(): interop.Enum<typeof CBPeripheralManagerAuthorizationStatus>
515
+
516
+ init(): this
517
+
518
+ initWithDelegateQueue(delegate: CBPeripheralManagerDelegate | null, queue: NSObject | null): this
519
+
520
+ initWithDelegateQueueOptions(
521
+ delegate: CBPeripheralManagerDelegate | null,
522
+ queue: NSObject | null,
523
+ options:
524
+ | NSDictionary<interop.Object, interop.Object>
525
+ | Record<interop.Object, interop.Object>
526
+ | null,
527
+ ): this
528
+
529
+ startAdvertising(
530
+ advertisementData:
531
+ | NSDictionary<interop.Object, interop.Object>
532
+ | Record<interop.Object, interop.Object>
533
+ | null,
534
+ ): void
535
+
536
+ stopAdvertising(): void
537
+
538
+ setDesiredConnectionLatencyForCentral(
539
+ latency: interop.Enum<typeof CBPeripheralManagerConnectionLatency>,
540
+ central: CBCentral,
541
+ ): void
542
+
543
+ addService(service: CBMutableService): void
544
+
545
+ removeService(service: CBMutableService): void
546
+
547
+ removeAllServices(): void
548
+
549
+ respondToRequestWithResult(request: CBATTRequest, result: interop.Enum<typeof CBATTError>): void
550
+
551
+ updateValueForCharacteristicOnSubscribedCentrals(
552
+ value: NSData,
553
+ characteristic: CBMutableCharacteristic,
554
+ centrals: NSArray<interop.Object> | Array<interop.Object> | null,
555
+ ): boolean
556
+
557
+ publishL2CAPChannelWithEncryption(encryptionRequired: boolean): void
558
+
559
+ unpublishL2CAPChannel(PSM: number): void
560
+ }
561
+
562
+ declare class CBDescriptor extends CBAttribute {
563
+ readonly characteristic: CBCharacteristic | null
564
+
565
+ readonly value: interop.Object
566
+ }
567
+
568
+ // @ts-ignore ClassDecl.tsIgnore
569
+ declare class CBMutableCharacteristic extends CBCharacteristic {
570
+ permissions: interop.Enum<typeof CBAttributePermissions>
571
+
572
+ readonly subscribedCentrals: NSArray
573
+
574
+ // @ts-ignore MemberDecl.tsIgnore
575
+ properties: interop.Enum<typeof CBCharacteristicProperties>
576
+
577
+ // @ts-ignore MemberDecl.tsIgnore
578
+ value: NSData
579
+
580
+ // @ts-ignore MemberDecl.tsIgnore
581
+ get descriptors(): NSArray
582
+ // @ts-ignore MemberDecl.tsIgnore
583
+ set descriptors(value: NSArray<interop.Object> | Array<interop.Object>)
584
+
585
+ initWithTypePropertiesValuePermissions(
586
+ UUID: CBUUID,
587
+ properties: interop.Enum<typeof CBCharacteristicProperties>,
588
+ value: NSData | null,
589
+ permissions: interop.Enum<typeof CBAttributePermissions>,
590
+ ): this
591
+ }
592
+
593
+ declare class CBCentralManager extends CBManager {
594
+ delegate: CBCentralManagerDelegate
595
+
596
+ readonly isScanning: boolean
597
+
598
+ init(): this
599
+
600
+ initWithDelegateQueue(delegate: CBCentralManagerDelegate | null, queue: NSObject | null): this
601
+
602
+ initWithDelegateQueueOptions(
603
+ delegate: CBCentralManagerDelegate | null,
604
+ queue: NSObject | null,
605
+ options:
606
+ | NSDictionary<interop.Object, interop.Object>
607
+ | Record<interop.Object, interop.Object>
608
+ | null,
609
+ ): this
610
+
611
+ retrievePeripheralsWithIdentifiers(
612
+ identifiers: NSArray<interop.Object> | Array<interop.Object>,
613
+ ): NSArray
614
+
615
+ retrieveConnectedPeripheralsWithServices(
616
+ serviceUUIDs: NSArray<interop.Object> | Array<interop.Object>,
617
+ ): NSArray
618
+
619
+ scanForPeripheralsWithServicesOptions(
620
+ serviceUUIDs: NSArray<interop.Object> | Array<interop.Object> | null,
621
+ options:
622
+ | NSDictionary<interop.Object, interop.Object>
623
+ | Record<interop.Object, interop.Object>
624
+ | null,
625
+ ): void
626
+
627
+ stopScan(): void
628
+
629
+ connectPeripheralOptions(
630
+ peripheral: CBPeripheral,
631
+ options:
632
+ | NSDictionary<interop.Object, interop.Object>
633
+ | Record<interop.Object, interop.Object>
634
+ | null,
635
+ ): void
636
+
637
+ cancelPeripheralConnection(peripheral: CBPeripheral): void
638
+ }
639
+
640
+ declare class CBAttribute extends NSObject {
641
+ readonly UUID: CBUUID
642
+ }
643
+
644
+ // @ts-ignore ClassDecl.tsIgnore
645
+ declare class CBMutableService extends CBService {
646
+ // @ts-ignore MemberDecl.tsIgnore
647
+ get includedServices(): NSArray
648
+ // @ts-ignore MemberDecl.tsIgnore
649
+ set includedServices(value: NSArray<interop.Object> | Array<interop.Object>)
650
+
651
+ // @ts-ignore MemberDecl.tsIgnore
652
+ get characteristics(): NSArray
653
+ // @ts-ignore MemberDecl.tsIgnore
654
+ set characteristics(value: NSArray<interop.Object> | Array<interop.Object>)
655
+
656
+ initWithTypePrimary(UUID: CBUUID, isPrimary: boolean): this
657
+ }