peachsim 0.1.1744 → 0.1.1801

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 (690) hide show
  1. package/README.md +28 -28
  2. package/cli/account-gate.ts +97 -0
  3. package/cli/app-catalog.ts +24 -0
  4. package/cli/app-stubs.ts +7 -0
  5. package/cli/auth.ts +48 -18
  6. package/cli/bin.ts +35 -2
  7. package/cli/bridge-flow-runner.ts +174 -6
  8. package/cli/cloud-dispatch.ts +0 -3
  9. package/cli/command-registry.ts +2 -6
  10. package/cli/commands/auth.ts +68 -3
  11. package/cli/commands/compat.ts +1116 -0
  12. package/cli/commands/control.ts +90 -13
  13. package/cli/commands/coverage.ts +85 -116
  14. package/cli/commands/detox.ts +20 -20
  15. package/cli/commands/device.ts +31 -27
  16. package/cli/commands/doctor.ts +76 -1032
  17. package/cli/commands/flow.ts +80 -41
  18. package/cli/commands/guest-host.ts +2 -2
  19. package/cli/commands/inspect/core.ts +8 -7
  20. package/cli/commands/inspect/settling.ts +60 -25
  21. package/cli/commands/inspect/wait-ready.ts +6 -4
  22. package/cli/commands/inspect/wait-selector.ts +32 -18
  23. package/cli/commands/inspect.ts +8 -6
  24. package/cli/commands/kotlin.ts +15 -6
  25. package/cli/commands/logout.ts +4 -2
  26. package/cli/commands/maestro-compare.ts +19 -37
  27. package/cli/commands/maestro-generate.ts +4 -4
  28. package/cli/commands/maestro.ts +56 -37
  29. package/cli/commands/package.ts +136 -57
  30. package/cli/commands/preview.ts +10 -1
  31. package/cli/commands/{film.ts → record-three.ts} +33 -28
  32. package/cli/commands/record.ts +41 -39
  33. package/cli/commands/screenshots.ts +4 -0
  34. package/cli/commands/setup.ts +38 -1
  35. package/cli/commands/shell-url.ts +49 -24
  36. package/cli/commands/swift.ts +29 -11
  37. package/cli/commands/test.ts +43 -13
  38. package/cli/commands/upload.ts +12 -9
  39. package/cli/drivers/playwright-core-pin.ts +2 -2
  40. package/cli/flow-export.ts +1 -1
  41. package/cli/flow-file.ts +1 -1
  42. package/cli/internal-child.ts +3 -8
  43. package/cli/maestro-compare.ts +73 -7
  44. package/cli/maestro-js.ts +1 -1
  45. package/cli/maestro-report.ts +1 -1
  46. package/cli/maestro-workspace.ts +66 -4
  47. package/cli/main.ts +22 -55
  48. package/cli/native-input.ts +13 -20
  49. package/cli/outbound-endpoints.ts +40 -7
  50. package/cli/output-redaction.ts +8 -3
  51. package/cli/packaged-app-launcher.ts +40 -28
  52. package/cli/prompt.ts +20 -0
  53. package/cli/recording-access.ts +7 -7
  54. package/cli/run-registry.ts +1 -1
  55. package/cli/scene-video.ts +0 -4
  56. package/cli/ws-bridge.ts +7 -4
  57. package/detox/index.ts +293 -50
  58. package/detox/jest-preset.cjs +6 -0
  59. package/detox/launch-permissions.ts +1 -21
  60. package/dist-lib/agent-daemon-client.cjs +1 -1
  61. package/dist-lib/agent-events.cjs +1 -1
  62. package/dist-lib/attached-projects.cjs +1 -1
  63. package/dist-lib/auth/shared-session.cjs +1 -1
  64. package/dist-lib/backend-origin.cjs +1 -1
  65. package/dist-lib/beta.cjs +1 -1
  66. package/dist-lib/beta.mjs +1 -1
  67. package/dist-lib/bridge-constants.cjs +1 -1
  68. package/dist-lib/bridge-contract-input.cjs +1 -1
  69. package/dist-lib/bridge-contract-input.mjs +1 -1
  70. package/dist-lib/bridge-contract.cjs +2 -8
  71. package/dist-lib/bridge-contract.mjs +2 -7
  72. package/dist-lib/bundle-channel.cjs +45273 -38265
  73. package/dist-lib/capture-contract.cjs +37 -14
  74. package/dist-lib/capture-contract.mjs +36 -13
  75. package/dist-lib/cloud-contract.cjs +1 -1
  76. package/dist-lib/cloud-contract.mjs +1 -1
  77. package/dist-lib/cloud-test-args.cjs +1 -1
  78. package/dist-lib/cloud-test-args.mjs +1 -1
  79. package/dist-lib/cloud.cjs +2 -2
  80. package/dist-lib/cloud.mjs +2 -2
  81. package/dist-lib/config.cjs +1 -1
  82. package/dist-lib/config.mjs +1 -1
  83. package/dist-lib/detox/index.cjs +562 -126
  84. package/dist-lib/detox/jest-preset.cjs +6 -0
  85. package/dist-lib/dev-bundle-resolution.cjs +18 -13
  86. package/dist-lib/expo-swift-bundle.cjs +28566 -23874
  87. package/dist-lib/expo-swift-metadata.cjs +104 -2
  88. package/dist-lib/expo-swift-metadata.mjs +104 -2
  89. package/dist-lib/home-paths.cjs +8 -5
  90. package/dist-lib/host/bridge-host.cjs +36618 -29846
  91. package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
  92. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  93. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  94. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  95. package/dist-lib/host/websocket-proxy.cjs +5 -2
  96. package/dist-lib/index.cjs +1921 -1549
  97. package/dist-lib/jump-to-source-babel.cjs +1 -1
  98. package/dist-lib/jump-to-source-native.cjs +1 -1
  99. package/dist-lib/kotlin-host.cjs +1 -1
  100. package/dist-lib/menu.cjs +21 -7
  101. package/dist-lib/menu.mjs +21 -7
  102. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  103. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  104. package/dist-lib/metro-production-bundle.cjs +1 -1
  105. package/dist-lib/metro-production-bundle.mjs +1 -1
  106. package/dist-lib/metro.cjs +1877 -1584
  107. package/dist-lib/native-app-identity-project.cjs +1274 -951
  108. package/dist-lib/native-app-identity-project.mjs +1414 -963
  109. package/dist-lib/native-app-identity.cjs +64 -58
  110. package/dist-lib/native-app-identity.mjs +64 -58
  111. package/dist-lib/native-firebase-metadata.cjs +1 -1
  112. package/dist-lib/native-firebase-metadata.mjs +1 -1
  113. package/dist-lib/plist.cjs +1 -1
  114. package/dist-lib/plist.mjs +1 -1
  115. package/dist-lib/profiles.cjs +1 -1
  116. package/dist-lib/public-brand.cjs +1 -1
  117. package/dist-lib/public-origins-lib-esm.json +79 -33
  118. package/dist-lib/public-origins-lib-static.json +1 -1
  119. package/dist-lib/public-origins-lib.json +484 -280
  120. package/dist-lib/react-native-host-modules.cjs +3 -1
  121. package/dist-lib/react-native-host-modules.mjs +3 -1
  122. package/dist-lib/reap-browser.cjs +23 -26
  123. package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
  124. package/dist-lib/sdk.cjs +69 -36
  125. package/dist-lib/sdk.mjs +69 -36
  126. package/dist-lib/skills.cjs +33781 -27141
  127. package/dist-lib/swift-compile.cjs +3759 -2520
  128. package/dist-lib/swift-compile.mjs +3680 -2441
  129. package/dist-lib/swift-package.cjs +33 -1
  130. package/dist-lib/swift-package.mjs +31 -1
  131. package/dist-lib/swift-submit.cjs +1 -1
  132. package/dist-lib/swift-submit.mjs +1 -1
  133. package/dist-lib/swift-toolchain.cjs +102 -5
  134. package/dist-lib/swift.cjs +1 -1
  135. package/dist-lib/vite-swift.cjs +16480 -14579
  136. package/dist-lib/vite.cjs +269 -295
  137. package/dist-lib/worklet-executable.cjs +1 -1
  138. package/dist-lib/worklet-executable.mjs +1 -1
  139. package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
  140. package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
  141. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
  142. package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
  143. package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
  144. package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
  145. package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
  146. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
  147. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
  148. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
  149. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
  150. package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
  151. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
  152. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
  153. package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
  154. package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
  155. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
  156. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
  157. package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
  158. package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
  159. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
  160. package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
  161. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
  162. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
  163. package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
  164. package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
  165. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
  166. package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
  167. package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
  168. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
  169. package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
  170. package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
  171. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
  172. package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
  173. package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
  174. package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
  175. package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
  176. package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
  177. package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
  178. package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
  179. package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
  180. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  181. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
  182. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
  183. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
  184. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
  185. package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
  186. package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
  187. package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
  188. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
  189. package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
  190. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
  191. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
  192. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
  193. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
  194. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
  195. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
  196. package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
  197. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
  198. package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
  199. package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
  200. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
  201. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
  202. package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
  203. package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
  204. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
  205. package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
  206. package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
  207. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
  208. package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
  209. package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
  210. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
  211. package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
  212. package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
  213. package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
  214. package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
  215. package/install.sh +20 -1
  216. package/package.json +6 -5
  217. package/runtime-companion.json +1 -1
  218. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
  219. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
  220. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
  221. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
  222. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
  223. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
  224. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
  225. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
  226. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
  227. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
  228. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
  229. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
  230. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
  231. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
  232. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
  233. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
  234. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
  235. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
  236. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
  237. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
  238. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
  239. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
  240. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
  241. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
  242. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
  243. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
  244. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
  245. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
  246. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
  247. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
  248. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
  249. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
  250. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
  251. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
  252. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
  253. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
  254. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
  255. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
  256. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
  257. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
  258. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
  259. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
  260. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
  261. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
  262. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
  263. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
  264. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
  265. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
  266. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
  267. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
  268. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
  269. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
  270. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
  271. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
  272. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
  273. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
  274. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
  275. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
  276. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
  277. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
  278. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
  279. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
  280. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
  281. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
  282. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
  283. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
  284. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
  285. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
  286. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
  287. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
  288. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
  289. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
  290. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
  291. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
  292. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
  293. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
  294. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
  295. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
  296. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
  297. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
  298. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
  299. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
  300. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
  301. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
  302. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
  303. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
  304. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
  305. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
  306. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
  307. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
  308. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
  309. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
  310. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
  311. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
  312. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
  313. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
  314. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
  315. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
  316. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
  317. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
  318. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
  319. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
  320. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
  321. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
  322. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
  323. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
  324. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
  325. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
  326. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
  327. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
  328. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
  329. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
  330. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
  331. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
  332. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
  333. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
  334. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
  335. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
  336. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
  337. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
  338. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
  339. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
  340. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
  341. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
  342. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
  343. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
  344. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
  345. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
  346. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
  347. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
  348. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
  349. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
  350. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
  351. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
  352. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
  353. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
  354. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
  355. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
  356. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
  357. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
  358. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
  359. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
  360. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
  361. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
  362. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
  363. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
  364. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
  365. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
  366. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
  367. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
  368. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
  369. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
  370. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
  371. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
  372. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
  373. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
  374. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
  375. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
  376. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
  377. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
  378. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
  379. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
  380. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
  381. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
  382. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
  383. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
  384. package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
  385. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
  386. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
  387. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
  388. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
  389. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
  390. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
  391. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
  392. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
  393. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
  394. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
  395. package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
  396. package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
  397. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
  398. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
  399. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
  400. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
  401. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
  402. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
  403. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
  404. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
  405. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
  406. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
  407. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
  408. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
  409. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
  410. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
  411. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
  412. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
  413. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
  414. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
  415. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
  416. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
  417. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
  418. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
  419. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
  420. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
  421. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
  422. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
  423. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
  424. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
  425. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
  426. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
  427. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
  428. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
  429. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
  430. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
  431. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
  432. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
  433. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
  434. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
  435. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
  436. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
  437. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
  438. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
  439. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
  440. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
  441. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
  442. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
  443. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
  444. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
  445. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
  446. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
  447. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
  448. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
  449. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
  450. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
  451. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
  452. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
  453. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
  454. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
  455. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
  456. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
  457. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
  458. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
  459. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
  460. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
  461. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
  462. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
  463. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
  464. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
  465. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
  466. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
  467. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
  468. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
  469. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
  470. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
  471. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
  472. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
  473. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
  474. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
  475. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
  476. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
  477. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
  478. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
  479. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
  480. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
  481. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
  482. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
  483. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
  484. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
  485. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
  486. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
  487. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
  488. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
  489. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
  490. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
  491. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
  492. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
  493. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
  494. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
  495. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
  496. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
  497. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
  498. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
  499. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
  500. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
  501. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
  502. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
  503. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
  504. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
  505. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
  506. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
  507. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
  508. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
  509. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
  510. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
  511. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
  512. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
  513. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
  514. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
  515. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
  516. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
  517. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
  518. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
  519. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
  520. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
  521. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
  522. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
  523. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
  524. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
  525. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
  526. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
  527. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
  528. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
  529. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
  530. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
  531. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
  532. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
  533. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
  534. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
  535. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
  536. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
  537. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
  538. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
  539. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
  540. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
  541. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
  542. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
  543. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
  544. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
  545. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
  546. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
  547. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
  548. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
  549. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
  550. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
  551. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
  552. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
  553. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
  554. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
  555. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
  556. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
  557. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
  558. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
  559. package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
  560. package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
  561. package/sdk/ios/usr/include/MacTypes.h +8 -0
  562. package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
  563. package/sdk/ios/wasm/include/fcntl.h +1 -0
  564. package/sdk/ios/wasm/include/pthread.h +2 -0
  565. package/sdk/ios/wasm/include/stdlib.h +1 -0
  566. package/sdk/native-hashes.json +11 -1
  567. package/skills/contrast/SKILL.md +4 -9
  568. package/skills/peach-perf/SKILL.md +3 -1
  569. package/skills/peach-perf/references/profiling.md +1 -1
  570. package/skills/peach-test/SKILL.md +20 -17
  571. package/skills/peach-test/references/detox.md +7 -7
  572. package/skills/peach-test/references/maestro.md +20 -18
  573. package/src/admitted-mac-build.ts +7 -0
  574. package/src/android-autolinking.ts +2 -2
  575. package/src/android-drawables.ts +5 -5
  576. package/src/android-string-value.ts +1 -1
  577. package/src/android-strings.ts +1 -1
  578. package/src/android-theme.ts +2 -2
  579. package/src/appPackageContract.ts +1 -1
  580. package/src/bridge-contract.ts +12 -16
  581. package/src/build-cache.ts +65 -0
  582. package/src/bundle-channel.mjs +69 -9
  583. package/src/capture-contract.ts +55 -17
  584. package/src/chromium-admission.ts +24 -21
  585. package/src/conformance-comparison-contract.ts +105 -40
  586. package/src/dev-bundle-resolution.ts +23 -10
  587. package/src/device-catalog.ts +35 -2
  588. package/src/disk-cleanup.ts +18 -8
  589. package/src/expo-autolinking.ts +24 -0
  590. package/src/expo-discovery-cache.ts +168 -23
  591. package/src/expo-native-workspace.ts +551 -191
  592. package/src/expo-swift-host.ts +711 -314
  593. package/src/expo-swift-ready.ts +39 -5
  594. package/src/expo-widget-assets.ts +2 -2
  595. package/src/expo-widgets-bundle.ts +56 -0
  596. package/src/expo-workspace-exclusion.ts +62 -0
  597. package/src/expoSwiftContract.ts +27 -4
  598. package/src/forked-script-contract.ts +3 -0
  599. package/src/home-paths.ts +10 -6
  600. package/src/host/bridge-host.ts +27 -0
  601. package/src/host/network-policy.ts +1 -1
  602. package/src/kotlin-app.ts +9 -11
  603. package/src/kotlin-host.ts +2 -2
  604. package/src/launchMetadataContract.ts +5 -0
  605. package/src/menu.ts +19 -5
  606. package/src/native-app-identity-project.ts +35 -49
  607. package/src/native-app-identity.ts +5 -6
  608. package/src/native-firebase-config.ts +10 -48
  609. package/src/native-prebuilt.ts +3 -2
  610. package/src/native-slices.ts +39 -0
  611. package/src/native-static-libraries.ts +73 -0
  612. package/src/nitro-adapter.lock.json +249 -249
  613. package/src/nitro-adapter.ts +16 -5
  614. package/src/nitro-bundle.ts +35 -16
  615. package/src/nitro-compile.ts +254 -16
  616. package/src/nitro-compiler-digest.ts +39 -0
  617. package/src/nitro-dependencies.ts +368 -28
  618. package/src/nitro-source.ts +432 -77
  619. package/src/nitro-superset.lock.json +27 -36
  620. package/src/nitro-superset.ts +6 -0
  621. package/src/nitroAdapterContract.ts +52 -0
  622. package/src/nitroContract.ts +40 -4
  623. package/src/numbered-lock.ts +2 -2
  624. package/src/one-native-app-accent.ts +32 -0
  625. package/src/one-widget-discovery.ts +6 -1
  626. package/src/one-widget-metadata.ts +2 -2
  627. package/src/portable-expo-contract.ts +103 -0
  628. package/src/portable-expo-workspace.ts +94 -0
  629. package/src/prepared-native-inventory.ts +93 -0
  630. package/src/prepared-xcode-phases.ts +194 -0
  631. package/src/process-group.ts +8 -15
  632. package/src/process-table.ts +117 -0
  633. package/src/react-native-bridge-modules.ts +240 -14
  634. package/src/react-native-coverage/native-typescript-parser.ts +11 -2
  635. package/src/react-native-coverage/verified-reach.ts +12 -6
  636. package/src/react-native-host-modules.ts +2 -0
  637. package/src/reap-browser.ts +13 -9
  638. package/src/retired-cache-directory.ts +34 -0
  639. package/src/runtime-assets.ts +1 -0
  640. package/src/screenshots/orchestrate.ts +4 -0
  641. package/src/screenshots/schema.ts +2 -2
  642. package/src/storageSnapshotContract.ts +9 -2
  643. package/src/stub-pattern-matcher.ts +53 -19
  644. package/src/swift-compile.ts +1011 -327
  645. package/src/swift-compiler-digest.ts +3 -0
  646. package/src/swift-coverage/indexing.ts +1 -1
  647. package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
  648. package/src/swift-coverage/xcode-assets.ts +2 -1
  649. package/src/swift-cxx-declarations.ts +114 -130
  650. package/src/swift-cxx-standin.ts +3 -3
  651. package/src/swift-darwin-records.ts +88 -0
  652. package/src/swift-distribution.lock.json +15 -12
  653. package/src/swift-distribution.ts +25 -9
  654. package/src/swift-host.ts +443 -142
  655. package/src/swift-icu.ts +72 -4
  656. package/src/swift-link-roots.ts +2 -0
  657. package/src/swift-objc-compile.ts +312 -65
  658. package/src/swift-objc-import.ts +8 -1
  659. package/src/swift-objc-standin.ts +20 -2
  660. package/src/swift-package-manifest.ts +189 -57
  661. package/src/swift-package.ts +51 -0
  662. package/src/swift-packages.ts +117 -45
  663. package/src/swift-pdf-raster.ts +7 -4
  664. package/src/swift-project-user.ts +183 -0
  665. package/src/swift-reproducible.ts +26 -0
  666. package/src/swift-root-lock.ts +34 -62
  667. package/src/swift-shared-sdk.ts +232 -21
  668. package/src/swift-source-pods.ts +9 -2
  669. package/src/swift-standin-emit.ts +248 -7
  670. package/src/swift-standins.ts +130 -108
  671. package/src/swift-submit.ts +3 -0
  672. package/src/swift-toolchain.ts +109 -8
  673. package/src/swift-wasm-prune.ts +210 -55
  674. package/src/swiftContract.ts +14 -0
  675. package/src/swiftGuestImageContract.ts +113 -0
  676. package/src/turbo-bundle.ts +5 -8
  677. package/src/turbo-codegen-intake.ts +134 -0
  678. package/src/turbo-compile.ts +198 -21
  679. package/src/turbo-native-libraries.ts +98 -0
  680. package/src/turbo-runtime.lock.json +25 -18
  681. package/src/turbo-source.ts +1519 -147
  682. package/src/vite-plugin-one.ts +25 -3
  683. package/src/vite-plugin-swift.ts +5 -1
  684. package/src/vite-plugin.ts +40 -18
  685. package/src/worker-system-chunks.ts +103 -15
  686. package/src/worklets-babel.ts +50 -29
  687. package/src/xcode-header-search.ts +15 -5
  688. package/src/xcode-project.ts +444 -88
  689. package/src/xcode-target-members.ts +72 -63
  690. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
@@ -0,0 +1,996 @@
1
+ /*
2
+ File: CMSync.h
3
+
4
+ Framework: CoreMedia
5
+
6
+ Copyright © 2006-2026 Apple Inc. All rights reserved.
7
+
8
+ */
9
+
10
+ #ifndef __CMSYNC__
11
+ #define __CMSYNC__
12
+
13
+ #include <CoreMedia/CMBase.h>
14
+ #include <CoreMedia/CMTime.h>
15
+ #include <dispatch/dispatch.h>
16
+
17
+
18
+ #ifndef COREMEDIA_SUPPORTS_GENLOCK_CLOCK
19
+ #if TARGET_OS_MACCATALYST
20
+ #define COREMEDIA_SUPPORTS_GENLOCK_CLOCK (__IPHONE_OS_VERSION_MIN_REQUIRED >= 270000)
21
+ #elif TARGET_OS_OSX
22
+ #define COREMEDIA_SUPPORTS_GENLOCK_CLOCK (__MAC_OS_X_VERSION_MIN_REQUIRED >= 270000)
23
+ #else
24
+ #define COREMEDIA_SUPPORTS_GENLOCK_CLOCK 0
25
+ #endif
26
+ #endif // not defined COREMEDIA_SUPPORTS_GENLOCK_CLOCK
27
+
28
+ #ifdef __cplusplus
29
+ extern "C" {
30
+ #endif
31
+
32
+ #pragma pack(push, 4)
33
+
34
+ CF_IMPLICIT_BRIDGING_ENABLED
35
+
36
+ /*!
37
+ @typedef CMClock
38
+ @abstract A timing source object.
39
+ @discussion
40
+ A clock represents a source of time information: generally, a piece of hardware that measures the passage of time.
41
+ One example of a clock is the host time clock, accessible via CMClockGetHostTimeClock().
42
+ It measures time using the CPU system clock, which on Mac OS X is mach_absolute_time().
43
+ Every audio device can also be considered a clock since the audio samples that it outputs or inputs each have a
44
+ defined duration (eg, 1/48000 of a second for 48 kHz audio).
45
+
46
+ CMClocks are read-only: they cannot be stopped or started, and the current time cannot be set.
47
+ A CMClock has one primary function, CMClockGetTime, which tells what time it is now.
48
+ Additionally, the CMSync infrastructure monitors relative drift between CMClocks.
49
+ */
50
+
51
+ typedef struct CM_BRIDGED_TYPE(id) OpaqueCMClock* CMClockRef API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0)) CM_SWIFT_SENDABLE; // a CF type; use CFRetain and CFRelease
52
+ CM_SWIFT_INIT_FOR_CF_TYPE(CMClock, API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0)))
53
+
54
+ /*!
55
+ @typedef CMTimebase
56
+ @abstract Models a timeline under application control.
57
+ @discussion
58
+ A timebase represents a timeline that clients can control by setting the rate and time.
59
+ Each timebase has either a source clock or a source timebase (previously referred to as a master clock or master timebase).
60
+ The rate of the timebase is expressed relative to its source.
61
+ When a timebase has rate 0.0, its time is fixed and does not change as its source's time changes.
62
+ When a timebase has rate 1.0, its time increases one second as its source's time increases by one second.
63
+ When a timebase has rate 2.0, its time increases two seconds as its source's time increases by one second.
64
+ When a timebase has rate -1.0, its time decreases one second as its source's time increases by one second.
65
+
66
+ If a timebase has a source timebase, the source timebase's rate is a factor in determining the timebase's effective rate.
67
+ In fact, a timebase's effective rate is defined as the product of its rate, its source timebase's rate,
68
+ its source timebase's source timebase's rate, and so on up to the ultimate source clock. This is the rate at which
69
+ the timebase's time changes relative to the ultimate source clock.
70
+ */
71
+
72
+ typedef struct CM_BRIDGED_TYPE(id) OpaqueCMTimebase* CMTimebaseRef API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0)) CM_SWIFT_SENDABLE; // a CF type; use CFRetain and CFRelease
73
+ CM_SWIFT_INIT_FOR_CF_TYPE(CMTimebase, API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0)))
74
+
75
+ typedef CM_BRIDGED_TYPE(id) CFTypeRef CMClockOrTimebaseRef API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0)) CM_SWIFT_SENDABLE; // used in argument lists and function results to indicate that either may be passed
76
+
77
+ #ifndef CMTIMEBASE_USE_SOURCE_TERMINOLOGY
78
+ #if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= __MAC_12_0) || (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= __IPHONE_15_0) || (__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ >= __TVOS_15_0) || (__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ >= __WATCHOS_8_0) || TARGET_OS_VISION || 0
79
+ #define CMTIMEBASE_USE_SOURCE_TERMINOLOGY 1 // When using the SDK that includes this header file, apps may adopt the newer terminology and continue to deploy to prior OS versions.
80
+ #else
81
+ #define CMTIMEBASE_USE_SOURCE_TERMINOLOGY 0 // Prior to 2021, the source clock or source timebase was referred to as a master clock or master timebase.
82
+ #endif
83
+ #endif
84
+
85
+
86
+ // CMClock error codes
87
+ #if COREMEDIA_USE_DERIVED_ENUMS_FOR_CONSTANTS
88
+ enum : OSStatus
89
+ #else
90
+ enum
91
+ #endif
92
+ {
93
+ kCMClockError_MissingRequiredParameter = -12745,
94
+ kCMClockError_InvalidParameter = -12746,
95
+ kCMClockError_AllocationFailed = -12747,
96
+ kCMClockError_UnsupportedOperation = -12756,
97
+ } API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
98
+
99
+ #if COREMEDIA_USE_DERIVED_ENUMS_FOR_CONSTANTS
100
+ enum : OSStatus
101
+ #else
102
+ enum
103
+ #endif
104
+ {
105
+ kCMClockError_PreferredStartTimeNotAvailable = -12758,
106
+ } API_AVAILABLE(macos(27.0), macCatalyst(27.0), ios(27.0), tvos(27.0), watchos(27.0), visionos(27.0));
107
+
108
+ // CMTimebase error codes
109
+ #if COREMEDIA_USE_DERIVED_ENUMS_FOR_CONSTANTS
110
+ enum : OSStatus
111
+ #else
112
+ enum
113
+ #endif
114
+ {
115
+ kCMTimebaseError_MissingRequiredParameter = -12748,
116
+ kCMTimebaseError_InvalidParameter = -12749,
117
+ kCMTimebaseError_AllocationFailed = -12750,
118
+ kCMTimebaseError_TimerIntervalTooShort = -12751,
119
+ kCMTimebaseError_ReadOnly = -12757,
120
+ } API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
121
+
122
+ // CMSync error codes
123
+ #if COREMEDIA_USE_DERIVED_ENUMS_FOR_CONSTANTS
124
+ enum : OSStatus
125
+ #else
126
+ enum
127
+ #endif
128
+ {
129
+ kCMSyncError_MissingRequiredParameter = -12752,
130
+ kCMSyncError_InvalidParameter = -12753,
131
+ kCMSyncError_AllocationFailed = -12754,
132
+ kCMSyncError_RateMustBeNonZero = -12755,
133
+ } API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
134
+
135
+ /*!
136
+ @function CMClockGetTypeID
137
+ @abstract Returns the CFTypeID for CMClock.
138
+ */
139
+ CM_EXPORT CFTypeID
140
+ CMClockGetTypeID( void )
141
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
142
+
143
+ /*!
144
+ @function CMClockGetHostTimeClock
145
+ @abstract Returns a reference to the singleton clock logically identified with host time.
146
+ @discussion
147
+ On Mac OS X, the host time clock uses mach_absolute_time but returns a value
148
+ with a large integer timescale (eg, nanoseconds).
149
+ */
150
+ CM_EXPORT CMClockRef CM_NONNULL
151
+ CMClockGetHostTimeClock( void )
152
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
153
+
154
+ /*!
155
+ @function CMClockConvertHostTimeToSystemUnits
156
+ @abstract Converts a host time from CMTime to the host time's native units.
157
+ @discussion
158
+ This function performs a scale conversion, not a clock conversion.
159
+ It can be more accurate than CMTimeConvertScale because the system units may
160
+ have a non-integer timescale.
161
+ On Mac OS X, this function converts to the units of mach_absolute_time.
162
+ */
163
+ CM_EXPORT uint64_t
164
+ CMClockConvertHostTimeToSystemUnits( CMTime hostTime )
165
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
166
+
167
+ /*!
168
+ @function CMClockMakeHostTimeFromSystemUnits
169
+ @abstract Converts a host time from native units to CMTime.
170
+ @discussion
171
+ The returned value will have a large integer timescale (eg, nanoseconds).
172
+ This function handles situations where host time's native units use a
173
+ non-integer timescale.
174
+ On Mac OS X, this function converts from the units of mach_absolute_time.
175
+ */
176
+ CM_EXPORT CMTime
177
+ CMClockMakeHostTimeFromSystemUnits( uint64_t hostTime )
178
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
179
+
180
+ /*!
181
+ @function CMClockGetTime
182
+ @abstract Retrieves the current time from a clock.
183
+ */
184
+ CM_EXPORT CMTime
185
+ CMClockGetTime(
186
+ CMClockRef CM_NONNULL clock )
187
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
188
+
189
+ /*!
190
+ @function CMClockGetAnchorTime
191
+ @abstract Retrieves the current time from a clock and also the matching time from the clock's reference clock.
192
+ @discussion To make practical use of this, you may need to know what the clock's reference clock is.
193
+ */
194
+ CM_EXPORT OSStatus
195
+ CMClockGetAnchorTime(
196
+ CMClockRef CM_NONNULL clock,
197
+ CMTime * CM_NONNULL clockTimeOut,
198
+ CMTime * CM_NONNULL referenceClockTimeOut )
199
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
200
+
201
+ /*!
202
+ @function CMClockMightDrift
203
+ @abstract Indicates whether it is possible for two clocks to drift relative to each other.
204
+ */
205
+ CM_EXPORT Boolean
206
+ CMClockMightDrift(
207
+ CMClockRef CM_NONNULL clock,
208
+ CMClockRef CM_NONNULL otherClock )
209
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
210
+
211
+ /// Indicates whether a clock implements the `CMClockGetPreferredStartTimePattern` function.
212
+ CM_EXPORT Boolean
213
+ CMClockImplementsGetPreferredStartTimePattern(
214
+ CMClockRef CM_NONNULL clock ) CM_REFINED_FOR_SWIFT
215
+ API_AVAILABLE(macos(27.0), macCatalyst(27.0), ios(27.0), tvos(27.0), watchos(27.0), visionos(27.0));
216
+
217
+ /// Retrieves a description of the pattern of preferred start times, such as for synchronization with an external genlock signal.
218
+ ///
219
+ /// When the system is disciplined to a sync signal, this function returns a
220
+ /// matched time pair in the near future and the delta between successive times.
221
+ /// - Parameters:
222
+ /// - outClockStartTime: Points to a CMTime to receive the clock time of the next preferred start time pair.
223
+ /// - outHostClockStartTime: Points to a CMTime to receive the host clock time of the next preferred start time pair.
224
+ /// - outDeltaBetweenPreferredStartTimes: Points to a CMTime to receive the delta between successive preferred start times.
225
+ /// Integer multiples of this delta may be added to the clock start time and
226
+ /// host clock start time to calculate near future preferred start times.
227
+ /// - Returns: `noErr` on success, `kCMClockError_UnsupportedOperation` if the clock does not
228
+ /// support this function, or `kCMClockError_PreferredStartTimeNotAvailable` if the system is
229
+ /// not disciplined to a present signal.
230
+ CM_EXPORT OSStatus
231
+ CMClockGetPreferredStartTimePattern(
232
+ CMClockRef CM_NONNULL clock,
233
+ CMTime * CM_NULLABLE outClockStartTime,
234
+ CMTime * CM_NULLABLE outHostClockStartTime,
235
+ CMTime * CM_NULLABLE outDeltaBetweenPreferredStartTimes ) CM_REFINED_FOR_SWIFT
236
+ API_AVAILABLE(macos(27.0), macCatalyst(27.0), ios(27.0), tvos(27.0), watchos(27.0), visionos(27.0));
237
+
238
+ /*!
239
+ @function CMClockInvalidate
240
+ @abstract Makes the clock stop functioning.
241
+ @discussion
242
+ After invalidation, the clock will return errors from all APIs.
243
+ This should only be called by the "owner" of the clock, who knows (for example) that some piece of hardware
244
+ has gone away, and the clock will no longer work (and might even crash).
245
+ */
246
+ CM_EXPORT void
247
+ CMClockInvalidate(
248
+ CMClockRef CM_NONNULL clock )
249
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
250
+
251
+
252
+ /*!
253
+ @function CMTimebaseGetTypeID
254
+ @abstract Returns the CFTypeID for CMTimebase.
255
+ */
256
+ CM_EXPORT CFTypeID
257
+ CMTimebaseGetTypeID( void )
258
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
259
+
260
+ CF_IMPLICIT_BRIDGING_DISABLED
261
+
262
+ /*!
263
+ @function CMTimebaseCreateWithSourceClock
264
+ @abstract Creates a timebase driven by the given clock.
265
+ @discussion
266
+ The timebase will initially have rate zero and time zero.
267
+ Pass CMClockGetHostTimeClock() for sourceClock to have the host time clock drive this timebase.
268
+ */
269
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
270
+ CM_EXPORT OSStatus
271
+ CMTimebaseCreateWithSourceClock(
272
+ CFAllocatorRef CM_NULLABLE allocator,
273
+ CMClockRef CM_NONNULL sourceClock,
274
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
275
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
276
+
277
+ static inline OSStatus
278
+ CMTimebaseCreateWithMasterClock(
279
+ CFAllocatorRef CM_NULLABLE allocator,
280
+ CMClockRef CM_NONNULL masterClock,
281
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
282
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCreateWithSourceClock", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0, 1.0))
283
+ {
284
+ return CMTimebaseCreateWithSourceClock(allocator, masterClock, timebaseOut);
285
+ }
286
+ #else
287
+ CM_EXPORT OSStatus
288
+ CMTimebaseCreateWithMasterClock(
289
+ CFAllocatorRef CM_NULLABLE allocator,
290
+ CMClockRef CM_NONNULL masterClock,
291
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
292
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCreateWithSourceClock", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
293
+ static inline OSStatus
294
+ CMTimebaseCreateWithSourceClock(
295
+ CFAllocatorRef CM_NULLABLE allocator,
296
+ CMClockRef CM_NONNULL sourceClock,
297
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
298
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0))
299
+ {
300
+ return CMTimebaseCreateWithMasterClock(allocator, sourceClock, timebaseOut);
301
+ }
302
+ #endif
303
+
304
+ /*!
305
+ @function CMTimebaseCreateWithSourceTimebase
306
+ @abstract Creates a timebase driven by the given source timebase.
307
+ @discussion
308
+ The timebase will initially have rate zero and time zero.
309
+ */
310
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
311
+ CM_EXPORT OSStatus
312
+ CMTimebaseCreateWithSourceTimebase(
313
+ CFAllocatorRef CM_NULLABLE allocator,
314
+ CMTimebaseRef CM_NONNULL sourceTimebase,
315
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
316
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
317
+
318
+ static inline OSStatus
319
+ CMTimebaseCreateWithMasterTimebase(
320
+ CFAllocatorRef CM_NULLABLE allocator,
321
+ CMTimebaseRef CM_NONNULL masterTimebase,
322
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
323
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCreateWithSourceTimebase", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
324
+ {
325
+ return CMTimebaseCreateWithSourceTimebase(allocator, masterTimebase, timebaseOut);
326
+ }
327
+ #else
328
+ CM_EXPORT OSStatus
329
+ CMTimebaseCreateWithMasterTimebase(
330
+ CFAllocatorRef CM_NULLABLE allocator,
331
+ CMTimebaseRef CM_NONNULL masterTimebase,
332
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
333
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCreateWithSourceTimebase", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
334
+ static inline OSStatus
335
+ CMTimebaseCreateWithSourceTimebase(
336
+ CFAllocatorRef CM_NULLABLE allocator,
337
+ CMTimebaseRef CM_NONNULL sourceTimebase,
338
+ CM_RETURNS_RETAINED_PARAMETER CMTimebaseRef CM_NULLABLE * CM_NONNULL timebaseOut )
339
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0))
340
+ {
341
+ return CMTimebaseCreateWithMasterTimebase(allocator, sourceTimebase, timebaseOut);
342
+ }
343
+ #endif
344
+
345
+ CF_IMPLICIT_BRIDGING_ENABLED
346
+
347
+ /*!
348
+ @function CMTimebaseCopySourceTimebase
349
+ @abstract Returns the immediate source timebase of a timebase.
350
+ @discussion
351
+ Returns NULL if the timebase actually has a source clock instead of a source timebase.
352
+ */
353
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
354
+ CM_EXPORT CMTimebaseRef CM_NULLABLE
355
+ CMTimebaseCopySourceTimebase(
356
+ CMTimebaseRef CM_NONNULL timebase )
357
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0));
358
+ static inline CMTimebaseRef CM_NULLABLE
359
+ CMTimebaseCopyMasterTimebase(
360
+ CMTimebaseRef CM_NONNULL timebase )
361
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySourceTimebase", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
362
+ {
363
+ return CMTimebaseCopySourceTimebase(timebase);
364
+ }
365
+ #else
366
+ CM_EXPORT CMTimebaseRef CM_NULLABLE
367
+ CMTimebaseCopyMasterTimebase(
368
+ CMTimebaseRef CM_NONNULL timebase )
369
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySourceTimebase", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
370
+ static inline CMTimebaseRef CM_NULLABLE
371
+ CMTimebaseCopySourceTimebase(
372
+ CMTimebaseRef CM_NONNULL timebase )
373
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0))
374
+ {
375
+ return CMTimebaseCopyMasterTimebase(timebase);
376
+ }
377
+ #endif
378
+
379
+ /*!
380
+ @function CMTimebaseCopySourceClock
381
+ @abstract Returns the immediate source clock of a timebase.
382
+ @discussion
383
+ Returns NULL if the timebase actually has a source timebase instead of a source clock.
384
+ */
385
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
386
+ CM_EXPORT CMClockRef CM_NULLABLE
387
+ CMTimebaseCopySourceClock(
388
+ CMTimebaseRef CM_NONNULL timebase )
389
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0));
390
+ static inline CMClockRef CM_NULLABLE
391
+ CMTimebaseCopyMasterClock(
392
+ CMTimebaseRef CM_NONNULL timebase )
393
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySourceClock", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
394
+ {
395
+ return CMTimebaseCopySourceClock(timebase);
396
+ }
397
+ #else
398
+ CM_EXPORT CMClockRef CM_NULLABLE
399
+ CMTimebaseCopyMasterClock(
400
+ CMTimebaseRef CM_NONNULL timebase )
401
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySourceClock", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
402
+ static inline CMClockRef CM_NULLABLE
403
+ CMTimebaseCopySourceClock(
404
+ CMTimebaseRef CM_NONNULL timebase )
405
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0))
406
+ {
407
+ return CMTimebaseCopyMasterClock(timebase);
408
+ }
409
+ #endif
410
+
411
+ /*!
412
+ @function CMTimebaseCopySource
413
+ @abstract Returns the immediate source (either timebase or clock) of a timebase.
414
+ @discussion
415
+ Only returns NULL if there was an error (such as timebase == NULL).
416
+ */
417
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
418
+ CM_EXPORT CMClockOrTimebaseRef CM_NONNULL
419
+ CMTimebaseCopySource(
420
+ CMTimebaseRef CM_NONNULL timebase )
421
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0));
422
+ static inline CMClockOrTimebaseRef CM_NONNULL
423
+ CMTimebaseCopyMaster(
424
+ CMTimebaseRef CM_NONNULL timebase )
425
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySource", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
426
+ {
427
+ return CMTimebaseCopySource(timebase);
428
+ }
429
+ #else
430
+ CM_EXPORT CMClockOrTimebaseRef CM_NONNULL
431
+ CMTimebaseCopyMaster(
432
+ CMTimebaseRef CM_NONNULL timebase )
433
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySource", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
434
+ static inline CMClockOrTimebaseRef CM_NONNULL
435
+ CMTimebaseCopySource(
436
+ CMTimebaseRef CM_NONNULL timebase )
437
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0))
438
+ {
439
+ return CMTimebaseCopyMaster(timebase);
440
+ }
441
+ #endif
442
+
443
+ /*!
444
+ @function CMTimebaseCopyUltimateSourceClock
445
+ @abstract Returns the source clock that is the source of all of a timebase's source timebases.
446
+ */
447
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
448
+ CM_EXPORT CMClockRef CM_NONNULL
449
+ CMTimebaseCopyUltimateSourceClock(
450
+ CMTimebaseRef CM_NONNULL timebase )
451
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0));
452
+ static inline CMClockRef CM_NONNULL
453
+ CMTimebaseCopyUltimateMasterClock(
454
+ CMTimebaseRef CM_NONNULL timebase )
455
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopyUltimateSourceClock", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
456
+ {
457
+ return CMTimebaseCopyUltimateSourceClock(timebase);
458
+ }
459
+ #else
460
+ CM_EXPORT CMClockRef CM_NONNULL
461
+ CMTimebaseCopyUltimateMasterClock(
462
+ CMTimebaseRef CM_NONNULL timebase )
463
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopyUltimateSourceClock", macos(10.11,10.11), ios(9.0,9.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
464
+ static inline CMClockRef CM_NONNULL
465
+ CMTimebaseCopyUltimateSourceClock(
466
+ CMTimebaseRef CM_NONNULL timebase )
467
+ API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0), watchos(6.0), visionos(1.0))
468
+ {
469
+ return CMTimebaseCopyUltimateMasterClock(timebase);
470
+ }
471
+ #endif
472
+
473
+ /*!
474
+ @function CMTimebaseGetMasterTimebase
475
+ @abstract Returns the immediate source timebase of a timebase.
476
+ @discussion
477
+ Returns NULL if the timebase actually has a source clock instead of a source timebase.
478
+ Please use CMTimebaseCopySourceTimebase instead.
479
+ */
480
+ CM_EXPORT CMTimebaseRef CM_NULLABLE
481
+ CMTimebaseGetMasterTimebase(
482
+ CMTimebaseRef CM_NONNULL timebase )
483
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySourceTimebase", macos(10.8, 10.11), ios(6.0, 9.0), tvos(9.0, 9.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
484
+
485
+ /*!
486
+ @function CMTimebaseGetMasterClock
487
+ @abstract Returns the immediate source clock of a timebase.
488
+ @discussion
489
+ Returns NULL if the timebase actually has a source timebase instead of a source clock.
490
+ Please use CMTimebaseCopySourceClock instead.
491
+ */
492
+ CM_EXPORT CMClockRef CM_NULLABLE
493
+ CMTimebaseGetMasterClock(
494
+ CMTimebaseRef CM_NONNULL timebase )
495
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySourceClock", macos(10.8, 10.11), ios(6.0, 9.0), tvos(9.0, 9.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
496
+
497
+ /*!
498
+ @function CMTimebaseGetMaster
499
+ @abstract Returns the immediate source (either timebase or clock) of a timebase.
500
+ @discussion
501
+ Only returns NULL if there was an error (such as timebase == NULL).
502
+ Example of use: time = CMSyncGetTime(CMTimebaseGetMaster(timebase));
503
+ Please use CMTimebaseCopySource instead.
504
+ */
505
+ CM_EXPORT CMClockOrTimebaseRef CM_NULLABLE
506
+ CMTimebaseGetMaster(
507
+ CMTimebaseRef CM_NONNULL timebase )
508
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopySource", macos(10.8, 10.11), ios(6.0, 9.0), tvos(9.0, 9.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
509
+
510
+ /*!
511
+ @function CMTimebaseGetUltimateMasterClock
512
+ @abstract Returns the source clock that is the source of all of a timebase's source timebases.
513
+ @discussion
514
+ Please use CMTimebaseCopyUltimateSourceClock instead.
515
+ */
516
+ CM_EXPORT CMClockRef CM_NULLABLE
517
+ CMTimebaseGetUltimateMasterClock(
518
+ CMTimebaseRef CM_NONNULL timebase )
519
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseCopyUltimateSourceClock", macos(10.8, 10.11), ios(6.0, 9.0), tvos(9.0, 9.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
520
+
521
+ /*!
522
+ @function CMTimebaseSetSourceClock
523
+ @abstract
524
+ Sets the source clock of a timebase.
525
+ @discussion
526
+ The timebase will stop receiving timing information from its current source clock or source
527
+ timebase, and will begin receiving timing information from the new source clock. Prior to
528
+ the change a kCMTimebaseNotification_SourceWillChange will be posted. When
529
+ the change has completed, a kCMTimebaseNotification_SourceDidChange notification
530
+ will be posted.
531
+ */
532
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
533
+ CM_EXPORT OSStatus CMTimebaseSetSourceClock(
534
+ CMTimebaseRef CM_NONNULL timebase,
535
+ CMClockRef CM_NONNULL newSourceClock)
536
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
537
+ static inline OSStatus CMTimebaseSetMasterClock(
538
+ CMTimebaseRef CM_NONNULL timebase,
539
+ CMClockRef CM_NONNULL newMasterClock)
540
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseSetSourceClock", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
541
+ {
542
+ return CMTimebaseSetSourceClock(timebase, newMasterClock);
543
+ }
544
+ #else
545
+ CM_EXPORT OSStatus CMTimebaseSetMasterClock(
546
+ CMTimebaseRef CM_NONNULL timebase,
547
+ CMClockRef CM_NONNULL newMasterClock)
548
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseSetSourceClock", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
549
+ static inline OSStatus CMTimebaseSetSourceClock(
550
+ CMTimebaseRef CM_NONNULL timebase,
551
+ CMClockRef CM_NONNULL newSourceClock)
552
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0))
553
+ {
554
+ return CMTimebaseSetMasterClock(timebase, newSourceClock);
555
+ }
556
+ #endif
557
+
558
+ /*!
559
+ @function CMTimebaseSetSourceTimebase
560
+ @abstract
561
+ Sets the source timebase of a timebase.
562
+ @discussion
563
+ The timebase will stop receiving timing information from its current source clock or source
564
+ timebase, and will begin receiving timing information from the new source timebase. Prior to
565
+ the change a kCMTimebaseNotification_SourceWillChange will be posted. When
566
+ the change has completed, a kCMTimebaseNotification_SourceDidChange notification
567
+ will be posted.
568
+ */
569
+ #if CMTIMEBASE_USE_SOURCE_TERMINOLOGY
570
+ CM_EXPORT OSStatus CMTimebaseSetSourceTimebase(
571
+ CMTimebaseRef CM_NONNULL timebase,
572
+ CMTimebaseRef CM_NONNULL newSourceTimebase)
573
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
574
+ static inline OSStatus CMTimebaseSetMasterTimebase(
575
+ CMTimebaseRef CM_NONNULL timebase,
576
+ CMTimebaseRef CM_NONNULL newMasterTimebase)
577
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseSetSourceTimebase", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0))
578
+ {
579
+ return CMTimebaseSetSourceTimebase(timebase, newMasterTimebase);
580
+ }
581
+ #else
582
+ CM_EXPORT OSStatus CMTimebaseSetMasterTimebase(
583
+ CMTimebaseRef CM_NONNULL timebase,
584
+ CMTimebaseRef CM_NONNULL newMasterTimebase)
585
+ API_DEPRECATED_WITH_REPLACEMENT("CMTimebaseSetSourceTimebase", macos(10.8,10.10), ios(6.0,8.0), tvos(9.0,9.0), watchos(6.0,6.0), visionos(1.0,1.0));
586
+ static inline OSStatus CMTimebaseSetSourceTimebase(
587
+ CMTimebaseRef CM_NONNULL timebase,
588
+ CMTimebaseRef CM_NONNULL newSourceTimebase)
589
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0))
590
+ {
591
+ return CMTimebaseSetMasterTimebase(timebase, newSourceTimebase);
592
+ }
593
+ #endif
594
+
595
+ /*!
596
+ @function CMTimebaseGetTime
597
+ @abstract Retrieves the current time from a timebase.
598
+ */
599
+ CM_EXPORT CMTime
600
+ CMTimebaseGetTime(
601
+ CMTimebaseRef CM_NONNULL timebase )
602
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
603
+
604
+ /*!
605
+ @function CMTimebaseGetTimeWithTimeScale
606
+ @abstract Retrieves the current time from a timebase in the specified timescale.
607
+ */
608
+ CM_EXPORT CMTime
609
+ CMTimebaseGetTimeWithTimeScale(
610
+ CMTimebaseRef CM_NONNULL timebase,
611
+ CMTimeScale timescale,
612
+ CMTimeRoundingMethod method)
613
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
614
+
615
+ /*!
616
+ @function CMTimebaseSetTime
617
+ @abstract Sets the current time of a timebase.
618
+ */
619
+ CM_EXPORT OSStatus
620
+ CMTimebaseSetTime(
621
+ CMTimebaseRef CM_NONNULL timebase,
622
+ CMTime time )
623
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
624
+
625
+ /*!
626
+ @function CMTimebaseSetAnchorTime
627
+ @abstract Sets the time of a timebase at a particular source time.
628
+ @discussion
629
+ CMTimebaseGetTime's results will be interpolated from that anchor time.
630
+ CMTimebaseSetTime(timebase, time) is equivalent to calling
631
+ CMClockOrTimebaseRef source = CMTimebaseCopySource(timebase);
632
+ CMTimebaseSetAnchorTime(timebase, time, CMSyncGetTime(source));
633
+ CFRelease(source).
634
+ */
635
+ CM_EXPORT OSStatus
636
+ CMTimebaseSetAnchorTime(
637
+ CMTimebaseRef CM_NONNULL timebase,
638
+ CMTime timebaseTime,
639
+ CMTime immediateSourceTime)
640
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
641
+
642
+ /*!
643
+ @function CMTimebaseGetRate
644
+ @abstract Retrieves the current rate of a timebase.
645
+ @discussion
646
+ This is the rate relative to its immediate source clock or timebase.
647
+ For example, if a timebase is running at twice the rate of its source, its rate is 2.0.
648
+ */
649
+ CM_EXPORT Float64
650
+ CMTimebaseGetRate(
651
+ CMTimebaseRef CM_NONNULL timebase )
652
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
653
+
654
+ /*!
655
+ @function CMTimebaseGetTimeAndRate
656
+ @abstract Retrieves the current time and rate of a timebase.
657
+ @discussion
658
+ You can use this function to take a consistent snapshot of the two values,
659
+ avoiding possible inconsistencies due to external changes between retrieval of time and rate.
660
+ */
661
+ CM_EXPORT OSStatus
662
+ CMTimebaseGetTimeAndRate(
663
+ CMTimebaseRef CM_NONNULL timebase,
664
+ CMTime * CM_NULLABLE timeOut,
665
+ Float64 * CM_NULLABLE rateOut )
666
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
667
+
668
+ /*!
669
+ @function CMTimebaseSetRate
670
+ @abstract Sets the rate of a timebase.
671
+ */
672
+ CM_EXPORT OSStatus
673
+ CMTimebaseSetRate(
674
+ CMTimebaseRef CM_NONNULL timebase,
675
+ Float64 rate )
676
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
677
+
678
+ /*!
679
+ @function CMTimebaseSetRateAndAnchorTime
680
+ @abstract Sets the time of a timebase at a particular source time, and changes the rate at exactly that time.
681
+ @discussion
682
+ CMTimebaseGetTime's results will be interpolated from that anchor time as though the timebase
683
+ has been running at the requested rate since that time.
684
+ CMTimebaseSetRate(timebase, rate) is approximately equivalent to calling
685
+ CMClockOrTimebaseRef source = CMTimebaseCopySource(timebase);
686
+ CMTimebaseSetRateAndAnchorTime(timebase, rate, CMTimebaseGetTime(timebase), CMSyncGetTime(source)),
687
+ CFRelease(source);
688
+ except that CMTimebaseSetRate will not generate a TimeJumped notification, and
689
+ CMTimebaseSetRateAndAnchorTime will.
690
+ */
691
+ CM_EXPORT OSStatus
692
+ CMTimebaseSetRateAndAnchorTime(
693
+ CMTimebaseRef CM_NONNULL timebase,
694
+ Float64 rate,
695
+ CMTime timebaseTime,
696
+ CMTime immediateSourceTime)
697
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
698
+
699
+ /*!
700
+ @function CMTimebaseGetEffectiveRate
701
+ @abstract Gets the effective rate of a timebase (which combines its rate with the rates of all its source timebases).
702
+ @discussion
703
+ Calling CMTimebaseGetEffectiveRate(timebase) is equivalent to calling
704
+ CMClockRef clock = CMTimebaseCopyUltimateSourceClock(timebase);
705
+ CMSyncGetRelativeRate(timebase, clock).
706
+ CFRelease(clock);
707
+ */
708
+ CM_EXPORT Float64
709
+ CMTimebaseGetEffectiveRate(
710
+ CMTimebaseRef CM_NONNULL timebase )
711
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
712
+
713
+ /*!
714
+ @function CMTimebaseAddTimer
715
+ @abstract
716
+ Adds the timer to the list of timers managed by the timebase.
717
+ @discussion
718
+ The timer must be a repeating run loop timer (with a very long interval at
719
+ least as long as kCMTimebaseVeryLongCFTimeInterval), attached to a runloop.
720
+ The timebase will retain the timer, and will maintain its "NextFireDate"
721
+ according to the CMTime set using CMTimebaseSetTimerNextFireTime.
722
+ Until the first call to CMTimebaseSetTimerNextFireTime, the "NextFireDate"
723
+ will be set far, far in the future. The runloop that timer is attached to must be
724
+ passed in and the timebase will retain that runloop. The retained runloop will be
725
+ used to call CFRunLoopWakeUp() any time the timebase modifies the timer's fire date.
726
+ */
727
+ CM_EXPORT OSStatus
728
+ CMTimebaseAddTimer(
729
+ CMTimebaseRef CM_NONNULL timebase,
730
+ CFRunLoopTimerRef CM_NONNULL timer,
731
+ CFRunLoopRef CM_NONNULL runloop )
732
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
733
+
734
+ #define kCMTimebaseVeryLongCFTimeInterval (CFTimeInterval)(256.0 * 365.0 * 24.0 * 60.0 * 60.0) // quite a while
735
+ #define kCMTimebaseFarFutureCFAbsoluteTime ((CFAbsoluteTime)kCMTimebaseVeryLongCFTimeInterval) // quite a while from 2001
736
+
737
+ /*!
738
+ @function CMTimebaseRemoveTimer
739
+ @abstract
740
+ Removes the timer from the list of timers managed by the timebase.
741
+ @discussion
742
+ The timebase will no longer maintain the timer's "NextFireDate".
743
+ If the timer is invalidated, the timebase will eventually remove it
744
+ from its list and release it even if this function is not called.
745
+ */
746
+ CM_EXPORT OSStatus
747
+ CMTimebaseRemoveTimer(
748
+ CMTimebaseRef CM_NONNULL timebase,
749
+ CFRunLoopTimerRef CM_NONNULL timer )
750
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
751
+
752
+ /*!
753
+ @function CMTimebaseSetTimerNextFireTime
754
+ @abstract
755
+ Sets the CMTime on the timebase's timeline at which the timer should next be fired.
756
+ @discussion
757
+ The timer must be on the list of timers managed by the timebase.
758
+ The timebase will continue to update the timer's "NextFireDate" according to time jumps
759
+ and effective rate changes.
760
+ If fireTime is not numeric, or if the timebase is not moving, the "NextFireDate"
761
+ will be set to a date far, far in the future.
762
+ <BR>
763
+ IMPORTANT NOTE: Due to the way that CFRunLoopTimers are implemented, if a timer passes
764
+ through a state in which it is due to fire, it may fire even if its rescheduled before
765
+ the runloop runs again. Clients should take care to avoid temporarily scheduling timers
766
+ in the past. For example, set the timebase's rate or time before you set the timer's
767
+ next fire time, if you are doing both at once. (If setting the timebase's rate or time
768
+ might put the timer's fire time in the past, you may need to set the fire time to
769
+ kCMTimeInvalid across the timebase change.)
770
+ */
771
+ CM_EXPORT OSStatus
772
+ CMTimebaseSetTimerNextFireTime(
773
+ CMTimebaseRef CM_NONNULL timebase,
774
+ CFRunLoopTimerRef CM_NONNULL timer,
775
+ CMTime fireTime,
776
+ uint32_t flags ) // reserved, pass zero
777
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
778
+
779
+ /*!
780
+ @function CMTimebaseSetTimerToFireImmediately
781
+ @abstract
782
+ Sets the timer to fire immediately once, overriding any previous CMTimebaseSetTimerNextFireTime call.
783
+ @discussion
784
+ The timer must be on the list of timers managed by the timebase.
785
+ This is equivalent to calling
786
+ CFRunLoopTimerSetNextFireDate( timer, CFAbsoluteTimeGetCurrent() );
787
+ except that the timebase gets to know that it shouldn't interfere.
788
+ */
789
+ CM_EXPORT OSStatus
790
+ CMTimebaseSetTimerToFireImmediately(
791
+ CMTimebaseRef CM_NONNULL timebase,
792
+ CFRunLoopTimerRef CM_NONNULL timer )
793
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
794
+
795
+
796
+ /*!
797
+ @function CMTimebaseAddTimerDispatchSource
798
+ @abstract
799
+ Adds the timer dispatch source to the list of timers managed by the timebase.
800
+ @discussion
801
+ The timer source must have been created by calling
802
+ dispatch_source_create( DISPATCH_SOURCE_TYPE_TIMER, 0, 0, some_dispatch_queue )
803
+ and should have had an event handler associated with it via
804
+ dispatch_source_set_event_handler( timerSource, some_handler_block )
805
+ or dispatch_source_set_event_handler_f( timerSource, some_handler_function ).
806
+ Don't forget to call dispatch_resume( timerSource ) as dispatch sources are
807
+ created suspended.
808
+
809
+ The timebase will retain the timer source, and will maintain its start time
810
+ according to the CMTime set using CMTimebaseSetTimerDispatchSourceNextFireTime.
811
+ Until the first call to CMTimebaseSetTimerDispatchSourceNextFireTime, the start time
812
+ will be set to DISPATCH_TIME_FOREVER.
813
+ */
814
+ CM_EXPORT OSStatus
815
+ CMTimebaseAddTimerDispatchSource(
816
+ CMTimebaseRef CM_NONNULL timebase,
817
+ dispatch_source_t CM_NONNULL timerSource )
818
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
819
+
820
+
821
+ /*!
822
+ @function CMTimebaseRemoveTimerDispatchSource
823
+ @abstract
824
+ Removes the timer dispatch source from the list of timers managed by the timebase.
825
+ @discussion
826
+ The timebase will no longer maintain the timer source's start time.
827
+ If the timer source is cancelled, the timebase will eventually remove it
828
+ from its list and release it even if this function is not called.
829
+ */
830
+ CM_EXPORT OSStatus
831
+ CMTimebaseRemoveTimerDispatchSource(
832
+ CMTimebaseRef CM_NONNULL timebase,
833
+ dispatch_source_t CM_NONNULL timerSource )
834
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
835
+
836
+ /*!
837
+ @function CMTimebaseSetTimerDispatchSourceNextFireTime
838
+ @abstract
839
+ Sets the CMTime on the timebase's timeline at which the timer dispatch source should next be fired.
840
+ @discussion
841
+ The timer source must be on the list of timers managed by the timebase.
842
+ The timebase will continue to update the timer dispatch source's start time
843
+ according to time jumps and effective rate changes.
844
+ If fireTime is not numeric, or if the timebase is not moving, the start time
845
+ will be set to DISPATCH_TIME_FOREVER.
846
+ <BR>
847
+ IMPORTANT NOTE: Due to the way that timer dispatch sources are implemented, if a timer passes
848
+ through a state in which it is due to fire, it may fire even if its rescheduled before
849
+ the event handler is run. Clients should take care to avoid temporarily scheduling timers
850
+ in the past. For example, set the timebase's rate or time before you set the timer's
851
+ next fire time, if you are doing both at once. (If setting the timebase's rate or time
852
+ might put the timer's fire time in the past, you may need to set the fire time to
853
+ kCMTimeInvalid across the timebase change.)
854
+ */
855
+ CM_EXPORT OSStatus
856
+ CMTimebaseSetTimerDispatchSourceNextFireTime(
857
+ CMTimebaseRef CM_NONNULL timebase,
858
+ dispatch_source_t CM_NONNULL timerSource,
859
+ CMTime fireTime,
860
+ uint32_t flags ) // reserved, pass zero
861
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
862
+
863
+ /*!
864
+ @function CMTimebaseSetTimerDispatchSourceToFireImmediately
865
+ @abstract
866
+ Sets the timer dispatch source to fire immediately once, overriding any previous
867
+ CMTimebaseSetTimerDispatchSourceNextFireTime call.
868
+ @discussion
869
+ The timer source must be on the list of timers managed by the timebase.
870
+ This is equivalent to calling
871
+ dispatch_source_set_timer( timerSource, DISPATCH_TIME_NOW, 0, 0 );
872
+ except that the timebase gets to know that it shouldn't interfere.
873
+ */
874
+ CM_EXPORT OSStatus
875
+ CMTimebaseSetTimerDispatchSourceToFireImmediately(
876
+ CMTimebaseRef CM_NONNULL timebase,
877
+ dispatch_source_t CM_NONNULL timerSource )
878
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
879
+
880
+
881
+
882
+ /*!
883
+ @function CMSyncGetRelativeRate
884
+ @abstract Queries the relative rate of one timebase or clock relative to another timebase or clock.
885
+ @discussion
886
+ If both have a common source, this calculation is performed purely based on the rates in the common tree
887
+ rooted in that source.
888
+ If they have different source clocks (or are both clocks), this calculation takes into account the measured
889
+ drift between the two clocks, using host time as a pivot.
890
+ The rate of a moving timebase relative to a stopped timebase is a NaN.
891
+ Calling CMTimebaseGetEffectiveRate(timebase) is equivalent to calling
892
+ CMClockRef clock = CMTimebaseCopyUltimateSourceClock(timebase);
893
+ CMSyncGetRelativeRate(timebase, clock).
894
+ CFRelease(clock);
895
+ */
896
+ CM_EXPORT Float64
897
+ CMSyncGetRelativeRate(
898
+ CMClockOrTimebaseRef CM_NONNULL ofClockOrTimebase,
899
+ CMClockOrTimebaseRef CM_NONNULL relativeToClockOrTimebase )
900
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
901
+
902
+ /*!
903
+ @function CMSyncGetRelativeRateAndAnchorTime
904
+ @abstract Queries the relative rate of one timebase or clock relative to another timebase or clock and the times of each timebase or clock at which the relative rate went into effect.
905
+ @discussion
906
+ If both have a common source, this calculation is performed purely based on the rates in the common tree
907
+ rooted in that source.
908
+ If they have different source clocks (or are both clocks), this calculation takes into account the measured
909
+ drift between the two clocks, using host time as a pivot.
910
+ The rate of a moving timebase relative to a stopped timebase is a NaN.
911
+ */
912
+ CM_EXPORT OSStatus
913
+ CMSyncGetRelativeRateAndAnchorTime(
914
+ CMClockOrTimebaseRef CM_NONNULL ofClockOrTimebase,
915
+ CMClockOrTimebaseRef CM_NONNULL relativeToClockOrTimebase,
916
+ Float64* CM_NULLABLE outRelativeRate,
917
+ CMTime* CM_NULLABLE outOfClockOrTimebaseAnchorTime,
918
+ CMTime* CM_NULLABLE outRelativeToClockOrTimebaseAnchorTime)
919
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
920
+
921
+ /*!
922
+ @function CMSyncConvertTime
923
+ @abstract Converts a time from one timebase or clock to another timebase or clock.
924
+ @discussion
925
+ If both have a common source, this calculation is performed purely based on the mathematical rates and offsets
926
+ in the common tree rooted in that source.
927
+ If they have different source clocks (or are both clocks), this calculation also compensates
928
+ for measured drift between the clocks.
929
+ To convert to or from host time, pass CMClockGetHostTimeClock() as the appropriate argument.
930
+ */
931
+ CM_EXPORT CMTime
932
+ CMSyncConvertTime(
933
+ CMTime time,
934
+ CMClockOrTimebaseRef CM_NONNULL fromClockOrTimebase,
935
+ CMClockOrTimebaseRef CM_NONNULL toClockOrTimebase )
936
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
937
+
938
+ /*!
939
+ @function CMSyncMightDrift
940
+ @abstract Reports whether it is possible for one timebase/clock to drift relative to the other.
941
+ @discussion
942
+ A timebase can drift relative to another if their ultimate source clocks that can drift relative
943
+ to each other.
944
+ */
945
+ CM_EXPORT Boolean
946
+ CMSyncMightDrift(
947
+ CMClockOrTimebaseRef CM_NONNULL clockOrTimebase1,
948
+ CMClockOrTimebaseRef CM_NONNULL clockOrTimebase2 )
949
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
950
+
951
+ /*!
952
+ @function CMSyncGetTime
953
+ @abstract A helper function to get time from a clock or timebase.
954
+ @discussion
955
+ CMSyncGetTime simply calls either CMClockGetTime or CMTimebaseGetTime, as appropriate.
956
+ It comes in handy for things like:
957
+ CMClockOrTimebaseRef source = CMTimebaseCopySource(timebase);
958
+ CMSyncGetTime(source);
959
+ CFRelease(source);
960
+ */
961
+ CM_EXPORT CMTime
962
+ CMSyncGetTime(
963
+ CMClockOrTimebaseRef CM_NONNULL clockOrTimebase )
964
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
965
+
966
+ /*!
967
+ @function CMTimebaseNotificationBarrier
968
+ @abstract Requests that the timebase wait until it is not posting any notifications.
969
+ */
970
+ CM_EXPORT OSStatus CMTimebaseNotificationBarrier(CMTimebaseRef CM_NONNULL timebase )
971
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
972
+
973
+ CM_ASSUME_NONNULL_BEGIN
974
+
975
+ // Posted by a timebase after a change in effective rate.
976
+ CM_EXPORT const CFStringRef kCMTimebaseNotification_EffectiveRateChanged
977
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
978
+
979
+ // Posted by a timebase after a discontinuous time jump.
980
+ CM_EXPORT const CFStringRef kCMTimebaseNotification_TimeJumped
981
+ API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0), watchos(6.0), visionos(1.0));
982
+
983
+ // Payload key for the time at which a change in effective rate or a discontinuous time jump occurred.
984
+ CM_EXPORT const CFStringRef kCMTimebaseNotificationKey_EventTime
985
+ API_AVAILABLE(macos(10.9), ios(7.0), tvos(9.0), watchos(6.0), visionos(1.0));
986
+
987
+ CM_ASSUME_NONNULL_END
988
+ CF_IMPLICIT_BRIDGING_DISABLED
989
+
990
+ #pragma pack(pop)
991
+
992
+ #ifdef __cplusplus
993
+ }
994
+ #endif
995
+
996
+ #endif // __CMSYNC__