@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.
- package/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const ISyncInvalidArgumentsException: string
|
|
5
|
+
|
|
6
|
+
declare const ISyncInvalidSchemaException: string
|
|
7
|
+
|
|
8
|
+
declare const ISyncSessionDriverFatalError: number
|
|
9
|
+
|
|
10
|
+
declare const ISyncSessionDriverRegistrationError: number
|
|
11
|
+
|
|
12
|
+
declare const ISyncSessionUserCanceledSessionError: number
|
|
13
|
+
|
|
14
|
+
declare const ISyncErrorDomain: string
|
|
15
|
+
|
|
16
|
+
declare const ISyncRecordEntityNameKey: string
|
|
17
|
+
|
|
18
|
+
declare const ISyncUnsupportedEntityException: string
|
|
19
|
+
|
|
20
|
+
declare const ISyncInvalidRecordsKey: string
|
|
21
|
+
|
|
22
|
+
declare const ISyncInvalidRecordReasonsKey: string
|
|
23
|
+
|
|
24
|
+
declare const ISyncInvalidRecordIdentifiersKey: string
|
|
25
|
+
|
|
26
|
+
declare const ISyncSessionCancelledException: string
|
|
27
|
+
|
|
28
|
+
declare const ISyncServerUnavailableException: string
|
|
29
|
+
|
|
30
|
+
declare const ISyncAvailabilityChangedNotification: string
|
|
31
|
+
|
|
32
|
+
declare const ISyncClientTypePeer: string
|
|
33
|
+
|
|
34
|
+
declare const ISyncChangePropertyValueIsDefaultKey: string
|
|
35
|
+
|
|
36
|
+
declare const ISyncChangePropertyValueKey: string
|
|
37
|
+
|
|
38
|
+
declare const ISyncChangePropertyNameKey: string
|
|
39
|
+
|
|
40
|
+
declare const ISyncChangePropertyClear: string
|
|
41
|
+
|
|
42
|
+
declare const ISyncChangePropertySet: string
|
|
43
|
+
|
|
44
|
+
declare const ISyncInvalidEntityException: string
|
|
45
|
+
|
|
46
|
+
declare const ISyncClientTypeDevice: string
|
|
47
|
+
|
|
48
|
+
declare const ISyncChangePropertyActionKey: string
|
|
49
|
+
|
|
50
|
+
declare const ISyncSessionUnavailableException: string
|
|
51
|
+
|
|
52
|
+
declare const ISyncSessionDriverPullFailureError: number
|
|
53
|
+
|
|
54
|
+
declare const ISyncSessionClientAlreadySyncingError: number
|
|
55
|
+
|
|
56
|
+
declare const ISyncClientTypeApplication: string
|
|
57
|
+
|
|
58
|
+
declare const ISyncInvalidRecordException: string
|
|
59
|
+
|
|
60
|
+
declare const ISyncClientTypeServer: string
|
|
61
|
+
|
|
62
|
+
declare const ISyncServerDisabledReason: {
|
|
63
|
+
None: 1000
|
|
64
|
+
ByPreference: 1001
|
|
65
|
+
SharedNetworkHome: 1002
|
|
66
|
+
Unresponsive: 1003
|
|
67
|
+
Unknown: 1004
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare const ISyncSessionDriverMode: {
|
|
71
|
+
Fast: 1
|
|
72
|
+
Slow: 2
|
|
73
|
+
Refresh: 3
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare const __ISyncStatus: {
|
|
77
|
+
Running: 1
|
|
78
|
+
Success: 2
|
|
79
|
+
Warnings: 3
|
|
80
|
+
Errors: 4
|
|
81
|
+
Cancelled: 5
|
|
82
|
+
Failed: 6
|
|
83
|
+
Never: 7
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare const ISyncSessionDriverChangeResult: {
|
|
87
|
+
Refused: 0
|
|
88
|
+
Accepted: 1
|
|
89
|
+
Ignored: 2
|
|
90
|
+
Error: 3
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare const __ISyncChangeType: {
|
|
94
|
+
None: 0
|
|
95
|
+
Add: 1
|
|
96
|
+
Modify: 2
|
|
97
|
+
Delete: 3
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare interface NSPersistentStoreCoordinatorSyncing extends NSObjectProtocol {
|
|
101
|
+
managedObjectContextsToMonitorWhenSyncingPersistentStoreCoordinator?(
|
|
102
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
103
|
+
): NSArray
|
|
104
|
+
|
|
105
|
+
managedObjectContextsToReloadAfterSyncingPersistentStoreCoordinator?(
|
|
106
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
107
|
+
): NSArray
|
|
108
|
+
|
|
109
|
+
persistentStoreCoordinatorShouldStartSyncing?(coordinator: NSPersistentStoreCoordinator): boolean
|
|
110
|
+
|
|
111
|
+
persistentStoreCoordinatorWillPushChangesInSyncSession?(
|
|
112
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
113
|
+
session: ISyncSession,
|
|
114
|
+
): void
|
|
115
|
+
|
|
116
|
+
persistentStoreCoordinatorDidPushChangesInSyncSession?(
|
|
117
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
118
|
+
session: ISyncSession,
|
|
119
|
+
): void
|
|
120
|
+
|
|
121
|
+
persistentStoreCoordinatorWillPullChangesInSyncSession?(
|
|
122
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
123
|
+
session: ISyncSession,
|
|
124
|
+
): void
|
|
125
|
+
|
|
126
|
+
persistentStoreCoordinatorDidPullChangesInSyncSession?(
|
|
127
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
128
|
+
session: ISyncSession,
|
|
129
|
+
): void
|
|
130
|
+
|
|
131
|
+
persistentStoreCoordinatorDidFinishSyncSession?(
|
|
132
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
133
|
+
session: ISyncSession,
|
|
134
|
+
): void
|
|
135
|
+
|
|
136
|
+
persistentStoreCoordinatorDidCancelSyncSessionError?(
|
|
137
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
138
|
+
session: ISyncSession,
|
|
139
|
+
error: NSError,
|
|
140
|
+
): void
|
|
141
|
+
|
|
142
|
+
persistentStoreCoordinatorWillPushRecordForManagedObjectInSyncSession?(
|
|
143
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
144
|
+
record: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
145
|
+
managedObject: NSManagedObject,
|
|
146
|
+
session: ISyncSession,
|
|
147
|
+
): NSDictionary
|
|
148
|
+
|
|
149
|
+
persistentStoreCoordinatorWillDeleteRecordWithIdentifierInSyncSession?(
|
|
150
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
151
|
+
identifier: string,
|
|
152
|
+
session: ISyncSession,
|
|
153
|
+
): boolean
|
|
154
|
+
|
|
155
|
+
persistentStoreCoordinatorWillApplyChangeToManagedObjectInSyncSession?(
|
|
156
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
157
|
+
change: ISyncChange,
|
|
158
|
+
managedObject: NSManagedObject,
|
|
159
|
+
session: ISyncSession,
|
|
160
|
+
): ISyncChange
|
|
161
|
+
|
|
162
|
+
persistentStoreCoordinatorDidApplyChangeToManagedObjectInSyncSession?(
|
|
163
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
164
|
+
change: ISyncChange,
|
|
165
|
+
managedObject: NSManagedObject,
|
|
166
|
+
session: ISyncSession,
|
|
167
|
+
): void
|
|
168
|
+
|
|
169
|
+
persistentStoreCoordinatorDidCommitChangesInSyncSession?(
|
|
170
|
+
coordinator: NSPersistentStoreCoordinator,
|
|
171
|
+
changes: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
172
|
+
session: ISyncSession,
|
|
173
|
+
): void
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class NSPersistentStoreCoordinatorSyncing
|
|
177
|
+
extends NativeObject
|
|
178
|
+
implements NSPersistentStoreCoordinatorSyncing {}
|
|
179
|
+
|
|
180
|
+
declare interface ISyncSessionDriverDataSource {
|
|
181
|
+
clientIdentifier(): string
|
|
182
|
+
|
|
183
|
+
clientDescriptionURL(): NSURL
|
|
184
|
+
|
|
185
|
+
schemaBundleURLs(): NSArray
|
|
186
|
+
|
|
187
|
+
preferredSyncModeForEntityName(entity: string): interop.Enum<typeof ISyncSessionDriverMode>
|
|
188
|
+
|
|
189
|
+
recordsForEntityNameMoreComingError(
|
|
190
|
+
entity: string,
|
|
191
|
+
moreComing: interop.PointerConvertible,
|
|
192
|
+
outError: interop.PointerConvertible,
|
|
193
|
+
): NSDictionary
|
|
194
|
+
|
|
195
|
+
applyChangeForEntityNameRemappedRecordIdentifierFormattedRecordError(
|
|
196
|
+
change: ISyncChange,
|
|
197
|
+
entityName: string,
|
|
198
|
+
outRecordIdentifier: interop.PointerConvertible,
|
|
199
|
+
outRecord: interop.PointerConvertible,
|
|
200
|
+
outError: interop.PointerConvertible,
|
|
201
|
+
): interop.Enum<typeof ISyncSessionDriverChangeResult>
|
|
202
|
+
|
|
203
|
+
deleteAllRecordsForEntityNameError(
|
|
204
|
+
entityName: string,
|
|
205
|
+
outError: interop.PointerConvertible,
|
|
206
|
+
): boolean
|
|
207
|
+
|
|
208
|
+
entityNamesToSync?(): NSArray
|
|
209
|
+
|
|
210
|
+
entityNamesToPull?(): NSArray
|
|
211
|
+
|
|
212
|
+
sessionBeginTimeout?(): number
|
|
213
|
+
|
|
214
|
+
sessionPullChangesTimeout?(): number
|
|
215
|
+
|
|
216
|
+
lastAnchorForEntityName?(entityName: string): string
|
|
217
|
+
|
|
218
|
+
nextAnchorForEntityName?(entityName: string): string
|
|
219
|
+
|
|
220
|
+
changedRecordsForEntityNameMoreComingError?(
|
|
221
|
+
entity: string,
|
|
222
|
+
moreComing: interop.PointerConvertible,
|
|
223
|
+
outError: interop.PointerConvertible,
|
|
224
|
+
): NSDictionary
|
|
225
|
+
|
|
226
|
+
changesForEntityNameMoreComingError?(
|
|
227
|
+
entity: string,
|
|
228
|
+
moreComing: interop.PointerConvertible,
|
|
229
|
+
outError: interop.PointerConvertible,
|
|
230
|
+
): NSArray
|
|
231
|
+
|
|
232
|
+
identifiersForRecordsToDeleteForEntityNameMoreComingError?(
|
|
233
|
+
entityName: string,
|
|
234
|
+
moreComing: interop.PointerConvertible,
|
|
235
|
+
outError: interop.PointerConvertible,
|
|
236
|
+
): NSArray
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare class ISyncSessionDriverDataSource
|
|
240
|
+
extends NativeObject
|
|
241
|
+
implements ISyncSessionDriverDataSource {}
|
|
242
|
+
|
|
243
|
+
declare interface ISyncFiltering extends NSCoding {
|
|
244
|
+
isEqual(anotherFilter: interop.Object): boolean
|
|
245
|
+
|
|
246
|
+
supportedEntityNames(): NSArray
|
|
247
|
+
|
|
248
|
+
shouldApplyRecordWithRecordIdentifier(
|
|
249
|
+
record: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
250
|
+
recordId: string,
|
|
251
|
+
): boolean
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare class ISyncFiltering extends NativeObject implements ISyncFiltering {}
|
|
255
|
+
|
|
256
|
+
declare class ISyncSession extends NSObject {
|
|
257
|
+
static beginSessionWithClientEntityNamesBeforeDate(
|
|
258
|
+
client: ISyncClient,
|
|
259
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
260
|
+
date: NSDate,
|
|
261
|
+
): ISyncSession
|
|
262
|
+
|
|
263
|
+
static beginSessionInBackgroundWithClientEntityNamesTargetSelector(
|
|
264
|
+
client: ISyncClient,
|
|
265
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
266
|
+
target: interop.Object,
|
|
267
|
+
selector: string,
|
|
268
|
+
): void
|
|
269
|
+
|
|
270
|
+
static cancelPreviousBeginSessionWithClient(client: ISyncClient): void
|
|
271
|
+
|
|
272
|
+
static beginSessionWithClientEntityNamesBeforeDateLastAnchors(
|
|
273
|
+
client: ISyncClient,
|
|
274
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
275
|
+
date: NSDate,
|
|
276
|
+
anchors: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
277
|
+
): ISyncSession
|
|
278
|
+
|
|
279
|
+
static beginSessionInBackgroundWithClientEntityNamesTargetSelectorLastAnchors(
|
|
280
|
+
client: ISyncClient,
|
|
281
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
282
|
+
target: interop.Object,
|
|
283
|
+
selector: string,
|
|
284
|
+
anchors: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
285
|
+
): void
|
|
286
|
+
|
|
287
|
+
clientDidResetEntityNames(entityNames: NSArray<interop.Object> | Array<interop.Object>): void
|
|
288
|
+
|
|
289
|
+
clientWantsToPushAllRecordsForEntityNames(
|
|
290
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
291
|
+
): void
|
|
292
|
+
|
|
293
|
+
shouldPushChangesForEntityName(entityName: string): boolean
|
|
294
|
+
|
|
295
|
+
shouldPushAllRecordsForEntityName(entityName: string): boolean
|
|
296
|
+
|
|
297
|
+
shouldPullChangesForEntityName(entityName: string): boolean
|
|
298
|
+
|
|
299
|
+
shouldReplaceAllRecordsOnClientForEntityName(entityName: string): boolean
|
|
300
|
+
|
|
301
|
+
pushChange(change: ISyncChange): void
|
|
302
|
+
|
|
303
|
+
pushChangesFromRecordWithIdentifier(
|
|
304
|
+
record: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
305
|
+
recordId: string,
|
|
306
|
+
): void
|
|
307
|
+
|
|
308
|
+
deleteRecordWithIdentifier(recordId: string): void
|
|
309
|
+
|
|
310
|
+
clientLostRecordWithIdentifierShouldReplaceOnNextSync(recordId: string, flag: boolean): void
|
|
311
|
+
|
|
312
|
+
clientFinishedPushingChangesWithNextAnchors(
|
|
313
|
+
anchors: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
314
|
+
): void
|
|
315
|
+
|
|
316
|
+
prepareToPullChangesForEntityNamesBeforeDate(
|
|
317
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
318
|
+
date: NSDate,
|
|
319
|
+
): boolean
|
|
320
|
+
|
|
321
|
+
prepareToPullChangesInBackgroundForEntityNamesTargetSelector(
|
|
322
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
323
|
+
target: interop.Object,
|
|
324
|
+
selector: string,
|
|
325
|
+
): void
|
|
326
|
+
|
|
327
|
+
changeEnumeratorForEntityNames(
|
|
328
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
329
|
+
): NSEnumerator
|
|
330
|
+
|
|
331
|
+
clientAcceptedChangesForRecordWithIdentifierFormattedRecordNewRecordIdentifier(
|
|
332
|
+
recordId: string,
|
|
333
|
+
formattedRecord:
|
|
334
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
335
|
+
| Record<interop.Object, interop.Object>,
|
|
336
|
+
recordId_: string,
|
|
337
|
+
): void
|
|
338
|
+
|
|
339
|
+
clientRefusedChangesForRecordWithIdentifier(recordId: string): void
|
|
340
|
+
|
|
341
|
+
clientCommittedAcceptedChanges(): void
|
|
342
|
+
|
|
343
|
+
clientCommittedAcceptedChangesWithNextAnchors(
|
|
344
|
+
anchors: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
345
|
+
): void
|
|
346
|
+
|
|
347
|
+
clientChangedRecordIdentifiers(
|
|
348
|
+
oldToNew: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
349
|
+
): void
|
|
350
|
+
|
|
351
|
+
isCancelled(): boolean
|
|
352
|
+
|
|
353
|
+
cancelSyncing(): void
|
|
354
|
+
|
|
355
|
+
finishSyncing(): void
|
|
356
|
+
|
|
357
|
+
clientInfoForRecordWithIdentifier(recordId: string): interop.Object
|
|
358
|
+
|
|
359
|
+
setClientInfoForRecordWithIdentifier(clientInfo: NSCoding, recordId: string): void
|
|
360
|
+
|
|
361
|
+
snapshotOfRecordsInTruth(): ISyncRecordSnapshot
|
|
362
|
+
|
|
363
|
+
ping(): void
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare class ISyncClient extends NSObject {
|
|
367
|
+
clientIdentifier(): string
|
|
368
|
+
|
|
369
|
+
clientType(): string
|
|
370
|
+
|
|
371
|
+
displayName(): string
|
|
372
|
+
|
|
373
|
+
setDisplayName(displayName: string): void
|
|
374
|
+
|
|
375
|
+
imagePath(): string
|
|
376
|
+
|
|
377
|
+
setImagePath(path: string): void
|
|
378
|
+
|
|
379
|
+
supportedEntityNames(): NSArray
|
|
380
|
+
|
|
381
|
+
canPushChangesForEntityName(entityName: string): boolean
|
|
382
|
+
|
|
383
|
+
canPullChangesForEntityName(entityName: string): boolean
|
|
384
|
+
|
|
385
|
+
lastSyncDateForEntityName(entityName: string): NSDate
|
|
386
|
+
|
|
387
|
+
lastSyncStatusForEntityName(entityName: string): number
|
|
388
|
+
|
|
389
|
+
enabledEntityNames(): NSArray
|
|
390
|
+
|
|
391
|
+
isEnabledForEntityName(entityName: string): boolean
|
|
392
|
+
|
|
393
|
+
setEnabledForEntityNames(
|
|
394
|
+
flag: boolean,
|
|
395
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
396
|
+
): void
|
|
397
|
+
|
|
398
|
+
formatsRelationships(): boolean
|
|
399
|
+
|
|
400
|
+
setFormatsRelationships(flag: boolean): void
|
|
401
|
+
|
|
402
|
+
shouldReplaceClientRecordsForEntityName(entityName: string): boolean
|
|
403
|
+
|
|
404
|
+
setShouldReplaceClientRecordsForEntityNames(
|
|
405
|
+
flag: boolean,
|
|
406
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
407
|
+
): void
|
|
408
|
+
|
|
409
|
+
objectForKey(key: string): interop.Object
|
|
410
|
+
|
|
411
|
+
setObjectForKey(value: NSCoding, key: string): void
|
|
412
|
+
|
|
413
|
+
filters(): NSArray
|
|
414
|
+
|
|
415
|
+
setFilters(filters: NSArray<interop.Object> | Array<interop.Object>): void
|
|
416
|
+
|
|
417
|
+
shouldSynchronizeWithClientsOfType(clientType: string): boolean
|
|
418
|
+
|
|
419
|
+
setShouldSynchronizeWithClientsOfType(flag: boolean, clientType: string): void
|
|
420
|
+
|
|
421
|
+
syncAlertToolPath(): string
|
|
422
|
+
|
|
423
|
+
setSyncAlertToolPath(path: string): void
|
|
424
|
+
|
|
425
|
+
setSyncAlertHandlerSelector(handler: interop.Object, selector: string): void
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare class ISyncChange extends NSObject {
|
|
429
|
+
static changeWithTypeRecordIdentifierChanges(
|
|
430
|
+
type: number,
|
|
431
|
+
recordIdentifier: string,
|
|
432
|
+
changes: NSArray<interop.Object> | Array<interop.Object>,
|
|
433
|
+
): interop.Object
|
|
434
|
+
|
|
435
|
+
initWithChangeTypeRecordIdentifierChanges(
|
|
436
|
+
type: number,
|
|
437
|
+
recordIdentifier: string,
|
|
438
|
+
changes: NSArray<interop.Object> | Array<interop.Object>,
|
|
439
|
+
): this
|
|
440
|
+
|
|
441
|
+
type(): number
|
|
442
|
+
|
|
443
|
+
recordIdentifier(): string
|
|
444
|
+
|
|
445
|
+
record(): NSDictionary
|
|
446
|
+
|
|
447
|
+
changes(): NSArray
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
declare class ISyncSessionDriver extends NSObject {
|
|
451
|
+
static sessionDriverWithDataSource(dataSource: ISyncSessionDriverDataSource): ISyncSessionDriver
|
|
452
|
+
|
|
453
|
+
sync(): boolean
|
|
454
|
+
|
|
455
|
+
startAsynchronousSync(outError: interop.PointerConvertible): boolean
|
|
456
|
+
|
|
457
|
+
lastError(): NSError
|
|
458
|
+
|
|
459
|
+
dataSource(): ISyncSessionDriverDataSource
|
|
460
|
+
|
|
461
|
+
setDelegate(delegate: interop.Object): void
|
|
462
|
+
|
|
463
|
+
delegate(): interop.Object
|
|
464
|
+
|
|
465
|
+
setHandlesSyncAlerts(yesOrNo: boolean): void
|
|
466
|
+
|
|
467
|
+
handlesSyncAlerts(): boolean
|
|
468
|
+
|
|
469
|
+
client(): ISyncClient
|
|
470
|
+
|
|
471
|
+
session(): ISyncSession
|
|
472
|
+
|
|
473
|
+
finishSyncing(): void
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare class ISyncFilter extends NSObject {
|
|
477
|
+
static filterMatchingAllFilters(
|
|
478
|
+
filters: NSArray<interop.Object> | Array<interop.Object>,
|
|
479
|
+
): ISyncFiltering
|
|
480
|
+
|
|
481
|
+
static filterMatchingAtLeastOneFilter(
|
|
482
|
+
filters: NSArray<interop.Object> | Array<interop.Object>,
|
|
483
|
+
): ISyncFiltering
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
declare class ISyncRecordReference extends NSObject implements NSCoding {
|
|
487
|
+
encodeWithCoder(coder: NSCoder): void
|
|
488
|
+
|
|
489
|
+
initWithCoder(coder: NSCoder): this
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
declare class ISyncRecordSnapshot extends NSObject {
|
|
493
|
+
recordsWithIdentifiers(recordIds: NSArray<interop.Object> | Array<interop.Object>): NSDictionary
|
|
494
|
+
|
|
495
|
+
targetIdentifiersForRelationshipNameWithSourceIdentifier(
|
|
496
|
+
relationshipName: string,
|
|
497
|
+
sourceId: string,
|
|
498
|
+
): NSArray
|
|
499
|
+
|
|
500
|
+
sourceIdentifiersForRelationshipNameWithTargetIdentifier(
|
|
501
|
+
relationshipName: string,
|
|
502
|
+
sourceId: string,
|
|
503
|
+
): NSArray
|
|
504
|
+
|
|
505
|
+
recordsWithMatchingAttributes(
|
|
506
|
+
attributes:
|
|
507
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
508
|
+
| Record<interop.Object, interop.Object>,
|
|
509
|
+
): NSDictionary
|
|
510
|
+
|
|
511
|
+
recordReferenceForRecordWithIdentifier(identifier: string): ISyncRecordReference
|
|
512
|
+
|
|
513
|
+
recordIdentifierForReferenceIsModified(
|
|
514
|
+
reference: ISyncRecordReference,
|
|
515
|
+
pModified: interop.PointerConvertible,
|
|
516
|
+
): string
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare class ISyncManager extends NSObject {
|
|
520
|
+
static sharedManager(): ISyncManager
|
|
521
|
+
|
|
522
|
+
isEnabled(): boolean
|
|
523
|
+
|
|
524
|
+
syncDisabledReason(): NSError
|
|
525
|
+
|
|
526
|
+
clientWithIdentifier(clientId: string): ISyncClient
|
|
527
|
+
|
|
528
|
+
registerClientWithIdentifierDescriptionFilePath(
|
|
529
|
+
clientId: string,
|
|
530
|
+
descriptionFilePath: string,
|
|
531
|
+
): ISyncClient
|
|
532
|
+
|
|
533
|
+
unregisterClient(client: ISyncClient): void
|
|
534
|
+
|
|
535
|
+
registerSchemaWithBundlePath(bundlePath: string): boolean
|
|
536
|
+
|
|
537
|
+
unregisterSchemaWithName(schemaName: string): void
|
|
538
|
+
|
|
539
|
+
clientWithIdentifierNeedsSyncing(clientId: string, flag: boolean): void
|
|
540
|
+
|
|
541
|
+
snapshotOfRecordsInTruthWithEntityNamesUsingIdentifiersForClient(
|
|
542
|
+
entityNames: NSArray<interop.Object> | Array<interop.Object>,
|
|
543
|
+
client: ISyncClient,
|
|
544
|
+
): ISyncRecordSnapshot
|
|
545
|
+
|
|
546
|
+
addRequestMode(mode: string): void
|
|
547
|
+
|
|
548
|
+
removeRequestMode(mode: string): void
|
|
549
|
+
|
|
550
|
+
requestModes(): NSArray
|
|
551
|
+
}
|