peachsim 0.1.1802 → 0.1.1808

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 (1591) hide show
  1. package/README.md +1 -0
  2. package/cli/bin.ts +1 -1
  3. package/cli/cloud-test-tunnel.ts +36 -10
  4. package/cli/commands/coverage-swift.ts +1 -1
  5. package/cli/commands/cpu-profile.ts +2 -2
  6. package/cli/commands/daemon.ts +8 -7
  7. package/cli/commands/inspect/env.ts +4 -2
  8. package/cli/commands/inspect/wait-ready.ts +3 -1
  9. package/cli/commands/inspect.ts +14 -66
  10. package/cli/commands/package.ts +7 -1
  11. package/cli/commands/shell-url.ts +8 -1
  12. package/cli/drivers/playwright-provisioning.ts +1 -1
  13. package/cli/drivers/playwright.ts +1 -1
  14. package/cli/internal-child-contract.ts +13 -0
  15. package/cli/internal-child.ts +23 -10
  16. package/cli/maestro-js.ts +1 -1
  17. package/cli/native-input.ts +9 -0
  18. package/cli/outbound-endpoints.ts +11 -0
  19. package/detox/index.ts +6 -9
  20. package/dist-lib/agent-daemon-client.cjs +1 -1
  21. package/dist-lib/agent-events.cjs +1 -1
  22. package/dist-lib/attached-projects.cjs +1 -1
  23. package/dist-lib/auth/shared-session.cjs +1 -1
  24. package/dist-lib/backend-origin.cjs +1 -1
  25. package/dist-lib/beta.cjs +1 -1
  26. package/dist-lib/beta.mjs +1 -1
  27. package/dist-lib/bridge-constants.cjs +1 -1
  28. package/dist-lib/bridge-contract-input.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.mjs +1 -1
  30. package/dist-lib/bridge-contract.cjs +1 -1
  31. package/dist-lib/bridge-contract.mjs +1 -1
  32. package/dist-lib/bundle-channel.cjs +7186 -5499
  33. package/dist-lib/capture-contract.cjs +1 -1
  34. package/dist-lib/capture-contract.mjs +1 -1
  35. package/dist-lib/cloud-contract.cjs +1 -1
  36. package/dist-lib/cloud-contract.mjs +1 -1
  37. package/dist-lib/cloud-test-args.cjs +1 -1
  38. package/dist-lib/cloud-test-args.mjs +1 -1
  39. package/dist-lib/cloud.cjs +1 -1
  40. package/dist-lib/cloud.mjs +1 -1
  41. package/dist-lib/config.cjs +1 -1
  42. package/dist-lib/config.mjs +1 -1
  43. package/dist-lib/detox/index.cjs +7 -9
  44. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  45. package/dist-lib/expo-swift-bundle.cjs +5103 -3976
  46. package/dist-lib/expo-swift-metadata.cjs +1 -1
  47. package/dist-lib/expo-swift-metadata.mjs +1 -1
  48. package/dist-lib/home-paths.cjs +1 -1
  49. package/dist-lib/host/bridge-host.cjs +7172 -5542
  50. package/dist-lib/host/fetch-proxy-handler.cjs +82 -34
  51. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  52. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  53. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  54. package/dist-lib/host/websocket-proxy.cjs +3 -1
  55. package/dist-lib/index.cjs +695 -470
  56. package/dist-lib/jump-to-source-babel.cjs +1 -1
  57. package/dist-lib/jump-to-source-native.cjs +1 -1
  58. package/dist-lib/kotlin-host.cjs +1 -1
  59. package/dist-lib/menu.cjs +1 -1
  60. package/dist-lib/menu.mjs +1 -1
  61. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  62. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  63. package/dist-lib/metro-production-bundle.cjs +1 -1
  64. package/dist-lib/metro-production-bundle.mjs +1 -1
  65. package/dist-lib/metro.cjs +702 -477
  66. package/dist-lib/native-app-identity-project.cjs +454 -276
  67. package/dist-lib/native-app-identity-project.mjs +503 -320
  68. package/dist-lib/native-app-identity.cjs +1 -1
  69. package/dist-lib/native-app-identity.mjs +1 -1
  70. package/dist-lib/native-firebase-metadata.cjs +1 -1
  71. package/dist-lib/native-firebase-metadata.mjs +1 -1
  72. package/dist-lib/pdfium-raster.cjs +106 -0
  73. package/dist-lib/pdfium-raster.mjs +81 -0
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +1 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +37 -24
  79. package/dist-lib/public-origins-lib.json +146 -80
  80. package/dist-lib/react-native-host-modules.cjs +1 -1
  81. package/dist-lib/react-native-host-modules.mjs +1 -1
  82. package/dist-lib/reap-browser.cjs +1 -1
  83. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  84. package/dist-lib/sdk.cjs +1 -1
  85. package/dist-lib/sdk.mjs +1 -1
  86. package/dist-lib/skills.cjs +7874 -6178
  87. package/dist-lib/swift-compile.cjs +917 -610
  88. package/dist-lib/swift-compile.mjs +879 -572
  89. package/dist-lib/swift-package.cjs +32 -15
  90. package/dist-lib/swift-package.mjs +32 -15
  91. package/dist-lib/swift-submit.cjs +2 -2
  92. package/dist-lib/swift-submit.mjs +2 -2
  93. package/dist-lib/swift-toolchain.cjs +52 -1
  94. package/dist-lib/swift.cjs +1 -1
  95. package/dist-lib/vite-swift.cjs +3226 -2161
  96. package/dist-lib/vite.cjs +88 -40
  97. package/dist-lib/worklet-executable.cjs +1 -1
  98. package/dist-lib/worklet-executable.mjs +1 -1
  99. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +2 -0
  100. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +5 -0
  101. package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +51 -0
  102. package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -1
  103. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +2 -0
  104. package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +5 -0
  105. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  106. package/kotlin/sdk.tar.gz +0 -0
  107. package/package.json +10 -2
  108. package/runtime-companion.json +1 -1
  109. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioApplication.h +143 -0
  110. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h +268 -0
  111. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioChannelLayout.h +85 -0
  112. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioConnectionPoint.h +54 -0
  113. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioConverter.h +355 -0
  114. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioEngine.h +1064 -0
  115. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioEnvironmentNode.h +311 -0
  116. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioFile.h +192 -0
  117. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioFormat.h +241 -0
  118. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioIONode.h +304 -0
  119. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioMixerNode.h +43 -0
  120. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioMixing.h +339 -0
  121. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioNode.h +244 -0
  122. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayer.h +155 -0
  123. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayerNode.h +434 -0
  124. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioRecorder.h +243 -0
  125. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioRoutingArbiter.h +114 -0
  126. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSequencer.h +640 -0
  127. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSettings.h +111 -0
  128. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSinkNode.h +93 -0
  129. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSourceNode.h +122 -0
  130. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioTime.h +145 -0
  131. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioTypes.h +173 -0
  132. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnit.h +114 -0
  133. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitComponent.h +269 -0
  134. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitDelay.h +62 -0
  135. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitDistortion.h +71 -0
  136. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitEQ.h +166 -0
  137. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitEffect.h +53 -0
  138. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitGenerator.h +43 -0
  139. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitMIDIInstrument.h +147 -0
  140. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitReverb.h +56 -0
  141. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h +112 -0
  142. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitTimeEffect.h +42 -0
  143. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitTimePitch.h +56 -0
  144. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitVarispeed.h +41 -0
  145. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +58 -3
  146. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVMIDIPlayer.h +94 -0
  147. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVMusicEvents.h +612 -0
  148. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h +340 -0
  149. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesisProvider.h +172 -0
  150. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +1003 -9
  151. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetCache.h +56 -0
  152. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadStorageManager.h +93 -0
  153. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h +403 -0
  154. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h +484 -0
  155. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetImageGenerator.h +244 -0
  156. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetPlaybackAssistant.h +74 -0
  157. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetReader.h +232 -0
  158. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetReaderOutput.h +857 -0
  159. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetResourceLoader.h +497 -0
  160. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetSegmentReport.h +146 -0
  161. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h +408 -0
  162. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrackGroup.h +57 -0
  163. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrackSegment.h +47 -0
  164. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetVariant.h +262 -0
  165. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriter.h +531 -0
  166. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriterInput.h +868 -0
  167. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWritingPlanner.h +434 -0
  168. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +69 -9
  169. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioBuffer.h +9 -0
  170. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioChannelLayout.h +9 -0
  171. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioConnectionPoint.h +9 -0
  172. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioConverter.h +9 -0
  173. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioEngine.h +9 -0
  174. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioEnvironmentNode.h +9 -0
  175. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioFile.h +9 -0
  176. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioFormat.h +9 -0
  177. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioIONode.h +9 -0
  178. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMix.h +175 -0
  179. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMixerNode.h +9 -0
  180. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMixing.h +9 -0
  181. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioNode.h +9 -0
  182. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioPlayer.h +9 -0
  183. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioPlayerNode.h +9 -0
  184. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioProcessingSettings.h +76 -0
  185. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioRecorder.h +9 -0
  186. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSequencer.h +9 -0
  187. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionDeprecated.h +12 -0
  188. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionRoute.h +12 -0
  189. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionTypes.h +12 -0
  190. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSettings.h +9 -0
  191. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioTime.h +9 -0
  192. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioTypes.h +9 -0
  193. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnit.h +9 -0
  194. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitComponent.h +9 -0
  195. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitDelay.h +9 -0
  196. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitDistortion.h +9 -0
  197. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitEQ.h +9 -0
  198. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitEffect.h +9 -0
  199. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitGenerator.h +9 -0
  200. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitMIDIInstrument.h +9 -0
  201. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitReverb.h +9 -0
  202. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitSampler.h +9 -0
  203. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitTimeEffect.h +9 -0
  204. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitTimePitch.h +9 -0
  205. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitVarispeed.h +9 -0
  206. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCameraCalibrationData.h +184 -0
  207. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaption.h +917 -0
  208. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionConversionValidator.h +235 -0
  209. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionFormatConformer.h +80 -0
  210. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionGroup.h +103 -0
  211. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionGrouper.h +39 -0
  212. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionRenderer.h +127 -0
  213. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionSettings.h +66 -0
  214. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAncillaryDataEncoder.h +116 -0
  215. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h +157 -0
  216. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioPreviewOutput.h +63 -0
  217. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureBroadcastVideoOutput.h +183 -0
  218. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureControl.h +49 -0
  219. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDataOutputSynchronizer.h +359 -0
  220. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDepthDataOutput.h +164 -0
  221. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDeskViewApplication.h +98 -0
  222. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +4119 -13
  223. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureExternalDisplayConfigurator.h +114 -0
  224. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h +743 -0
  225. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureIndexPicker.h +156 -0
  226. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h +641 -0
  227. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h +155 -0
  228. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutput.h +23 -0
  229. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h +163 -0
  230. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h +2470 -0
  231. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureReactions.h +131 -0
  232. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSlider.h +169 -0
  233. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSpatialAudioMetadataSampleGenerator.h +53 -0
  234. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h +356 -0
  235. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemExposureBiasSlider.h +66 -0
  236. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemPressure.h +111 -0
  237. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemZoomSlider.h +66 -0
  238. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureTimecodeGenerator.h +226 -0
  239. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h +337 -0
  240. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h +288 -0
  241. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVComposition.h +440 -0
  242. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCompositionTrack.h +329 -0
  243. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCompositionTrackSegment.h +112 -0
  244. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVContentKeySession.h +713 -0
  245. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVContinuityDevice.h +73 -0
  246. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h +239 -0
  247. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVDisplayCriteria.h +50 -0
  248. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h +138 -0
  249. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVExternalStorageDevice.h +252 -0
  250. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVExternalSyncDevice.h +127 -0
  251. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFAudio.h +59 -0
  252. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCapture.h +48 -0
  253. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCore.h +97 -0
  254. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes +2785 -0
  255. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +26 -18
  256. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVGeometry.h +66 -0
  257. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMIDIPlayer.h +9 -0
  258. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaSelection.h +79 -0
  259. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaSelectionGroup.h +287 -0
  260. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +398 -8
  261. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataIdentifiers.h +392 -0
  262. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +365 -9
  263. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h +699 -0
  264. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetrics.h +521 -0
  265. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMovie.h +744 -0
  266. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMovieTrack.h +526 -0
  267. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVOutputSettingsAssistant.h +179 -0
  268. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinationMedium.h +38 -0
  269. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinator.h +518 -0
  270. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayer.h +960 -0
  271. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h +550 -0
  272. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +1147 -3
  273. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemIntegratedTimeline.h +309 -0
  274. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemMediaDataCollector.h +127 -0
  275. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemOutput.h +669 -0
  276. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemSampleBufferOutput.h +124 -0
  277. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemTrack.h +101 -0
  278. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerLayer.h +117 -0
  279. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerLooper.h +220 -0
  280. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerMediaSelectionCriteria.h +86 -0
  281. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerOutput.h +229 -0
  282. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPortraitEffectsMatte.h +126 -0
  283. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVProVideoStorage.h +90 -0
  284. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVQueuedSampleBufferRendering.h +124 -0
  285. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVRenderedCaptionImage.h +62 -0
  286. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVRouteDetector.h +69 -0
  287. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h +248 -0
  288. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +242 -3
  289. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferGenerator.h +230 -0
  290. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferRenderSynchronizer.h +199 -0
  291. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferVideoRenderer.h +276 -0
  292. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleCursor.h +327 -0
  293. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSemanticSegmentationMatte.h +164 -0
  294. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSpatialVideoConfiguration.h +57 -0
  295. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSpeechSynthesis.h +9 -0
  296. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSynchronizedLayer.h +89 -0
  297. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTextStyleRule.h +112 -0
  298. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTime.h +58 -0
  299. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +179 -2
  300. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVUtilities.h +17 -0
  301. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h +392 -0
  302. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoComposition.h +924 -0
  303. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoPerformanceMetrics.h +108 -0
  304. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h +332 -0
  305. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +3 -2
  306. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h +53 -0
  307. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingActionItem.h +59 -0
  308. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h +261 -0
  309. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingEvent.h +62 -0
  310. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRouting.h +18 -0
  311. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRoutingDefines.h +14 -0
  312. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRoutingPlaybackArbiter.h +63 -0
  313. package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Modules/module.modulemap +6 -0
  314. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h +1621 -0
  315. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h +481 -0
  316. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h +1999 -0
  317. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h +726 -0
  318. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUHeadTrackingBinauralRenderer.h +73 -0
  319. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h +386 -0
  320. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioCodec.h +1454 -0
  321. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioComponent.h +743 -0
  322. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioConverter.h +1099 -0
  323. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFile.h +1563 -0
  324. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFileStream.h +499 -0
  325. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFormat.h +537 -0
  326. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioOutputUnit.h +56 -0
  327. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioQueue.h +1888 -0
  328. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioServices.h +441 -0
  329. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h +863 -0
  330. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes +6 -0
  331. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h +153 -0
  332. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h +38 -0
  333. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitParameters.h +1091 -0
  334. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h +4194 -0
  335. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitUtilities.h +611 -0
  336. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioWorkInterval.h +102 -0
  337. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CAFFile.h +368 -0
  338. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CAShow.h +40 -0
  339. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CASpatialAudioExperience.h +167 -0
  340. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h +610 -0
  341. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicDevice.h +491 -0
  342. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicPlayer.h +1732 -0
  343. package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Modules/module.modulemap +6 -0
  344. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +6 -0
  345. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFProxySupport.h +604 -0
  346. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPActionSheetTemplate.h +40 -0
  347. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPAlertAction.h +64 -0
  348. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPAlertTemplate.h +53 -0
  349. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPBarButton.h +91 -0
  350. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPBarButtonProviding.h +36 -0
  351. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPButton.h +65 -0
  352. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPChargingStationConnection.h +38 -0
  353. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPContact.h +109 -0
  354. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPContactTemplate.h +34 -0
  355. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPDashboardButton.h +52 -0
  356. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPDashboardController.h +30 -0
  357. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPGridButton.h +95 -0
  358. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPGridTemplate.h +65 -0
  359. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPImageOverlay.h +80 -0
  360. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPImageSet.h +26 -0
  361. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationItem.h +31 -0
  362. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationRatingItem.h +34 -0
  363. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationTemplate.h +80 -0
  364. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInstrumentClusterController.h +76 -0
  365. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInterfaceController.h +288 -0
  366. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLane.h +57 -0
  367. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLaneGuidance.h +31 -0
  368. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h +229 -0
  369. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h +101 -0
  370. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h +70 -0
  371. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemElement.h +53 -0
  372. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemGridElement.h +39 -0
  373. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h +77 -0
  374. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemRowElement.h +52 -0
  375. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListItem.h +273 -0
  376. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListItemTypes.h +55 -0
  377. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListSection.h +117 -0
  378. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListTemplate.h +289 -0
  379. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListTemplateDetailsHeader.h +164 -0
  380. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLocation.h +32 -0
  381. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPManeuver.h +254 -0
  382. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapButton.h +56 -0
  383. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanel.h +65 -0
  384. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelButtonConfiguration.h +46 -0
  385. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelItem.h +56 -0
  386. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelSection.h +47 -0
  387. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapTemplate.h +518 -0
  388. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapTemplateWaypoint.h +44 -0
  389. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMessageComposeBarButton.h +41 -0
  390. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMessageListItem.h +213 -0
  391. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMultiStopCardConfiguration.h +62 -0
  392. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationAlert.h +182 -0
  393. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationEnum.h +23 -0
  394. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationSession.h +173 -0
  395. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationWaypoint.h +105 -0
  396. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingButton.h +122 -0
  397. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingMode.h +333 -0
  398. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingTemplate.h +122 -0
  399. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanel.h +31 -0
  400. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanelButtonConfiguration.h +46 -0
  401. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanelItem.h +51 -0
  402. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPlaybackConfiguration.h +89 -0
  403. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPointOfInterest.h +161 -0
  404. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPointOfInterestTemplate.h +85 -0
  405. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRerouteReason.h +31 -0
  406. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteDetail.h +371 -0
  407. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteInformation.h +61 -0
  408. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteSegment.h +92 -0
  409. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteSource.h +43 -0
  410. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSearchTemplate.h +57 -0
  411. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSessionConfiguration.h +59 -0
  412. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSportsOverlay.h +51 -0
  413. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTabBarTemplate.h +90 -0
  414. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplate.h +65 -0
  415. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationDashboardScene.h +60 -0
  416. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h +61 -0
  417. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h +109 -0
  418. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTextButton.h +57 -0
  419. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPThumbnailImage.h +66 -0
  420. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTravelEstimates.h +63 -0
  421. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTrip.h +172 -0
  422. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTripPreviewTextConfiguration.h +25 -0
  423. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPVoiceControlTemplate.h +173 -0
  424. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPWindow.h +37 -0
  425. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CarPlay.apinotes +68 -0
  426. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CarPlay.h +89 -0
  427. package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Modules/module.modulemap +6 -0
  428. package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h +1459 -0
  429. package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/AudioServerPlugIn.h +1195 -0
  430. package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudioTypes.h +4 -0
  431. package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Modules/module.modulemap +5 -0
  432. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h +167 -0
  433. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h +97 -0
  434. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h +294 -0
  435. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBitVector.h +49 -0
  436. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h +360 -0
  437. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h +193 -0
  438. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileDescriptor.h +54 -0
  439. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h +294 -0
  440. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h +53 -0
  441. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMessagePort.h +69 -0
  442. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumberFormatter.h +188 -0
  443. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugIn.h +124 -0
  444. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugInCOM.h +117 -0
  445. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPreferences.h +140 -0
  446. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h +158 -0
  447. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringEncodingExt.h +184 -0
  448. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringTokenizer.h +263 -0
  449. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTree.h +330 -0
  450. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLAccess.h +128 -0
  451. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLEnumerator.h +108 -0
  452. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUUID.h +78 -0
  453. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h +197 -0
  454. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h +27 -0
  455. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h +201 -0
  456. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLParser.h +278 -0
  457. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +110 -57
  458. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIBarcodeDescriptor.h +436 -0
  459. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIColor.h +305 -0
  460. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h +949 -0
  461. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIDetector.h +219 -0
  462. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFeature.h +355 -0
  463. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h +567 -0
  464. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterBuiltins.h +2734 -0
  465. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterConstructor.h +27 -0
  466. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterGenerator.h +160 -0
  467. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterShape.h +69 -0
  468. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h +860 -0
  469. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageAccumulator.h +72 -0
  470. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageProcessor.h +589 -0
  471. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageProvider.h +187 -0
  472. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h +342 -0
  473. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIKernelMetalLib.h +311 -0
  474. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIPlugIn.h +63 -0
  475. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIPlugInInterface.h +45 -0
  476. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRAWFilter.h +223 -0
  477. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRAWFilter_Deprecated.h +195 -0
  478. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h +348 -0
  479. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CISampler.h +88 -0
  480. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIVector.h +265 -0
  481. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes +1231 -0
  482. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +34 -46
  483. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h +69 -0
  484. package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +6 -0
  485. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h +44 -0
  486. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h +82 -0
  487. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICIDevice.h +124 -0
  488. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICIDeviceManager.h +143 -0
  489. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICapabilityInquiry.h +336 -0
  490. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIDriver.h +566 -0
  491. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIMessages.h +784 -0
  492. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDINetworkSession.h +137 -0
  493. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIServices.h +2759 -0
  494. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDISetup.h +478 -0
  495. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIThruConnection.h +378 -0
  496. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPCI.h +243 -0
  497. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPCIProfile.h +161 -0
  498. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPEndpoint.h +200 -0
  499. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPEndpointManager.h +146 -0
  500. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPFunctionBlock.h +152 -0
  501. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPMutableEndpoint.h +167 -0
  502. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPMutableFunctionBlock.h +179 -0
  503. package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Modules/module.modulemap +7 -0
  504. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAttachment.h +118 -0
  505. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAudioClock.h +46 -0
  506. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAudioDeviceClock.h +105 -0
  507. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBlockBuffer.h +580 -0
  508. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBufferQueue.h +946 -0
  509. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +2090 -5
  510. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescriptionBridge.h +734 -0
  511. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMGenlockClock.h +65 -0
  512. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMMemoryPool.h +120 -0
  513. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMMetadata.h +668 -0
  514. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSampleBuffer.h +1967 -0
  515. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSimpleQueue.h +204 -0
  516. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTag.h +631 -0
  517. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTagCollection.h +560 -0
  518. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTaggedBufferGroup.h +294 -0
  519. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTextMarkup.h +431 -0
  520. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +627 -34
  521. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +442 -6
  522. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes +1267 -0
  523. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +33 -6
  524. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +5 -3
  525. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAbsoluteAltitude.h +48 -0
  526. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAccelerometer.h +61 -0
  527. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h +109 -0
  528. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltitude.h +44 -0
  529. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAmbientPressure.h +38 -0
  530. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAttitude.h +138 -0
  531. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAuthorization.h +28 -0
  532. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAvailability.h +22 -0
  533. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMBatchedSensorManager.h +147 -0
  534. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMBody.h +25 -0
  535. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMDeviceMotion.h +160 -0
  536. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMError.h +30 -0
  537. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMErrorDomain.h +21 -0
  538. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMFallDetectionEvent.h +59 -0
  539. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMFallDetectionManager.h +101 -0
  540. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMGyro.h +70 -0
  541. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h +129 -0
  542. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h +131 -0
  543. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManagerDelegate.h +47 -0
  544. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHighFrequencyHeartRateData.h +53 -0
  545. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMLogItem.h +33 -0
  546. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMagnetometer.h +62 -0
  547. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionActivity.h +122 -0
  548. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionActivityManager.h +112 -0
  549. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionManager.h +424 -0
  550. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMovementDisorderManager.h +183 -0
  551. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMOdometer.h +146 -0
  552. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMPedometer.h +326 -0
  553. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedAccelerometerData.h +43 -0
  554. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedDeviceMotion.h +45 -0
  555. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedPressureData.h +46 -0
  556. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRotationRateData.h +58 -0
  557. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMSensorRecorder.h +88 -0
  558. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMStepCounter.h +103 -0
  559. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMWaterSubmersionData.h +71 -0
  560. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMWaterSubmersionManager.h +122 -0
  561. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CoreMotion.h +46 -0
  562. package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Modules/module.modulemap +7 -0
  563. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h +371 -0
  564. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h +186 -0
  565. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVHostTime.h +64 -0
  566. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h +394 -0
  567. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBuffer.h +59 -0
  568. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBufferCache.h +98 -0
  569. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTexture.h +97 -0
  570. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h +136 -0
  571. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTexture.h +87 -0
  572. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTextureCache.h +146 -0
  573. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h +661 -0
  574. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h +81 -0
  575. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferPool.h +167 -0
  576. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h +175 -0
  577. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVReturn.h +97 -0
  578. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h +62 -0
  579. package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Modules/module.modulemap +12 -0
  580. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/CryptoTokenKit.apinotes +79 -0
  581. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/CryptoTokenKit.h +21 -0
  582. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKBase.h +12 -0
  583. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKError.h +32 -0
  584. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCard.h +423 -0
  585. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardATR.h +81 -0
  586. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardSlotNFCSession.h +35 -0
  587. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardToken.h +124 -0
  588. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardTokenRegistrationManager.h +46 -0
  589. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTLVRecord.h +100 -0
  590. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKToken.h +323 -0
  591. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenConfiguration.h +74 -0
  592. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenKeychainItem.h +152 -0
  593. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenWatcher.h +61 -0
  594. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/CryptoTokenKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +32 -0
  595. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/CryptoTokenKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +32 -0
  596. package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/module.modulemap +5 -0
  597. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +194 -5105
  598. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/FoundationErrors.h +234 -0
  599. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h +1 -0
  600. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1466 -0
  601. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h +867 -0
  602. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h +76 -0
  603. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h +800 -0
  604. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h +160 -0
  605. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteOrder.h +584 -0
  606. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h +97 -0
  607. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h +859 -0
  608. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h +321 -0
  609. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h +476 -0
  610. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSComparisonPredicate.h +123 -0
  611. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +63 -0
  612. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCorelibsRuntime.h +30 -0
  613. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSData.h +727 -0
  614. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDate.h +217 -0
  615. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h +247 -0
  616. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateFormatter.h +507 -0
  617. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateInterval.h +124 -0
  618. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h +118 -0
  619. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimal.h +110 -0
  620. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h +329 -0
  621. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +764 -0
  622. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h +65 -0
  623. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h +48 -0
  624. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSError.h +209 -0
  625. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSException.h +610 -0
  626. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +249 -0
  627. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionContext.h +58 -0
  628. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +44 -0
  629. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionRequestHandling.h +25 -0
  630. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileCoordinator.h +330 -0
  631. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h +455 -0
  632. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h +1407 -0
  633. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFilePresenter.h +165 -0
  634. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileVersion.h +169 -0
  635. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileWrapper.h +371 -0
  636. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h +101 -0
  637. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookie.h +241 -0
  638. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookieStorage.h +159 -0
  639. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHashTable.h +242 -0
  640. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +137 -0
  641. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexPath.h +106 -0
  642. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h +291 -0
  643. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSInflectionRule.h +50 -0
  644. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSInvocation.h +134 -0
  645. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSItemProvider.h +402 -0
  646. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSItemProviderReadingWriting.h +8 -0
  647. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSJSONSerialization.h +95 -0
  648. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h +249 -0
  649. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h +272 -0
  650. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueSharedObservers.h +77 -0
  651. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h +418 -0
  652. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h +73 -0
  653. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLinguisticTagger.h +432 -0
  654. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSListFormatter.h +64 -0
  655. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h +331 -0
  656. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLocalizedNumberFormatRule.h +25 -0
  657. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h +112 -0
  658. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMapTable.h +275 -0
  659. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h +69 -0
  660. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurement.h +60 -0
  661. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +93 -0
  662. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h +281 -0
  663. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadataAttributes.h +256 -0
  664. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h +36 -0
  665. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h +215 -0
  666. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNetServices.h +488 -0
  667. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h +189 -0
  668. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h +66 -0
  669. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNull.h +20 -0
  670. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNumberFormatter.h +490 -0
  671. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +867 -1
  672. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h +212 -0
  673. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOperation.h +634 -0
  674. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h +96 -0
  675. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionDifference.h +114 -0
  676. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h +822 -0
  677. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h +83 -0
  678. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h +278 -0
  679. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponents.h +149 -0
  680. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponentsFormatter.h +248 -0
  681. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPointerArray.h +137 -0
  682. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPointerFunctions.h +191 -0
  683. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPort.h +222 -0
  684. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h +125 -0
  685. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h +33 -0
  686. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h +541 -0
  687. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h +559 -0
  688. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPropertyList.h +88 -0
  689. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProxy.h +56 -0
  690. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h +83 -0
  691. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +641 -15
  692. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h +101 -0
  693. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h +202 -0
  694. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h +244 -0
  695. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h +481 -0
  696. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h +160 -0
  697. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSStream.h +437 -0
  698. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSString.h +1362 -0
  699. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTermOfAddress.h +64 -0
  700. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTextCheckingResult.h +179 -0
  701. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h +208 -0
  702. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h +221 -0
  703. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTimer.h +178 -0
  704. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h +1582 -0
  705. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLAuthenticationChallenge.h +117 -0
  706. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCache.h +211 -0
  707. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h +432 -0
  708. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h +147 -0
  709. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredentialStorage.h +124 -0
  710. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h +226 -0
  711. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtectionSpace.h +153 -0
  712. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +297 -0
  713. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLRequest.h +464 -0
  714. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLResponse.h +153 -0
  715. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h +2203 -0
  716. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h +60 -0
  717. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +116 -8
  718. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUndoManager.h +302 -0
  719. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h +1491 -0
  720. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h +199 -0
  721. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h +474 -0
  722. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h +321 -0
  723. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h +81 -0
  724. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSXMLParser.h +510 -0
  725. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h +304 -0
  726. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h +125 -0
  727. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h +1 -1
  728. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h +1 -1
  729. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h +1 -1
  730. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h +1 -1
  731. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h +1 -1
  732. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPointClampingRange.h +1 -1
  733. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityTest.h +1 -1
  734. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h +1 -1
  735. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
  736. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h +1 -1
  737. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h +1 -1
  738. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h +1 -1
  739. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h +1 -1
  740. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h +1 -1
  741. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h +1 -1
  742. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h +1 -1
  743. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +7 -7
  744. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h +1 -1
  745. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h +1 -1
  746. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h +1 -1
  747. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h +1 -1
  748. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h +1 -1
  749. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedicationQuery.h +1 -1
  750. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h +1 -1
  751. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h +1 -1
  752. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LABase.h +18 -0
  753. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LABiometryType.h +26 -0
  754. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LACompanionType.h +22 -0
  755. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h +406 -0
  756. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LADomainState.h +93 -0
  757. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironment.h +49 -0
  758. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanism.h +33 -0
  759. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismBiometry.h +48 -0
  760. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismCompanion.h +27 -0
  761. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismUserPassword.h +20 -0
  762. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentState.h +49 -0
  763. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h +83 -0
  764. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPersistedRight.h +30 -0
  765. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h +61 -0
  766. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h +65 -0
  767. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h +52 -0
  768. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARequirement.h +58 -0
  769. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h +75 -0
  770. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h +57 -0
  771. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h +24 -0
  772. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes +5 -0
  773. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h +24 -0
  774. package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Modules/module.modulemap +6 -0
  775. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddress.h +25 -0
  776. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddressFilter.h +36 -0
  777. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddressRepresentations.h +52 -0
  778. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAnnotation.h +31 -0
  779. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAnnotationView.h +168 -0
  780. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircle.h +30 -0
  781. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircleRenderer.h +30 -0
  782. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircleView.h +29 -0
  783. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKClusterAnnotation.h +25 -0
  784. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCompassButton.h +38 -0
  785. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirections.h +36 -0
  786. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsRequest.h +53 -0
  787. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsResponse.h +79 -0
  788. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsTypes.h +16 -0
  789. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDistanceFormatter.h +42 -0
  790. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKFoundation.h +19 -0
  791. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeoJSONSerialization.h +65 -0
  792. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeocodingRequest.h +34 -0
  793. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeodesicPolyline.h +24 -0
  794. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeometry.h +186 -0
  795. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGradientPolylineRenderer.h +28 -0
  796. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKHybridMapConfiguration.h +25 -0
  797. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKIconStyle.h +23 -0
  798. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKImageryMapConfiguration.h +21 -0
  799. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalPointsOfInterestRequest.h +30 -0
  800. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearch.h +38 -0
  801. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchCompleter.h +85 -0
  802. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchRequest.h +40 -0
  803. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchResponse.h +25 -0
  804. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundScene.h +20 -0
  805. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSceneRequest.h +36 -0
  806. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshot.h +29 -0
  807. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshotOptions.h +32 -0
  808. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshotter.h +32 -0
  809. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundViewController.h +69 -0
  810. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCamera.h +43 -0
  811. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCameraBoundary.h +29 -0
  812. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCameraZoomRange.h +32 -0
  813. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapConfiguration.h +30 -0
  814. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapFeatureAnnotation.h +32 -0
  815. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItem.h +95 -0
  816. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemAnnotation.h +33 -0
  817. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemDetailViewController.h +76 -0
  818. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemIdentifier.h +25 -0
  819. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemRequest.h +40 -0
  820. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshot.h +34 -0
  821. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshotOptions.h +57 -0
  822. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshotter.h +30 -0
  823. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapView.h +351 -0
  824. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMarkerAnnotationView.h +45 -0
  825. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPoint.h +32 -0
  826. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolygon.h +23 -0
  827. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolygonRenderer.h +22 -0
  828. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolyline.h +23 -0
  829. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolylineRenderer.h +22 -0
  830. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlay.h +36 -0
  831. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayPathRenderer.h +63 -0
  832. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayPathView.h +50 -0
  833. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayRenderer.h +61 -0
  834. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayView.h +60 -0
  835. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPinAnnotationView.h +60 -0
  836. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPitchControl.h +37 -0
  837. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPlacemark.h +36 -0
  838. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h +26 -0
  839. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointOfInterestCategory.h +95 -0
  840. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointOfInterestFilter.h +27 -0
  841. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygon.h +27 -0
  842. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygonRenderer.h +30 -0
  843. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygonView.h +27 -0
  844. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolyline.h +22 -0
  845. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolylineRenderer.h +32 -0
  846. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolylineView.h +30 -0
  847. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKReverseGeocoder.h +50 -0
  848. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKReverseGeocodingRequest.h +32 -0
  849. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKScaleView.h +39 -0
  850. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKSelectionAccessory.h +95 -0
  851. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKShape.h +21 -0
  852. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKStandardMapConfiguration.h +36 -0
  853. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTileOverlay.h +51 -0
  854. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTileOverlayRenderer.h +23 -0
  855. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTypes.h +43 -0
  856. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserLocation.h +41 -0
  857. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserLocationView.h +23 -0
  858. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserTrackingBarButtonItem.h +28 -0
  859. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserTrackingButton.h +30 -0
  860. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKZoomControl.h +37 -0
  861. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes +359 -0
  862. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MapKit.h +116 -0
  863. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/NSUserActivity+MKMapItem.h +16 -0
  864. package/sdk/ios/System/Library/Frameworks/MapKit.framework/Modules/module.modulemap +7 -0
  865. package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTAudioProcessingTap.h +416 -0
  866. package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTFormatNames.h +32 -0
  867. package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTProfessionalVideoWorkflow.h +40 -0
  868. package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes +9 -0
  869. package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.h +13 -0
  870. package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Modules/module.modulemap +6 -0
  871. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKDefines.h +19 -0
  872. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKModel.h +299 -0
  873. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKTextureLoader.h +369 -0
  874. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h +269 -0
  875. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.apinotes +181 -0
  876. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.h +10 -0
  877. package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Modules/module.modulemap +6 -0
  878. package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTCoreTypes.h +20 -0
  879. package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Modules/module.modulemap +14 -0
  880. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAnimatedValueTypes.h +224 -0
  881. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAnimation.h +63 -0
  882. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h +335 -0
  883. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAssetResolver.h +75 -0
  884. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLCamera.h +441 -0
  885. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLLight.h +171 -0
  886. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h +414 -0
  887. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMesh.h +700 -0
  888. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h +283 -0
  889. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h +167 -0
  890. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLSubmesh.h +217 -0
  891. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTexture.h +396 -0
  892. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTransform.h +129 -0
  893. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTransformStack.h +134 -0
  894. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h +100 -0
  895. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLUtility.h +20 -0
  896. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLValueTypes.h +32 -0
  897. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLVertexDescriptor.h +342 -0
  898. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLVoxelArray.h +277 -0
  899. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.apinotes +57 -0
  900. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.h +26 -0
  901. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIOExports.h +18 -0
  902. package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Modules/module.modulemap +6 -0
  903. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h +93 -0
  904. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLDrawable.h +72 -0
  905. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLIOSurface.h +28 -0
  906. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/gl.h +812 -0
  907. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/glext.h +365 -0
  908. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h +629 -0
  909. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/glext.h +479 -0
  910. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES3/gl.h +1040 -0
  911. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES3/glext.h +310 -0
  912. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes +53 -0
  913. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLESAvailability.h +13 -0
  914. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/gltypes.h +39 -0
  915. package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Modules/module.modulemap +23 -0
  916. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAction.h +33 -0
  917. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionGoTo.h +31 -0
  918. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionNamed.h +51 -0
  919. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionRemoteGoTo.h +41 -0
  920. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionResetForm.h +41 -0
  921. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionURL.h +28 -0
  922. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotation.h +307 -0
  923. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h +289 -0
  924. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAppearanceCharacteristics.h +74 -0
  925. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFBorder.h +66 -0
  926. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFDestination.h +54 -0
  927. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h +347 -0
  928. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes +32 -0
  929. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h +28 -0
  930. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h +142 -0
  931. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFOutline.h +87 -0
  932. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h +220 -0
  933. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h +35 -0
  934. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFSelection.h +107 -0
  935. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h +75 -0
  936. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h +461 -0
  937. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Modules/module.modulemap +4 -0
  938. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEDRMetadata.h +117 -0
  939. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -1
  940. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h +180 -0
  941. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +22 -0
  942. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -22
  943. package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +93 -0
  944. package/sdk/ios/System/Library/Frameworks/React.framework/Modules/module.modulemap +4 -0
  945. package/sdk/ios/System/Library/Frameworks/Symbols.framework/Headers/NSSymbolEffect.h +566 -0
  946. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/CaptiveNetwork.h +189 -0
  947. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/DHCPClientPreferences.h +83 -0
  948. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopyDHCPInfo.h +119 -0
  949. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Modules/module.modulemap +21 -0
  950. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/DocumentManager.h +11 -0
  951. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAdaptiveImageGlyph.h +45 -0
  952. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +231 -19
  953. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h +49 -0
  954. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDiffableDataSourceSectionSnapshot.h +158 -0
  955. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h +21 -0
  956. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSIndexPath+UIKitAdditions.h +33 -0
  957. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h +68 -0
  958. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutAnchor.h +132 -0
  959. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h +227 -0
  960. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +367 -6
  961. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +458 -86
  962. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h +37 -0
  963. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h +82 -0
  964. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +39 -24
  965. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h +337 -0
  966. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +208 -11
  967. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h +390 -0
  968. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextElement.h +86 -0
  969. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutFragment.h +185 -0
  970. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h +396 -0
  971. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLineFragment.h +100 -0
  972. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +140 -9
  973. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextListElement.h +94 -0
  974. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextRange.h +141 -0
  975. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelection.h +118 -0
  976. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelectionNavigation.h +312 -0
  977. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +191 -5
  978. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextTable.h +96 -0
  979. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportLayoutController.h +192 -0
  980. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportRenderingSurface.h +30 -0
  981. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTouchBar+UIKitAdditions.h +61 -0
  982. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSUserActivity+NSItemProvider.h +18 -0
  983. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/PrintKitUI.h +20 -0
  984. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/ShareSheet.h +15 -0
  985. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h +53 -0
  986. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h +644 -0
  987. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h +76 -0
  988. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +228 -22
  989. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContainer.h +110 -0
  990. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContentSizeCategoryImageAdjusting.h +54 -0
  991. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomAction.h +78 -0
  992. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +101 -0
  993. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h +49 -0
  994. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityIdentification.h +53 -0
  995. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityLocationDescriptor.h +69 -0
  996. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityZoom.h +35 -0
  997. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
  998. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h +82 -0
  999. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivity.h +66 -0
  1000. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityCollaborationModeRestriction.h +90 -0
  1001. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h +45 -0
  1002. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemProvider.h +1 -0
  1003. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfiguration.h +47 -0
  1004. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfigurationReading+ShareSheet.h +20 -0
  1005. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfigurationReading.h +67 -0
  1006. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h +56 -0
  1007. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlert.h +14 -0
  1008. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h +64 -0
  1009. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h +88 -0
  1010. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +55 -2
  1011. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +653 -34
  1012. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplicationShortcutItem.h +84 -0
  1013. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIArrangementViewController.h +124 -0
  1014. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAttachmentBehavior.h +112 -0
  1015. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +129 -0
  1016. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundExtensionView.h +46 -0
  1017. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBandSelectionInteraction.h +53 -0
  1018. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +24 -1
  1019. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItem.h +285 -0
  1020. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemAppearance.h +71 -0
  1021. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +56 -0
  1022. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemGroup.h +72 -0
  1023. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarCommon.h +43 -0
  1024. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarItem.h +49 -0
  1025. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +61 -0
  1026. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBehavioralStyle.h +45 -0
  1027. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h +94 -0
  1028. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBlurEffect.h +71 -0
  1029. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButton.h +188 -0
  1030. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +173 -0
  1031. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelection.h +29 -0
  1032. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionMultiDate.h +79 -0
  1033. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionSingleDate.h +63 -0
  1034. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionWeekOfYear.h +63 -0
  1035. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarView.h +103 -0
  1036. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarViewDecoration.h +64 -0
  1037. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICanvasFeedbackGenerator.h +31 -0
  1038. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICellAccessory.h +241 -0
  1039. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICellConfigurationState.h +50 -0
  1040. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h +84 -0
  1041. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionLayoutList.h +143 -0
  1042. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +770 -0
  1043. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCell.h +120 -0
  1044. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCompositionalLayout.h +614 -0
  1045. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewController.h +50 -0
  1046. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +68 -0
  1047. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewItemRegistration.h +51 -0
  1048. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +192 -0
  1049. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewListCell.h +59 -0
  1050. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewTransitionLayout.h +39 -0
  1051. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewUpdateItem.h +30 -0
  1052. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h +69 -0
  1053. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +161 -2
  1054. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorPickerViewController.h +71 -0
  1055. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorWell.h +43 -0
  1056. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +1 -1
  1057. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConfigurationColorTransformer.h +37 -0
  1058. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConfigurationState.h +40 -0
  1059. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentConfiguration.h +51 -0
  1060. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategory.h +45 -0
  1061. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategoryAdjusting.h +31 -0
  1062. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableButtonProperties.h +39 -0
  1063. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableConfiguration.h +90 -0
  1064. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableConfigurationState.h +36 -0
  1065. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableImageProperties.h +46 -0
  1066. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableTextProperties.h +53 -0
  1067. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableView.h +37 -0
  1068. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +73 -0
  1069. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +181 -0
  1070. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuSystem.h +29 -0
  1071. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextualAction.h +42 -0
  1072. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIControl.h +177 -0
  1073. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationContext.h +41 -0
  1074. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationEntry.h +46 -0
  1075. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICornerConfiguration.h +77 -0
  1076. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICornerRadius.h +36 -0
  1077. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +15 -19
  1078. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataSourceTranslating.h +55 -0
  1079. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +55 -13
  1080. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +84 -0
  1081. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +88 -16
  1082. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDiffableDataSource.h +252 -0
  1083. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocument.h +204 -0
  1084. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserAction.h +44 -0
  1085. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h +199 -0
  1086. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentInteractionController.h +104 -0
  1087. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentMenuViewController.h +47 -0
  1088. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerExtensionViewController.h +47 -0
  1089. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h +77 -0
  1090. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentProperties.h +48 -0
  1091. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewController.h +48 -0
  1092. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewControllerLaunchOptions.h +59 -0
  1093. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragInteraction.h +247 -0
  1094. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragItem.h +59 -0
  1095. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragPreview.h +52 -0
  1096. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragPreviewParameters.h +22 -0
  1097. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragSession.h +118 -0
  1098. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDropInteraction.h +166 -0
  1099. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h +70 -0
  1100. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicBehavior.h +75 -0
  1101. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h +62 -0
  1102. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h +149 -0
  1103. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +4 -24
  1104. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttribution.h +68 -0
  1105. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttributionView.h +23 -0
  1106. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFeedbackGenerator.h +37 -0
  1107. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFieldBehavior.h +169 -0
  1108. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindInteraction.h +90 -0
  1109. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindSession.h +134 -0
  1110. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocus.h +198 -0
  1111. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusAnimationCoordinator.h +66 -0
  1112. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDebugger.h +66 -0
  1113. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDefines.h +19 -0
  1114. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusEffect.h +62 -0
  1115. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusGuide.h +36 -0
  1116. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusMovementHint.h +37 -0
  1117. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem+UIKitAdditions.h +32 -0
  1118. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h +57 -0
  1119. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusUpdateContext+UIKitAdditions.h +31 -0
  1120. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +11 -5
  1121. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +14 -7
  1122. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h +40 -0
  1123. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewController.h +50 -0
  1124. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewControllerConfiguration.h +38 -0
  1125. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFoundation.h +32 -0
  1126. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +10 -40
  1127. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +3 -14
  1128. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGlassEffect.h +58 -0
  1129. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h +57 -0
  1130. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h +65 -0
  1131. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsPDFRenderer.h +47 -0
  1132. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRenderer.h +72 -0
  1133. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRendererSubclass.h +39 -0
  1134. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h +39 -0
  1135. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccess.h +91 -0
  1136. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccessRestrictions.h +14 -0
  1137. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h +76 -0
  1138. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h +77 -0
  1139. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffect.h +63 -0
  1140. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffectLayer.h +74 -0
  1141. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +1 -1
  1142. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverStyle.h +64 -0
  1143. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h +374 -0
  1144. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageAsset.h +37 -0
  1145. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h +58 -0
  1146. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h +121 -0
  1147. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageReader.h +57 -0
  1148. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h +84 -0
  1149. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageView.h +119 -0
  1150. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h +46 -0
  1151. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIIndirectScribbleInteraction.h +117 -0
  1152. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputSuggestion.h +26 -0
  1153. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputView.h +33 -0
  1154. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +77 -0
  1155. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +219 -23
  1156. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKey.h +43 -0
  1157. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyCommand.h +121 -0
  1158. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyConstants.h +34 -0
  1159. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyboardLayoutGuide.h +42 -0
  1160. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4 -172
  1161. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +19 -926
  1162. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h +435 -0
  1163. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +13 -20
  1164. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h +116 -0
  1165. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILargeContentViewer.h +121 -0
  1166. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILetterformAwareAdjusting.h +38 -0
  1167. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILexicon.h +34 -0
  1168. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentConfiguration.h +154 -0
  1169. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentImageProperties.h +87 -0
  1170. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentTextProperties.h +77 -0
  1171. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListSeparatorConfiguration.h +68 -0
  1172. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h +68 -0
  1173. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h +46 -0
  1174. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILongPressGestureRecognizer.h +36 -0
  1175. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILookToScrollInteraction.h +29 -0
  1176. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationContext.h +34 -0
  1177. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationEntry.h +35 -0
  1178. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMainMenuSystem.h +73 -0
  1179. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h +68 -0
  1180. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +5 -24
  1181. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuBuilder.h +173 -0
  1182. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuController.h +66 -0
  1183. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +6 -34
  1184. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuSystem.h +58 -0
  1185. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationContext.h +29 -0
  1186. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationEntry.h +35 -0
  1187. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMotionEffect.h +80 -0
  1188. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBar.h +166 -0
  1189. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBarAppearance.h +61 -0
  1190. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h +165 -0
  1191. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationItem.h +268 -0
  1192. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINib.h +36 -0
  1193. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibDeclarations.h +36 -0
  1194. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibLoading.h +33 -0
  1195. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h +33 -0
  1196. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOpenURLContext.h +30 -0
  1197. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +51 -14
  1198. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOverlayArrangement.h +60 -0
  1199. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControl.h +112 -0
  1200. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControlProgress.h +118 -0
  1201. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +123 -0
  1202. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPanGestureRecognizer.h +43 -0
  1203. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfiguration.h +35 -0
  1204. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h +31 -0
  1205. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h +52 -0
  1206. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h +193 -0
  1207. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPencilInteraction.h +170 -0
  1208. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPhotoSearchSuggestion.h +68 -0
  1209. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +8 -3
  1210. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPinchGestureRecognizer.h +31 -0
  1211. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerAccessory.h +73 -0
  1212. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerInteraction.h +106 -0
  1213. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerLockState.h +45 -0
  1214. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerRegion.h +41 -0
  1215. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +153 -0
  1216. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverBackgroundView.h +51 -0
  1217. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h +104 -0
  1218. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationController.h +92 -0
  1219. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationControllerSourceItem.h +56 -0
  1220. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverSupport.h +29 -0
  1221. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPresentationController.h +132 -0
  1222. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPress.h +70 -0
  1223. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPressesEvent.h +28 -0
  1224. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewInteraction.h +51 -0
  1225. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewParameters.h +56 -0
  1226. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintError.h +27 -0
  1227. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintFormatter.h +93 -0
  1228. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInfo.h +54 -0
  1229. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +97 -0
  1230. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPageRenderer.h +57 -0
  1231. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPaper.h +35 -0
  1232. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintServiceExtension.h +38 -0
  1233. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinter.h +131 -0
  1234. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinterPickerController.h +77 -0
  1235. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIProgressView.h +46 -0
  1236. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h +49 -0
  1237. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIReferenceLibraryViewController.h +35 -0
  1238. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRefreshControl.h +42 -0
  1239. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRegion.h +59 -0
  1240. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder+UIActivityItemsConfiguration.h +25 -0
  1241. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +228 -0
  1242. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRotationGestureRecognizer.h +31 -0
  1243. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScene+AVAudioSession.h +30 -0
  1244. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScene.h +122 -0
  1245. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessory.h +83 -0
  1246. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessoryRegistration.h +41 -0
  1247. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneActivationConditions.h +41 -0
  1248. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneClosureConfirmation.h +65 -0
  1249. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneConfiguration.h +52 -0
  1250. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneDefinitions.h +38 -0
  1251. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneDestructionCondition.h +35 -0
  1252. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneEnhancedStateRestoration.h +25 -0
  1253. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneOptions.h +116 -0
  1254. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSession.h +43 -0
  1255. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSessionActivationRequest.h +55 -0
  1256. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSizeRestrictions.h +39 -0
  1257. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h +42 -0
  1258. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingBehaviors.h +29 -0
  1259. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingControlStyle.h +38 -0
  1260. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h +109 -0
  1261. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenEdgePanGestureRecognizer.h +24 -0
  1262. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenMode.h +23 -0
  1263. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenshotService.h +66 -0
  1264. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScribbleInteraction.h +86 -0
  1265. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollEdgeElementContainerInteraction.h +41 -0
  1266. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +348 -0
  1267. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchBar.h +212 -0
  1268. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchContainerViewController.h +27 -0
  1269. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h +162 -0
  1270. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchDisplayController.h +75 -0
  1271. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchSuggestion.h +90 -0
  1272. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +35 -0
  1273. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTextField.h +131 -0
  1274. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISegmentedControl.h +134 -0
  1275. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISelectionFeedbackGenerator.h +30 -0
  1276. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIShadowProperties.h +43 -0
  1277. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIShape.h +176 -0
  1278. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISheetPresentationController.h +173 -0
  1279. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +73 -0
  1280. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISliderTrackConfiguration.h +49 -0
  1281. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISmartReplySuggestion.h +32 -0
  1282. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h +31 -0
  1283. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitArrangement.h +114 -0
  1284. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +314 -0
  1285. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +31 -0
  1286. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteraction.h +144 -0
  1287. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteractionSupporting.h +25 -0
  1288. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h +236 -0
  1289. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStandardTextCursorView.h +25 -0
  1290. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStateRestoration.h +95 -0
  1291. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStatusBarManager.h +36 -0
  1292. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStepper.h +51 -0
  1293. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboard.h +35 -0
  1294. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardPopoverSegue.h +28 -0
  1295. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardSegue.h +52 -0
  1296. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +98 -12
  1297. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeActionsConfiguration.h +29 -0
  1298. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h +42 -0
  1299. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwitch.h +52 -0
  1300. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolContentTransition.h +41 -0
  1301. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolEffectCompletion.h +53 -0
  1302. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +148 -0
  1303. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +65 -0
  1304. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +158 -6
  1305. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +31 -2
  1306. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h +232 -0
  1307. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarControllerSidebar.h +250 -0
  1308. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarItem.h +75 -0
  1309. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabGroup.h +116 -0
  1310. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabSidebarItem.h +79 -0
  1311. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h +802 -0
  1312. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewCell.h +200 -0
  1313. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewController.h +38 -0
  1314. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewHeaderFooterView.h +87 -0
  1315. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITapGestureRecognizer.h +36 -0
  1316. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITargetedDragPreview.h +37 -0
  1317. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITargetedPreview.h +98 -0
  1318. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextChecker.h +53 -0
  1319. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorDropPositionAnimator.h +43 -0
  1320. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorView.h +31 -0
  1321. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragPreviewRenderer.h +45 -0
  1322. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragURLPreviews.h +46 -0
  1323. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h +129 -0
  1324. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropProposal.h +102 -0
  1325. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropping.h +143 -0
  1326. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h +227 -0
  1327. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingCoordinator.h +51 -0
  1328. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewController.h +89 -0
  1329. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerChangeValue.h +95 -0
  1330. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerComponent.h +92 -0
  1331. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerConfiguration.h +48 -0
  1332. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerFormattingDescriptor.h +94 -0
  1333. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerFormattingStyle.h +39 -0
  1334. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h +379 -0
  1335. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputContext.h +26 -0
  1336. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +290 -29
  1337. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInteraction.h +45 -0
  1338. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItem.h +98 -0
  1339. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItemInteraction.h +14 -0
  1340. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextLoupeSession.h +41 -0
  1341. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteConfigurationSupporting.h +28 -0
  1342. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteDelegate.h +147 -0
  1343. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h +161 -0
  1344. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionDisplayInteraction.h +81 -0
  1345. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHandleView.h +39 -0
  1346. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHighlightView.h +29 -0
  1347. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h +369 -0
  1348. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingCurveProvider.h +31 -0
  1349. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingParameters.h +84 -0
  1350. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolTipInteraction.h +78 -0
  1351. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbar.h +91 -0
  1352. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbarAppearance.h +35 -0
  1353. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +11 -12
  1354. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrackingLayoutGuide.h +46 -0
  1355. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrait.h +142 -0
  1356. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +306 -18
  1357. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitListEnvironment.h +28 -0
  1358. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateActionPhase.h +102 -0
  1359. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateInfo.h +82 -0
  1360. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateLink.h +95 -0
  1361. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserActivity.h +27 -0
  1362. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h +128 -0
  1363. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVerticalBarEdge.h +45 -0
  1364. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +44 -0
  1365. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVideoEditorController.h +47 -0
  1366. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +696 -17
  1367. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +84 -12
  1368. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewConfigurationState.h +40 -0
  1369. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +880 -16
  1370. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransition.h +83 -0
  1371. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h +138 -0
  1372. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitioning.h +253 -0
  1373. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewLayoutRegion.h +45 -0
  1374. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewPropertyAnimator.h +109 -0
  1375. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewReservedRegion.h +81 -0
  1376. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +35 -0
  1377. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +44 -0
  1378. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h +106 -0
  1379. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +156 -2
  1380. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h +153 -0
  1381. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationAction.h +51 -0
  1382. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationConfiguration.h +41 -0
  1383. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationInteraction.h +43 -0
  1384. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationRequestOptions.h +37 -0
  1385. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneDragInteraction.h +28 -0
  1386. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h +65 -0
  1387. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferences.h +27 -0
  1388. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h +31 -0
  1389. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h +31 -0
  1390. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h +49 -0
  1391. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScenePlacement.h +28 -0
  1392. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneProminentPlacement.h +26 -0
  1393. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScenePushPlacement.h +38 -0
  1394. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneReplacePlacement.h +32 -0
  1395. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneStandardPlacement.h +27 -0
  1396. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinator.h +1140 -0
  1397. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinatorAnimationParameters.h +67 -0
  1398. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinatorContext.h +143 -0
  1399. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIZoomTransitionOptions.h +72 -0
  1400. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UNNotificationResponse+UIKitAdditions.h +25 -0
  1401. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +7 -0
  1402. package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +49 -0
  1403. package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Modules/module.modulemap +4 -0
  1404. package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Headers/UIKitAnimationOptions.apinotes +6 -0
  1405. package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Headers/UIViewAnimationOptions.h +3 -0
  1406. package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Modules/module.modulemap +4 -0
  1407. package/sdk/ios/System/Library/Frameworks/UIKitGeometry.framework/Headers/UIEdgeInsets.h +21 -0
  1408. package/sdk/ios/System/Library/Frameworks/UIKitGeometry.framework/Modules/module.modulemap +4 -0
  1409. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +2 -2
  1410. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +4 -0
  1411. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +2209 -0
  1412. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIWindowLevel.h +5 -0
  1413. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Modules/module.modulemap +4 -0
  1414. package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UICoordinateSpace.h +24 -0
  1415. package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UIDefines.h +26 -0
  1416. package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UIGeometry.h +22 -0
  1417. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/NSItemProvider+UTType.h +128 -0
  1418. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +2 -0
  1419. package/sdk/ios/usr/include/MacTypes.h +815 -10
  1420. package/sdk/ios/usr/include/libxml2/libxml/DOCBparser.h +96 -0
  1421. package/sdk/ios/usr/include/libxml2/libxml/HTMLparser.h +306 -0
  1422. package/sdk/ios/usr/include/libxml2/libxml/HTMLtree.h +147 -0
  1423. package/sdk/ios/usr/include/libxml2/libxml/SAX.h +173 -0
  1424. package/sdk/ios/usr/include/libxml2/libxml/SAX2.h +178 -0
  1425. package/sdk/ios/usr/include/libxml2/libxml/c14n.h +128 -0
  1426. package/sdk/ios/usr/include/libxml2/libxml/catalog.h +182 -0
  1427. package/sdk/ios/usr/include/libxml2/libxml/chvalid.h +230 -0
  1428. package/sdk/ios/usr/include/libxml2/libxml/debugXML.h +217 -0
  1429. package/sdk/ios/usr/include/libxml2/libxml/dict.h +79 -0
  1430. package/sdk/ios/usr/include/libxml2/libxml/encoding.h +245 -0
  1431. package/sdk/ios/usr/include/libxml2/libxml/entities.h +151 -0
  1432. package/sdk/ios/usr/include/libxml2/libxml/globals.h +508 -0
  1433. package/sdk/ios/usr/include/libxml2/libxml/hash.h +236 -0
  1434. package/sdk/ios/usr/include/libxml2/libxml/list.h +137 -0
  1435. package/sdk/ios/usr/include/libxml2/libxml/nanoftp.h +163 -0
  1436. package/sdk/ios/usr/include/libxml2/libxml/nanohttp.h +81 -0
  1437. package/sdk/ios/usr/include/libxml2/libxml/parser.h +1243 -0
  1438. package/sdk/ios/usr/include/libxml2/libxml/parserInternals.h +644 -0
  1439. package/sdk/ios/usr/include/libxml2/libxml/pattern.h +100 -0
  1440. package/sdk/ios/usr/include/libxml2/libxml/relaxng.h +217 -0
  1441. package/sdk/ios/usr/include/libxml2/libxml/schemasInternals.h +958 -0
  1442. package/sdk/ios/usr/include/libxml2/libxml/schematron.h +142 -0
  1443. package/sdk/ios/usr/include/libxml2/libxml/threads.h +89 -0
  1444. package/sdk/ios/usr/include/libxml2/libxml/tree.h +1311 -0
  1445. package/sdk/ios/usr/include/libxml2/libxml/uri.h +94 -0
  1446. package/sdk/ios/usr/include/libxml2/libxml/valid.h +458 -0
  1447. package/sdk/ios/usr/include/libxml2/libxml/xinclude.h +129 -0
  1448. package/sdk/ios/usr/include/libxml2/libxml/xlink.h +189 -0
  1449. package/sdk/ios/usr/include/libxml2/libxml/xmlIO.h +368 -0
  1450. package/sdk/ios/usr/include/libxml2/libxml/xmlautomata.h +146 -0
  1451. package/sdk/ios/usr/include/libxml2/libxml/xmlerror.h +945 -0
  1452. package/sdk/ios/usr/include/libxml2/libxml/xmlexports.h +77 -0
  1453. package/sdk/ios/usr/include/libxml2/libxml/xmlmemory.h +224 -0
  1454. package/sdk/ios/usr/include/libxml2/libxml/xmlmodule.h +57 -0
  1455. package/sdk/ios/usr/include/libxml2/libxml/xmlreader.h +428 -0
  1456. package/sdk/ios/usr/include/libxml2/libxml/xmlregexp.h +222 -0
  1457. package/sdk/ios/usr/include/libxml2/libxml/xmlsave.h +88 -0
  1458. package/sdk/ios/usr/include/libxml2/libxml/xmlschemas.h +246 -0
  1459. package/sdk/ios/usr/include/libxml2/libxml/xmlschemastypes.h +151 -0
  1460. package/sdk/ios/usr/include/libxml2/libxml/xmlstring.h +140 -0
  1461. package/sdk/ios/usr/include/libxml2/libxml/xmlunicode.h +202 -0
  1462. package/sdk/ios/usr/include/libxml2/libxml/xmlversion.h +485 -0
  1463. package/sdk/ios/usr/include/libxml2/libxml/xmlwriter.h +488 -0
  1464. package/sdk/ios/usr/include/libxml2/libxml/xpath.h +564 -0
  1465. package/sdk/ios/usr/include/libxml2/libxml/xpathInternals.h +632 -0
  1466. package/sdk/ios/usr/include/libxml2/libxml/xpointer.h +114 -0
  1467. package/sdk/ios/usr/include/libxml2/module.modulemap +5 -0
  1468. package/sdk/ios/usr/include/mach-o/compact_unwind_encoding.h +542 -0
  1469. package/sdk/ios/usr/include/objc/NSObject.h +0 -6
  1470. package/sdk/ios/usr/include/simd/base.h +160 -0
  1471. package/sdk/ios/usr/include/simd/common.h +5617 -0
  1472. package/sdk/ios/usr/include/simd/conversion.h +2472 -0
  1473. package/sdk/ios/usr/include/simd/extern.h +65 -0
  1474. package/sdk/ios/usr/include/simd/geometry.h +1524 -0
  1475. package/sdk/ios/usr/include/simd/logic.h +1399 -0
  1476. package/sdk/ios/usr/include/simd/math.h +6595 -0
  1477. package/sdk/ios/usr/include/simd/matrix.h +2865 -0
  1478. package/sdk/ios/usr/include/simd/matrix_types.h +758 -0
  1479. package/sdk/ios/usr/include/simd/module.modulemap +6 -0
  1480. package/sdk/ios/usr/include/simd/packed.h +1111 -0
  1481. package/sdk/ios/usr/include/simd/quaternion.h +1780 -0
  1482. package/sdk/ios/usr/include/simd/simd.h +30 -0
  1483. package/sdk/ios/usr/include/simd/types.h +158 -0
  1484. package/sdk/ios/usr/include/simd/vector.h +52 -0
  1485. package/sdk/ios/usr/include/simd/vector_make.h +8759 -0
  1486. package/sdk/ios/usr/include/simd/vector_types.h +1381 -0
  1487. package/sdk/ios/usr/include/sys/cdefs.h +3 -0
  1488. package/sdk/ios/usr/include/tgmath.h +1441 -0
  1489. package/sdk/ios/usr/include/unicode/localpointer.h +607 -0
  1490. package/sdk/ios/usr/include/unicode/parseerr.h +94 -0
  1491. package/sdk/ios/usr/include/unicode/platform.h +852 -0
  1492. package/sdk/ios/usr/include/unicode/ptypes.h +66 -0
  1493. package/sdk/ios/usr/include/unicode/putil.h +183 -0
  1494. package/sdk/ios/usr/include/unicode/stringoptions.h +190 -0
  1495. package/sdk/ios/usr/include/unicode/uchar.h +4421 -0
  1496. package/sdk/ios/usr/include/unicode/uconfig.h +504 -0
  1497. package/sdk/ios/usr/include/unicode/ucpmap.h +158 -0
  1498. package/sdk/ios/usr/include/unicode/uidna.h +794 -0
  1499. package/sdk/ios/usr/include/unicode/uiter.h +709 -0
  1500. package/sdk/ios/usr/include/unicode/umachine.h +513 -0
  1501. package/sdk/ios/usr/include/unicode/uregex.h +1617 -0
  1502. package/sdk/ios/usr/include/unicode/urename.h +2057 -0
  1503. package/sdk/ios/usr/include/unicode/ustring.h +1719 -0
  1504. package/sdk/ios/usr/include/unicode/utext.h +1613 -0
  1505. package/sdk/ios/usr/include/unicode/utf.h +256 -0
  1506. package/sdk/ios/usr/include/unicode/utf16.h +740 -0
  1507. package/sdk/ios/usr/include/unicode/utf8.h +908 -0
  1508. package/sdk/ios/usr/include/unicode/utf_old.h +1209 -0
  1509. package/sdk/ios/usr/include/unicode/utypes.h +913 -0
  1510. package/sdk/ios/usr/include/unicode/uvernum.h +191 -0
  1511. package/sdk/ios/usr/include/unicode/uversion.h +254 -0
  1512. package/sdk/ios/wasm/include/__header_time.h +12 -0
  1513. package/sdk/ios/wasm/include/__locale_dir/locale_base_api/musl.h +6 -0
  1514. package/sdk/ios/wasm/include/__typedef_clockid_t.h +18 -0
  1515. package/sdk/ios/wasm/include/fts.h +22 -0
  1516. package/sdk/ios/wasm/include/math.h +53 -0
  1517. package/sdk/ios/wasm/include/pthread/pthread.h +2 -0
  1518. package/sdk/ios/wasm/include/pthread.h +13 -0
  1519. package/sdk/ios/wasm/include/string.h +6 -0
  1520. package/sdk/ios/wasm/include/swiftToCxx/_SwiftCxxInteroperability.h +319 -0
  1521. package/sdk/ios/wasm/include/sys/mman.h +4 -4
  1522. package/sdk/ios/wasm/include/sys/resource.h +2 -1
  1523. package/sdk/ios/wasm/include/sys/socket.h +10 -0
  1524. package/sdk/ios/wasm/include/sys/ucontext.h +4 -0
  1525. package/sdk/ios/wasm/include/tgmath.h +3 -0
  1526. package/sdk/ios/wasm/include/time.h +12 -0
  1527. package/sdk/ios/wasm/include/unistd.h +1 -0
  1528. package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +4 -1
  1529. package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +4 -0
  1530. package/sdk/native-hashes.json +2 -1
  1531. package/src/bundle-channel.mjs +10 -4
  1532. package/src/dns-over-https.ts +70 -0
  1533. package/src/expo-native-workspace.ts +4 -0
  1534. package/src/expo-swift-host.ts +130 -70
  1535. package/src/host/bridge-host.ts +8 -0
  1536. package/src/host/fetch-proxy-handler.ts +9 -0
  1537. package/src/host/fetch-proxy-transport.ts +8 -0
  1538. package/src/host/hostname-resolver.ts +44 -0
  1539. package/src/host/network-policy.ts +4 -0
  1540. package/src/installed-native-libraries.ts +193 -0
  1541. package/src/native-static-libraries.ts +121 -8
  1542. package/src/nitro-adapter.lock.json +316 -260
  1543. package/src/nitro-bundle.ts +25 -6
  1544. package/src/nitro-compile.ts +134 -147
  1545. package/src/nitro-compiler-digest.ts +4 -0
  1546. package/src/nitro-source.ts +35 -12
  1547. package/src/nitro-superset.lock.json +133 -36
  1548. package/src/nitro-superset.ts +33 -6
  1549. package/src/nitroContract.ts +11 -2
  1550. package/src/pdfium-raster.ts +97 -0
  1551. package/src/react-native-bridge-modules.ts +8 -0
  1552. package/src/swift-binary-modules.ts +2 -2
  1553. package/src/swift-compile.ts +465 -255
  1554. package/src/swift-compiler-digest.ts +2 -0
  1555. package/src/swift-coverage/xcode-asset-symbols.ts +6 -2
  1556. package/src/swift-coverage/xcode-assets.ts +4 -2
  1557. package/src/swift-cxx-reachable.ts +3 -3
  1558. package/src/swift-darwin-records.ts +4 -3
  1559. package/src/swift-distribution.lock.json +34 -15
  1560. package/src/swift-distribution.ts +23 -0
  1561. package/src/swift-foundation.ts +9 -0
  1562. package/src/swift-host.ts +189 -60
  1563. package/src/swift-installed-targets.ts +188 -0
  1564. package/src/swift-link-roots.ts +6 -3
  1565. package/src/swift-objc-compile.ts +128 -43
  1566. package/src/swift-objc-standin.ts +69 -30
  1567. package/src/swift-package.ts +43 -14
  1568. package/src/swift-pdf-raster.ts +34 -15
  1569. package/src/swift-reproducible.ts +2 -2
  1570. package/src/swift-runtime-products.ts +87 -0
  1571. package/src/swift-shared-sdk.ts +56 -14
  1572. package/src/swift-source-file.ts +12 -0
  1573. package/src/swift-source-pods.ts +28 -29
  1574. package/src/swift-standin-emit.ts +205 -36
  1575. package/src/swift-standins.ts +221 -86
  1576. package/src/swift-submit.ts +2 -1
  1577. package/src/swift-toolchain.ts +51 -0
  1578. package/src/swift-uniform-type-constants.ts +37 -0
  1579. package/src/swift-wasm-prune.ts +10 -8
  1580. package/src/swift-xcframework.ts +37 -0
  1581. package/src/swiftContract.ts +50 -13
  1582. package/src/swiftRuntimeProductContract.ts +92 -0
  1583. package/src/turbo-codegen-intake.ts +1 -0
  1584. package/src/turbo-compile.ts +96 -60
  1585. package/src/turbo-runtime.lock.json +23 -16
  1586. package/src/turbo-source.ts +276 -141
  1587. package/src/worker-system-chunks.ts +6 -1
  1588. package/src/write-build-file.ts +15 -0
  1589. package/src/xcode-header-search.ts +3 -2
  1590. package/src/xcode-project.ts +131 -15
  1591. package/src/turbo-native-libraries.ts +0 -98
@@ -1,88 +1,4194 @@
1
- #pragma once
1
+ #if !__has_include(<AVFCapture/AVCaptureDevice.h>)
2
+ /*
3
+ File: AVCaptureDevice.h
4
+
5
+ Framework: AVFoundation
6
+
7
+ Copyright 2010-2026 Apple Inc. All rights reserved.
8
+ */
9
+
2
10
  #import <AVFoundation/AVBase.h>
11
+ #import <AVFoundation/AVCaptureSessionPreset.h>
12
+ #import <AVFoundation/AVCaptureReactions.h>
3
13
  #import <AVFoundation/AVMediaFormat.h>
4
14
  #import <Foundation/Foundation.h>
15
+ #import <CoreMedia/CMFormatDescription.h>
16
+ #import <CoreGraphics/CGBase.h>
17
+ #import <CoreGraphics/CGGeometry.h>
18
+
19
+ @class CALayer;
5
20
 
6
21
  NS_ASSUME_NONNULL_BEGIN
7
22
 
23
+ /*!
24
+ @constant AVCaptureDeviceWasConnectedNotification
25
+ @abstract
26
+ Posted when a device becomes available on the system.
27
+
28
+ @discussion
29
+ The notification object is an AVCaptureDevice instance representing the device that became available.
30
+ */
31
+ AVF_EXPORT NSNotificationName const AVCaptureDeviceWasConnectedNotification NS_SWIFT_NAME(AVCaptureDevice.wasConnectedNotification) API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
32
+
33
+ /*!
34
+ @constant AVCaptureDeviceWasDisconnectedNotification
35
+ @abstract
36
+ Posted when a device becomes unavailable on the system.
37
+
38
+ @discussion
39
+ The notification object is an AVCaptureDevice instance representing the device that became unavailable.
40
+ */
41
+ AVF_EXPORT NSNotificationName const AVCaptureDeviceWasDisconnectedNotification NS_SWIFT_NAME(AVCaptureDevice.wasDisconnectedNotification) API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
42
+
43
+ /*!
44
+ @constant AVCaptureDeviceSubjectAreaDidChangeNotification
45
+ @abstract
46
+ Posted when the instance of AVCaptureDevice has detected a substantial change to the video subject area.
47
+
48
+ @discussion
49
+ Clients may observe the AVCaptureDeviceSubjectAreaDidChangeNotification to know when an instance of AVCaptureDevice has detected a substantial change to the video subject area. This notification is only sent if you first set subjectAreaChangeMonitoringEnabled to YES.
50
+ */
51
+ AVF_EXPORT NSNotificationName const AVCaptureDeviceSubjectAreaDidChangeNotification NS_SWIFT_NAME(AVCaptureDevice.subjectAreaDidChangeNotification) API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
52
+
53
+
54
+ /// A special value that may be passed as the lensAperture parameter of a device's `setExposureModeCustom...` methods to lock at the current position.
55
+ ///
56
+ /// This value may be passed to ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`` to lock it to its current value. Note that the device may be adjusting the aperture at the time of the call, in which case ``AVCaptureDevice/lensAperture`` may be locked to different value than the value obtained by querying the property.
57
+ AVF_EXPORT const float AVCaptureLensApertureCurrent NS_SWIFT_NAME(AVCaptureDevice.currentLensAperture) API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
58
+
59
+ /// A special value that may be passed as the duration parameter of a device's `setExposureModeCustom...` methods to lock at the current duration.
60
+ ///
61
+ /// This value may be passed to ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`` to lock it to its current value. Note that the device may be adjusting exposure duration at the time of the call, in which case ``AVCaptureDevice/exposureDuration`` may be locked to different value than the value obtained by querying the property.
62
+ AVF_EXPORT const CMTime AVCaptureExposureDurationCurrent API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
63
+
64
+ /// A special value that may be passed as the ISO parameter of a device's `setExposureModeCustom...` methods to lock at the current gain value.
65
+ ///
66
+ /// This value may be passed to ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`` to lock it to its current value. Note that the device may be adjusting ISO at the time of the call, in which case ``AVCaptureDevice/ISO`` may be locked to different value than the value obtained by querying the property.
67
+ AVF_EXPORT const float AVCaptureISOCurrent API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
68
+
69
+ /// A special value that may be passed as the lensAperture parameter of a device's `setExposureModeCustom...` methods to allow the system's auto-exposure system to manage the aperture.
70
+ ///
71
+ /// This value may be passed to ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`` to enable "priority" modes, where some parameters are locked to specified values (given "priority"), whereas the ones specified as "auto" will be continually adjusted by the system to maintain image brightness.
72
+ AVF_EXPORT const float AVCaptureLensApertureAuto NS_SWIFT_NAME(AVCaptureDevice.autoLensAperture) API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
73
+
74
+ /// A special value that may be passed as the duration parameter of a device's `setExposureModeCustom...` methods to allow the system's auto-exposure system to manage the exposure duration.
75
+ ///
76
+ /// This value may be passed to ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`` to enable "priority" modes, where some parameters are locked to specified values (given "priority"), whereas the ones specified as "auto" will be continually adjusted by the system to maintain image brightness.
77
+ AVF_EXPORT const CMTime AVCaptureExposureDurationAuto NS_SWIFT_NAME(AVCaptureDevice.autoExposureDuration) API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
78
+
79
+ /// A special value that may be passed as the ISO parameter of a device's `setExposureModeCustom...` methods to allow the system's auto-exposure system to manage the gain value.
80
+ ///
81
+ /// This value may be passed to ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`` to enable "priority" modes, where some parameters are locked to specified values (given "priority"), whereas the ones specified as "auto" will be continually adjusted by the system to maintain image brightness.
82
+ AVF_EXPORT const float AVCaptureISOAuto NS_SWIFT_NAME(AVCaptureDevice.autoISO) API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
83
+
84
+
85
+ /// Values that can be used to configure the auto exposure system via ``AVCaptureDevice/enabledExposureSignals`` and associated methods.
86
+ typedef NSString *AVCaptureDeviceExposureSignal NS_TYPED_ENUM API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
87
+
88
+ /// When enabled, auto exposure may close the aperture or decrease the exposure duration to reduce motion blur when there is a lot of motion in the scene.
89
+ AVF_EXPORT AVCaptureDeviceExposureSignal const AVCaptureDeviceExposureSignalSubjectMotion API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
90
+
91
+ /// When enabled, auto exposure may close the aperture to increase depth of field when multiple faces are in the scene.
92
+ AVF_EXPORT AVCaptureDeviceExposureSignal const AVCaptureDeviceExposureSignalGroupPhoto API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
93
+
94
+ /// When enabled, auto exposure may close the aperture to improve sharpness of textual scenes.
95
+ AVF_EXPORT AVCaptureDeviceExposureSignal const AVCaptureDeviceExposureSignalDocument API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
96
+
97
+ /// When enabled, auto exposure may open the aperture to remove diffraction artifacts from point light sources.
98
+ AVF_EXPORT AVCaptureDeviceExposureSignal const AVCaptureDeviceExposureSignalStarburst API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
99
+
100
+ /// When enabled, auto exposure may adjust the aperture to help exposure duration avoid synchronization with artificial lighting frequencies.
101
+ AVF_EXPORT AVCaptureDeviceExposureSignal const AVCaptureDeviceExposureSignalFlicker API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
102
+
103
+ /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
8
104
  typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
105
+ /// Indicates that video should be oriented vertically, port on the bottom.
9
106
  AVCaptureVideoOrientationPortrait = 1,
107
+ /// Indicates that video should be oriented vertically, port on the top.
10
108
  AVCaptureVideoOrientationPortraitUpsideDown = 2,
109
+ /// Indicates that video should be oriented horizontally, port on the right.
11
110
  AVCaptureVideoOrientationLandscapeRight = 3,
111
+ /// Indicates that video should be oriented horizontally, port on the left.
12
112
  AVCaptureVideoOrientationLandscapeLeft = 4,
13
113
  } API_AVAILABLE(ios(4.0)) API_DEPRECATED("Use AVCaptureDeviceRotationCoordinator instead", macos(10.7, 14.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos) API_UNAVAILABLE(watchos);
14
114
 
15
- typedef NS_ENUM(NSInteger, AVCaptureVideoStabilizationMode) {
16
- AVCaptureVideoStabilizationModeOff = 0,
17
- AVCaptureVideoStabilizationModeStandard = 1,
18
- AVCaptureVideoStabilizationModeCinematic = 2,
19
- AVCaptureVideoStabilizationModeCinematicExtended API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) = 3,
20
- AVCaptureVideoStabilizationModePreviewOptimized API_AVAILABLE(ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) = 4,
21
- AVCaptureVideoStabilizationModeCinematicExtendedEnhanced API_AVAILABLE(ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(macos, visionos) = 5,
22
- AVCaptureVideoStabilizationModeLowLatency API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) = 6,
23
- AVCaptureVideoStabilizationModeAuto = -1,
24
- } API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
115
+ #pragma mark - AVCaptureDevice
116
+
117
+ @class AVCaptureDeviceFormat;
118
+ @class AVCaptureDeviceInputSource;
119
+ @class AVCaptureSystemPressureState;
120
+ @class AVCaptureDeviceInternal;
121
+ @class AVZoomRange;
25
122
 
123
+ /*!
124
+ @class AVCaptureDevice
125
+ @abstract
126
+ An AVCaptureDevice represents a physical device that provides realtime input media data, such as video and audio.
127
+
128
+ @discussion
129
+ Each instance of AVCaptureDevice corresponds to a device, such as a camera or microphone. Instances of AVCaptureDevice cannot be created directly. An array of all currently available devices can also be obtained using the AVCaptureDeviceDiscoverySession. Devices can provide one or more streams of a given media type. Applications can search for devices matching desired criteria by using AVCaptureDeviceDiscoverySession, or may obtain a reference to the default device matching desired criteria by using +[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
130
+
131
+ Instances of AVCaptureDevice can be used to provide media data to an AVCaptureSession by creating an AVCaptureDeviceInput with the device and adding that to the capture session.
132
+ */
26
133
  API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
27
134
  @interface AVCaptureDevice : NSObject
135
+ {
136
+ @private
137
+ AVCaptureDeviceInternal *_internal;
138
+ }
28
139
 
29
140
  AV_INIT_UNAVAILABLE
30
141
 
142
+ /*!
143
+ @method devices
144
+ @abstract
145
+ Returns an array of devices currently available for use as media input sources.
146
+
147
+ @result
148
+ An NSArray of AVCaptureDevice instances for each available device.
149
+
150
+ @discussion
151
+ This method returns an array of AVCaptureDevice instances for input devices currently connected and available for capture. The returned array contains all devices that are available at the time the method is called. Applications should observe AVCaptureDeviceWasConnectedNotification and AVCaptureDeviceWasDisconnectedNotification to be notified when the list of available devices has changed.
152
+ */
31
153
  + (NSArray<AVCaptureDevice *> *)devices API_DEPRECATED("Use AVCaptureDeviceDiscoverySession instead.", ios(4.0, 10.0), macos(10.7, 10.15)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
154
+
155
+ /*!
156
+ @method devicesWithMediaType:
157
+ @abstract
158
+ Returns an array of devices currently available for use as sources of media with the given media type.
159
+
160
+ @param mediaType
161
+ The media type, such as AVMediaTypeVideo, AVMediaTypeAudio, or AVMediaTypeMuxed, supported by each returned device.
162
+ @result
163
+ An NSArray of AVCaptureDevice instances for each available device.
164
+
165
+ @discussion
166
+ This method returns an array of AVCaptureDevice instances for input devices currently connected and available for capture that provide media of the given type. Media type constants are defined in AVMediaFormat.h. The returned array contains all devices that are available at the time the method is called. Applications should observe AVCaptureDeviceWasConnectedNotification and AVCaptureDeviceWasDisconnectedNotification to be notified when the list of available devices has changed.
167
+ */
32
168
  + (NSArray<AVCaptureDevice *> *)devicesWithMediaType:(AVMediaType)mediaType API_DEPRECATED("Use AVCaptureDeviceDiscoverySession instead.", ios(4.0, 10.0), macos(10.7, 10.15)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
169
+
170
+ /*!
171
+ @method defaultDeviceWithMediaType:
172
+ @abstract
173
+ Returns an AVCaptureDevice instance for the default device of the given media type.
174
+
175
+ @param mediaType
176
+ The media type, such as AVMediaTypeVideo, AVMediaTypeAudio, or AVMediaTypeMuxed, supported by the returned device.
177
+ @result
178
+ The default device with the given media type, or nil if no device with that media type exists.
179
+
180
+ @discussion
181
+ This method returns the default device of the given media type currently available on the system. For example, for AVMediaTypeVideo, this method will return the built in camera that is primarily used for capture and recording. Media type constants are defined in AVMediaFormat.h.
182
+ */
33
183
  + (nullable AVCaptureDevice *)defaultDeviceWithMediaType:(AVMediaType)mediaType API_AVAILABLE(visionos(2.1));
184
+
185
+ /*!
186
+ @method deviceWithUniqueID:
187
+ @abstract
188
+ Returns an AVCaptureDevice instance with the given unique ID.
189
+
190
+ @param deviceUniqueID
191
+ The unique ID of the device instance to be returned.
192
+ @result
193
+ An AVCaptureDevice instance with the given unique ID, or nil if no device with that unique ID is available.
194
+
195
+ @discussion
196
+ Every available capture device has a unique ID that persists on one system across device connections and disconnections, application restarts, and reboots of the system itself. This method can be used to recall or track the status of a specific device whose unique ID has previously been saved.
197
+ */
34
198
  + (nullable AVCaptureDevice *)deviceWithUniqueID:(NSString *)deviceUniqueID API_AVAILABLE(visionos(2.1));
199
+
200
+ /*!
201
+ @property uniqueID
202
+ @abstract
203
+ An ID unique to the model of device corresponding to the receiver.
204
+
205
+ @discussion
206
+ Every available capture device has a unique ID that persists on one system across device connections and disconnections, application restarts, and reboots of the system itself. Applications can store the value returned by this property to recall or track the status of a specific device in the future.
207
+ */
35
208
  @property(nonatomic, readonly) NSString *uniqueID;
209
+
210
+ /*!
211
+ @property modelID
212
+ @abstract
213
+ The model ID of the receiver.
214
+
215
+ @discussion
216
+ The value of this property is an identifier unique to all devices of the same model. The value is persistent across device connections and disconnections, and across different systems. For example, the model ID of the camera built in to two identical iPhone models will be the same even though they are different physical devices.
217
+ */
36
218
  @property(nonatomic, readonly) NSString *modelID API_AVAILABLE(visionos(2.1));
219
+
220
+ /*!
221
+ @property localizedName
222
+ @abstract
223
+ A localized human-readable name for the receiver.
224
+
225
+ @discussion
226
+ This property can be used for displaying the name of a capture device in a user interface.
227
+ */
37
228
  @property(nonatomic, readonly) NSString *localizedName;
38
229
 
230
+ /*!
231
+ @property manufacturer
232
+ @abstract
233
+ The human-readable manufacturer name for the receiver.
234
+
235
+ @discussion
236
+ This property can be used to identify capture devices from a particular manufacturer. All Apple devices return "Apple Inc.". Devices from third party manufacturers may return an empty string.
237
+ */
238
+ @property(nonatomic, readonly) NSString *manufacturer API_AVAILABLE(macos(10.9), ios(14.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
239
+
240
+ /*!
241
+ @property transportType
242
+ @abstract
243
+ The transport type of the receiver (e.g. USB, PCI, etc).
244
+
245
+ @discussion
246
+ This property can be used to discover the transport type of a capture device. Transport types are defined in <IOKit/audio/IOAudioTypes.h> as kIOAudioDeviceTransportType*.
247
+ */
248
+ @property(nonatomic, readonly) int32_t transportType API_UNAVAILABLE(macCatalyst) API_UNAVAILABLE(ios, watchos, tvos, visionos);
249
+
250
+ /*!
251
+ @method hasMediaType:
252
+ @abstract
253
+ Returns whether the receiver provides media with the given media type.
254
+
255
+ @param mediaType
256
+ A media type, such as AVMediaTypeVideo, AVMediaTypeAudio, or AVMediaTypeMuxed.
257
+ @result
258
+ YES if the device outputs the given media type, NO otherwise.
259
+
260
+ @discussion
261
+ Media type constants are defined in AVMediaFormat.h.
262
+ */
263
+ - (BOOL)hasMediaType:(AVMediaType)mediaType;
264
+
265
+ /*!
266
+ @method lockForConfiguration:
267
+ @abstract
268
+ Requests exclusive access to configure device hardware properties.
269
+
270
+ @param outError
271
+ On return, if the device could not be locked, points to an NSError describing why the failure occurred.
272
+ @result
273
+ A BOOL indicating whether the device was successfully locked for configuration.
274
+
275
+ @discussion
276
+ In order to set hardware properties on an AVCaptureDevice, such as focusMode and exposureMode, clients must first acquire a lock on the device. Clients should only hold the device lock if they require settable device properties to remain unchanged. Holding the device lock unnecessarily may degrade capture quality in other applications sharing the device.
277
+ */
278
+ - (BOOL)lockForConfiguration:(NSError * _Nullable * _Nullable)outError;
279
+
280
+ /*!
281
+ @method unlockForConfiguration
282
+ @abstract
283
+ Release exclusive control over device hardware properties.
284
+
285
+ @discussion
286
+ This method should be called to match an invocation of lockForConfiguration: when an application no longer needs to keep device hardware properties from changing automatically.
287
+ */
288
+ - (void)unlockForConfiguration;
289
+
290
+ /*!
291
+ @method supportsAVCaptureSessionPreset:
292
+ @abstract
293
+ Returns whether the receiver can be used in an AVCaptureSession configured with the given preset.
294
+
295
+ @param preset
296
+ An AVCaptureSession preset.
297
+ @result
298
+ YES if the receiver can be used with the given preset, NO otherwise.
299
+
300
+ @discussion
301
+ An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver can be used in a capture session with the given preset. Presets are defined in AVCaptureSession.h.
302
+ */
303
+ - (BOOL)supportsAVCaptureSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
304
+
305
+ /*!
306
+ @property connected
307
+ @abstract
308
+ Indicates whether the device is connected and available to the system.
309
+
310
+ @discussion
311
+ The value of this property is a BOOL indicating whether the device represented by the receiver is connected and available for use as a capture device. Clients can key value observe the value of this property to be notified when a device is no longer available. When the value of this property becomes NO for a given instance, it will not become YES again. If the same physical device again becomes available to the system, it will be represented using a new instance of AVCaptureDevice.
312
+ */
313
+ @property(nonatomic, readonly, getter=isConnected) BOOL connected API_AVAILABLE(visionos(2.1));
314
+
315
+ /*!
316
+ @property inUseByAnotherApplication
317
+ @abstract
318
+ Indicates whether the device is in use by another application.
319
+
320
+ @discussion
321
+ The value of this property is a BOOL indicating whether the device represented by the receiver is in use by another application. Clients can key value observe the value of this property to be notified when another app starts or stops using this device.
322
+ */
323
+ @property(nonatomic, readonly, getter=isInUseByAnotherApplication) BOOL inUseByAnotherApplication API_AVAILABLE(macCatalyst(14.0)) API_UNAVAILABLE(ios, watchos, tvos, visionos);
324
+
325
+ /*!
326
+ @property suspended
327
+ @abstract
328
+ Indicates whether the device is suspended.
329
+
330
+ @discussion
331
+ The value of this property is a BOOL indicating whether the device represented by the receiver is currently suspended. Some devices disallow data capture due to a feature on the device. For example, isSuspended returns YES for the external iSight when its privacy iris is closed, or for the internal iSight on a notebook when the notebook's display is closed. Clients can key value observe the value of this property to be notified when the device becomes suspended or unsuspended.
332
+ */
333
+ @property(nonatomic, readonly, getter=isSuspended) BOOL suspended API_AVAILABLE(ios(14.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
334
+
335
+ /*!
336
+ @property linkedDevices
337
+ @abstract
338
+ An array of AVCaptureDevice objects physically linked to the receiver.
339
+
340
+ @discussion
341
+ The value of this property is an array of AVCaptureDevice objects that are a part of the same physical device as the receiver. For example, for the external iSight camera, linkedDevices returns an array containing an AVCaptureDevice for the external iSight microphone.
342
+ */
343
+ @property(nonatomic, readonly) NSArray<AVCaptureDevice *> *linkedDevices API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
344
+
345
+ /*!
346
+ @property formats
347
+ @abstract
348
+ An array of AVCaptureDeviceFormat objects supported by the receiver.
349
+
350
+ @discussion
351
+ This property can be used to enumerate the formats natively supported by the receiver. The capture device's activeFormat property may be set to one of the formats in this array. Clients can observe automatic changes to the receiver's formats by key value observing this property.
352
+ */
353
+ @property(nonatomic, readonly) NSArray<AVCaptureDeviceFormat *> *formats API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0));
354
+
355
+ /*!
356
+ @property activeFormat
357
+ @abstract
358
+ The currently active format of the receiver.
359
+
360
+ @discussion
361
+ This property can be used to get or set the currently active device format.
362
+
363
+ -setActiveFormat: throws an NSInvalidArgumentException if set to a format not present in the formats array.
364
+
365
+ -setActiveFormat: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
366
+
367
+ Clients can observe automatic changes to the receiver's activeFormat by key value observing this property.
368
+
369
+ On iOS, use of AVCaptureDevice's setActiveFormat: and AVCaptureSession's setSessionPreset: are mutually exclusive. If you set a capture device's active format, the session to which it is attached changes its preset to AVCaptureSessionPresetInputPriority. Likewise if you set the AVCaptureSession's sessionPreset property, the session assumes control of its input devices, and configures their activeFormat appropriately. Note that audio devices do not expose any user-configurable formats on iOS. To configure audio input on iOS, you should use the AVAudioSession APIs instead (see AVAudioSession.h).
370
+
371
+ The activeFormat, activeVideoMinFrameDuration, and activeVideoMaxFrameDuration properties may be set simultaneously by using AVCaptureSession's begin/commitConfiguration methods:
372
+
373
+ [session beginConfiguration]; // the session to which the receiver's AVCaptureDeviceInput is added.
374
+ if ( [device lockForConfiguration:&error] ) {
375
+ [device setActiveFormat:newFormat];
376
+ [device setActiveVideoMinFrameDuration:newMinDuration];
377
+ [device setActiveVideoMaxFrameDuration:newMaxDuration];
378
+ [device unlockForConfiguration];
379
+ }
380
+ [session commitConfiguration]; // The new format and frame rates are applied together in commitConfiguration
381
+
382
+ Note that when configuring a session to use an active format intended for high resolution still photography and applying one or more of the following operations to an AVCaptureVideoDataOutput, the system may not meet the target framerate: zoom, orientation changes, format conversion.
383
+ */
384
+ @property(nonatomic, retain) AVCaptureDeviceFormat *activeFormat API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0));
385
+
386
+ /*!
387
+ @property activeVideoMinFrameDuration
388
+ @abstract
389
+ A property indicating the receiver's current active minimum frame duration (the reciprocal of its max frame rate).
390
+
391
+ @discussion
392
+ An AVCaptureDevice's activeVideoMinFrameDuration property is the reciprocal of its active maximum frame rate. To limit the max frame rate of the capture device, clients may set this property to a value supported by the receiver's activeFormat (see AVCaptureDeviceFormat's videoSupportedFrameRateRanges property). Clients may set this property's value to kCMTimeInvalid to return activeVideoMinFrameDuration to its default value for the given activeFormat.
393
+
394
+ -setActiveVideoMinFrameDuration: throws an NSInvalidArgumentException if set to an unsupported value.
395
+
396
+ -setActiveVideoMinFrameDuration: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
397
+
398
+ Clients can observe automatic changes to the receiver's activeVideoMinFrameDuration by key value observing this property.
399
+
400
+ On iOS, the receiver's activeVideoMinFrameDuration resets to its default value under the following conditions:
401
+ - The receiver's activeFormat changes
402
+ - The receiver's AVCaptureDeviceInput's session's sessionPreset changes
403
+ - The receiver's AVCaptureDeviceInput is added to a session
404
+
405
+ When exposureMode is AVCaptureExposureModeCustom, setting the activeVideoMinFrameDuration affects max frame rate, but not exposureDuration. You may use setExposureModeCustomWithDuration:ISO:completionHandler: to set a shorter exposureDuration than your activeVideoMinFrameDuration, if desired.
406
+
407
+ When autoVideoFrameRateEnabled is true, setting activeVideoMinFrameDuration throws an NSInvalidArgumentException.
408
+ */
409
+ @property(nonatomic) CMTime activeVideoMinFrameDuration API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0));
410
+
411
+ /*!
412
+ @property activeVideoMaxFrameDuration
413
+ @abstract
414
+ A property indicating the receiver's current active maximum frame duration (the reciprocal of its min frame rate).
415
+
416
+ @discussion
417
+ An AVCaptureDevice's activeVideoMaxFrameDuration property is the reciprocal of its active minimum frame rate. To limit the min frame rate of the capture device, clients may set this property to a value supported by the receiver's activeFormat (see AVCaptureDeviceFormat's videoSupportedFrameRateRanges property). Clients may set this property's value to kCMTimeInvalid to return activeVideoMaxFrameDuration to its default value for the given activeFormat.
418
+
419
+ -setActiveVideoMaxFrameDuration: throws an NSInvalidArgumentException if set to an unsupported value.
420
+
421
+ -setActiveVideoMaxFrameDuration: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
422
+
423
+ Clients can observe automatic changes to the receiver's activeVideoMaxFrameDuration by key value observing this property.
424
+
425
+ On iOS, the receiver's activeVideoMaxFrameDuration resets to its default value under the following conditions:
426
+ - The receiver's activeFormat changes
427
+ - The receiver's AVCaptureDeviceInput's session's sessionPreset changes
428
+ - The receiver's AVCaptureDeviceInput is added to a session
429
+
430
+ When exposureMode is AVCaptureExposureModeCustom, frame rate and exposure duration are interrelated. If you call setExposureModeCustomWithDuration:ISO:completionHandler: with an exposureDuration longer than the current activeVideoMaxFrameDuration, the activeVideoMaxFrameDuration will be lengthened to accommodate the longer exposure time. Setting a shorter exposure duration does not automatically change the activeVideoMinFrameDuration or activeVideoMaxFrameDuration. To explicitly increase the frame rate in custom exposure mode, you must set the activeVideoMaxFrameDuration to a shorter value. If your new max frame duration is shorter than the current exposureDuration, the exposureDuration will shorten as well to accommodate the new frame rate.
431
+
432
+ When autoVideoFrameRateEnabled is true, setting activeVideoMaxFrameDuration throws an NSInvalidArgumentException.
433
+ */
434
+ @property(nonatomic) CMTime activeVideoMaxFrameDuration API_AVAILABLE(macos(10.9), ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0));
435
+
436
+ /// Whether the device's video frame rate (expressed as a duration) is currently locked.
437
+ ///
438
+ /// Returns `true` when an ``AVCaptureDeviceInput`` associated with the device has its ``AVCaptureDeviceInput/activeLockedVideoFrameDuration`` property set to something other than `kCMTimeInvalid`. See ``AVCaptureDeviceInput/activeLockedVideoFrameDuration`` for more information on video frame duration locking.
439
+ @property(nonatomic, readonly, getter=isVideoFrameDurationLocked) BOOL videoFrameDurationLocked API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
440
+
441
+ /// The maximum frame rate (expressed as a minimum duration) that can be set on an input associated with this device.
442
+ ///
443
+ /// `kCMTimeInvalid` is returned when the device or its current configuration does not support locked frame rate. Use ``AVCaptureDeviceInput/activeLockedVideoFrameDuration`` to set the locked frame rate on the input.
444
+ @property(nonatomic, readonly) CMTime minSupportedLockedVideoFrameDuration API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
445
+
446
+ /// Whether the device is following an external sync device.
447
+ ///
448
+ /// See ``AVCaptureDeviceInput/followExternalSyncDevice:videoFrameDuration:delegate:`` for more information on external sync.
449
+ @property(nonatomic, readonly, getter=isFollowingExternalSyncDevice) BOOL followingExternalSyncDevice API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
450
+
451
+ /// The minimum frame duration that can be passed as the `videoFrameDuration` when directing your device input to follow an external sync device.
452
+ ///
453
+ /// Use this property as the minimum allowable frame duration to pass to ``AVCaptureDeviceInput/follow:externalSyncDevice:videoFrameDuration:delegate:`` when you want to follow an external sync device. This property returns `kCMTimeInvalid` when the device's' current configuration does not support external sync device following.
454
+ @property(nonatomic, readonly) CMTime minSupportedExternalSyncFrameDuration API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
455
+
456
+ /// Whether adjusting the signal compensation delay property of an external sync device is supported while the session is running.
457
+ ///
458
+ /// This property returns `true` if the ``signalCompensationDelay`` of an ``AVExternalSyncDevice`` being followed by this device's ``AVCaptureDeviceInput`` can be adjusted while the ``AVCaptureSession`` is running.
459
+ @property(nonatomic, readonly, getter=isAdjustingSignalCompensationDelayWhileRunningSupported) BOOL adjustingSignalCompensationDelayWhileRunningSupported API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
460
+
461
+ /// Indicates whether the receiver should enable auto video frame rate.
462
+ ///
463
+ /// When you enable this property, the device automatically adjusts the active frame rate, depending on light level. Under low light conditions, it decreases the frame rate to properly expose the scene. For formats with a maximum frame rate of 30 fps, the device switches the frame rate between 30 - 24. For formats with a maximum frame rate of 60 fps, the device switches the frame rate between 60 - 30 - 24.
464
+ ///
465
+ /// Setting this property throws an `NSInvalidArgumentException` if the active format's ``AVCaptureDeviceFormat/autoVideoFrameRateSupported`` returns `false`. When you change the device's active format, this property resets to its default value of `false`.
466
+ ///
467
+ /// If you set this property to `true`, frame rate is under device control, and you may not set ``activeVideoMinFrameDuration`` or ``activeVideoMaxFrameDuration``. Doing so throws an `NSInvalidArgumentException`.
468
+ ///
469
+ /// - Note: Setting this property to `true` throws an `NSInvalidArgumentException` if ``videoFrameDurationLocked`` or ``followingExternalSyncDevice`` are `true`.
470
+ @property(nonatomic, getter=isAutoVideoFrameRateEnabled) BOOL autoVideoFrameRateEnabled API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
471
+
472
+ /*!
473
+ @property inputSources
474
+ @abstract
475
+ An array of AVCaptureDeviceInputSource objects supported by the receiver.
476
+
477
+ @discussion
478
+ Some devices can capture data from one of multiple data sources (different input jacks on the same audio device, for example). For devices with multiple possible data sources, inputSources can be used to enumerate the possible choices. Clients can observe automatic changes to the receiver's inputSources by key value observing this property.
479
+ */
480
+ @property(nonatomic, readonly) NSArray<AVCaptureDeviceInputSource *> *inputSources API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
481
+
482
+ /*!
483
+ @property activeInputSource
484
+ @abstract
485
+ The currently active input source of the receiver.
486
+
487
+ @discussion
488
+ This property can be used to get or set the currently active device input source. -setActiveInputSource: throws an NSInvalidArgumentException if set to a value not present in the inputSources array. -setActiveInputSource: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's activeInputSource by key value observing this property.
489
+ */
490
+ @property(nonatomic, retain, nullable) AVCaptureDeviceInputSource *activeInputSource API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
491
+
39
492
  @end
40
493
 
494
+
495
+ /*!
496
+ @enum AVCaptureDevicePosition
497
+ @abstract
498
+ Constants indicating the physical position of an AVCaptureDevice's hardware on the system.
499
+
500
+ @constant AVCaptureDevicePositionUnspecified
501
+ Indicates that the device's position relative to the system hardware is unspecified.
502
+ @constant AVCaptureDevicePositionBack
503
+ Indicates that the device is physically located on the back of the system hardware.
504
+ @constant AVCaptureDevicePositionFront
505
+ Indicates that the device is physically located on the front of the system hardware.
506
+ */
41
507
  typedef NS_ENUM(NSInteger, AVCaptureDevicePosition) {
42
508
  AVCaptureDevicePositionUnspecified = 0,
43
509
  AVCaptureDevicePositionBack = 1,
44
510
  AVCaptureDevicePositionFront = 2,
45
511
  } API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
46
512
 
513
+
47
514
  API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
48
515
  @interface AVCaptureDevice (AVCaptureDevicePosition)
49
516
 
517
+ /*!
518
+ @property position
519
+ @abstract
520
+ Indicates the physical position of an AVCaptureDevice's hardware on the system.
521
+
522
+ @discussion
523
+ The value of this property is an AVCaptureDevicePosition indicating where the receiver's device is physically located on the system hardware.
524
+ */
50
525
  @property(nonatomic, readonly) AVCaptureDevicePosition position;
51
526
 
52
527
  @end
53
528
 
529
+
530
+ /*!
531
+ @group AVCaptureDeviceType string constants
532
+
533
+ @discussion
534
+ The AVCaptureDeviceType string constants are intended to be used in combination with the AVCaptureDeviceDiscoverySession class to obtain a list of devices matching certain search criteria.
535
+ */
54
536
  typedef NSString *AVCaptureDeviceType NS_TYPED_ENUM API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
55
537
 
538
+ /*!
539
+ @constant AVCaptureDeviceTypeExternal
540
+ An external device type. On iPad, external devices are those that conform to the UVC (USB Video Class) specification.
541
+
542
+ @discussion
543
+ Starting in Mac Catalyst 17.0, apps may opt in for using AVCaptureDeviceTypeExternal by adding the following key to their Info.plist:
544
+ <key>NSCameraUseExternalDeviceType</key>
545
+ <true/>
546
+ Otherwise, external cameras on Mac Catalyst report that their device type is AVCaptureDeviceTypeBuiltInWideAngleCamera.
547
+
548
+ Prior to visionOS 3.0, your app must have the `com.apple.developer.avfoundation.uvc-device-access` entitlement in order to discover and use devices of type `AVCaptureDeviceTypeExternal` on visionOS.
549
+ */
56
550
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeExternal API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
57
- AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeMicrophone API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
551
+
552
+ /*!
553
+ @constant AVCaptureDeviceTypeMicrophone
554
+ A microphone. On iOS and tvOS, only one AVCaptureDevice of type AVCaptureDeviceTypeMicrophone is exposed to the system. The audio routing subsystem decides which physical microphone to use, be it a built in microphone, a wired headset, an external microphone, etc. The microphone device's `localizedName` will change as the audio subsystem switches to a different physical device.
555
+ */
556
+ AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeMicrophone API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos) ;
557
+
558
+ /*!
559
+ @constant AVCaptureDeviceTypeBuiltInWideAngleCamera
560
+ A built-in wide angle camera device. These devices are suitable for general purpose use.
561
+ */
58
562
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
563
+
564
+ /*!
565
+ @constant AVCaptureDeviceTypeBuiltInTelephotoCamera
566
+ A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
567
+ */
59
568
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
569
+
570
+ /*!
571
+ @constant AVCaptureDeviceTypeBuiltInUltraWideCamera
572
+ A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
573
+ */
60
574
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
575
+
576
+ /*!
577
+ @constant AVCaptureDeviceTypeBuiltInOuterUltraWideCamera
578
+ A built-in outer ultra wide camera device. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
579
+ */
61
580
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInOuterUltraWideCamera API_AVAILABLE(ios(27.1)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
581
+
582
+ /*!
583
+ @constant AVCaptureDeviceTypeBuiltInInnerUltraWideCamera
584
+ A built-in inner ultra wide camera device. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
585
+ */
62
586
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInInnerUltraWideCamera API_AVAILABLE(ios(27.1)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
587
+
588
+ /*!
589
+ @constant AVCaptureDeviceTypeBuiltInDualCamera
590
+ A device that consists of two fixed focal length cameras, one wide and one telephoto. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
591
+
592
+ A device of this device type supports the following features:
593
+ - Auto switching from one camera to the other when zoom factor, light level, and focus position allow this.
594
+ - Higher quality zoom for still captures by fusing images from both cameras.
595
+ - Depth data delivery by measuring the disparity of matched features between the wide and telephoto cameras.
596
+ - Delivery of photos from constituent devices (wide and telephoto cameras) via a single photo capture request.
597
+
598
+ A device of this device type does not support the following features:
599
+ - AVCaptureExposureModeCustom and manual exposure bracketing.
600
+ - Locking focus with a lens position other than AVCaptureLensPositionCurrent.
601
+ - Locking auto white balance with device white balance gains other than AVCaptureWhiteBalanceGainsCurrent.
602
+
603
+ Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
604
+ */
63
605
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
606
+
607
+ /*!
608
+ @constant AVCaptureDeviceTypeBuiltInDualWideCamera
609
+ A device that consists of two fixed focal length cameras, one ultra wide and one wide angle. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
610
+
611
+ A device of this device type supports the following features:
612
+ - Auto switching from one camera to the other when zoom factor, light level, and focus position allow this.
613
+ - Depth data delivery by measuring the disparity of matched features between the ultra wide and wide cameras.
614
+ - Delivery of photos from constituent devices (ultra wide and wide) via a single photo capture request.
615
+
616
+ A device of this device type does not support the following features:
617
+ - AVCaptureExposureModeCustom and manual exposure bracketing.
618
+ - Locking focus with a lens position other than AVCaptureLensPositionCurrent.
619
+ - Locking auto white balance with device white balance gains other than AVCaptureWhiteBalanceGainsCurrent.
620
+
621
+ Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
622
+ */
64
623
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
624
+
625
+ /*!
626
+ @constant AVCaptureDeviceTypeBuiltInTripleCamera
627
+ A device that consists of three fixed focal length cameras, one ultra wide, one wide angle, and one telephoto. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
628
+
629
+ A device of this device type supports the following features:
630
+ - Auto switching from one camera to the other when zoom factor, light level, and focus position allow this.
631
+ - Delivery of photos from constituent devices (ultra wide, wide and telephoto cameras) via a single photo capture request.
632
+
633
+ A device of this device type does not support the following features:
634
+ - AVCaptureExposureModeCustom and manual exposure bracketing.
635
+ - Locking focus with a lens position other than AVCaptureLensPositionCurrent.
636
+ - Locking auto white balance with device white balance gains other than AVCaptureWhiteBalanceGainsCurrent.
637
+
638
+ Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
639
+ */
65
640
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
641
+
642
+ /*!
643
+ @constant AVCaptureDeviceTypeBuiltInTrueDepthCamera
644
+ A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
645
+ */
66
646
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
647
+
648
+ /*!
649
+ @constant AVCaptureDeviceTypeBuiltInLiDARDepthCamera
650
+ A device that consists of two cameras, one YUV and one LiDAR. The LiDAR camera provides high quality, high accuracy depth information by measuring the round trip of an artificial light signal emitted by a laser. The depth is synchronized and perspective corrected to frames produced by the paired YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
651
+ */
67
652
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInLiDARDepthCamera API_AVAILABLE(ios(15.4), macCatalyst(15.4), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
653
+
654
+ /*!
655
+ @constant AVCaptureDeviceTypeContinuityCamera
656
+ A continuity camera device. These devices are suitable for general purpose use. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
657
+
658
+ @discussion
659
+ Starting in macOS 14.0 and Mac Catalyst 17.0, apps may opt in for using AVCaptureDeviceTypeContinuityCamera by adding the following key to their Info.plist:
660
+ <key>NSCameraUseContinuityCameraDeviceType</key>
661
+ <true/>
662
+
663
+ Otherwise, continuity cameras on macOS and Mac Catalyst report that their device type is AVCaptureDeviceTypeBuiltInWideAngleCamera.
664
+ */
68
665
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeContinuityCamera API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
666
+
667
+ /*!
668
+ @constant AVCaptureDeviceTypeDeskViewCamera
669
+ A distortion corrected cut out from an ultra wide camera, made to approximate an overhead camera pointing at a desk. Supports multicam operation.
670
+ */
69
671
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeDeskViewCamera API_AVAILABLE(macos(13.0)) API_UNAVAILABLE(ios, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
672
+
673
+
674
+ /*!
675
+ @constant AVCaptureDeviceTypeExternalUnknown
676
+ A deprecated synonym for AVCaptureDeviceTypeExternal. Please use AVCaptureDeviceTypeExternal instead.
677
+ */
70
678
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeExternalUnknown API_DEPRECATED_WITH_REPLACEMENT("AVCaptureDeviceTypeExternal", macos(10.15, 14.0)) API_UNAVAILABLE(ios, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
679
+
680
+ /*!
681
+ @constant AVCaptureDeviceTypeBuiltInDuoCamera
682
+ A deprecated synonym for AVCaptureDeviceTypeBuiltInDualCamera. Please use AVCaptureDeviceTypeBuiltInDualCamera instead.
683
+ */
71
684
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDuoCamera API_DEPRECATED("Use AVCaptureDeviceTypeBuiltInDualCamera instead.", ios(10.0, 10.2)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos, watchos);
685
+
686
+ /*!
687
+ @constant AVCaptureDeviceTypeBuiltInMicrophone
688
+ A deprecated synonym for AVCaptureDeviceTypeMicrophone. Please use AVCaptureDeviceTypeMicrophone instead.
689
+ */
72
690
  AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInMicrophone API_DEPRECATED_WITH_REPLACEMENT("AVCaptureDeviceTypeMicrophone", macos(10.15, 14.0), ios(10.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos) API_UNAVAILABLE(watchos);
73
691
 
692
+
74
693
  API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
75
694
  @interface AVCaptureDevice (AVCaptureDeviceType)
76
695
 
696
+ /*!
697
+ @property deviceType
698
+ @abstract
699
+ The type of the capture device.
700
+
701
+ @discussion
702
+ A capture device's type never changes.
703
+ */
77
704
  @property(nonatomic, readonly) AVCaptureDeviceType deviceType API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
78
705
 
79
706
  @end
80
707
 
708
+
81
709
  API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos)
82
710
  @interface AVCaptureDevice (AVCaptureDefaultDevice)
83
711
 
712
+ /*!
713
+ @method defaultDeviceWithDeviceType:mediaType:position:
714
+ @abstract
715
+ Returns an AVCaptureDevice instance for the default device of the given device type, media type, and position.
716
+
717
+ @param deviceType
718
+ The device type supported by the returned device. It must be a valid AVCaptureDeviceType.
719
+ @param mediaType
720
+ The media type, such as AVMediaTypeVideo, AVMediaTypeAudio, or AVMediaTypeMuxed, supported by the returned device. Pass nil to consider devices with any media type.
721
+ @param position
722
+ The position supported by the returned device. Pass AVCaptureDevicePositionUnspecified to consider devices with any position.
723
+ @result
724
+ The default device with the given device type, media type and position or nil if no device with that media type exists and nil otherwise.
725
+
726
+ @discussion
727
+ This method returns the default device of the given combination of device type, media type, and position currently available on the system.
728
+ */
84
729
  + (nullable AVCaptureDevice *)defaultDeviceWithDeviceType:(AVCaptureDeviceType)deviceType mediaType:(nullable AVMediaType)mediaType position:(AVCaptureDevicePosition)position API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
85
730
 
86
731
  @end
87
732
 
88
- NS_ASSUME_NONNULL_END
733
+
734
+ API_AVAILABLE(macos(13.0), ios(17.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
735
+ @interface AVCaptureDevice (AVCaptureDevicePreferredCamera)
736
+
737
+ /*!
738
+ @property userPreferredCamera
739
+ @abstract
740
+ Settable property that specifies a user preferred camera.
741
+
742
+ @discussion
743
+ Setting this property allows an application to persist its user’s preferred camera across app launches and reboots. The property internally maintains a short history, so if your user’s most recent preferred camera is not currently connected, it still reports the next best choice. This property always returns a device that is present. If no camera is available nil is returned. Setting the property to nil has no effect.
744
+ */
745
+ @property(class, readwrite, nullable) AVCaptureDevice *userPreferredCamera API_AVAILABLE(macos(13.0), ios(17.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
746
+
747
+ /*!
748
+ @property systemPreferredCamera
749
+ @abstract
750
+ Specifies the best camera to use as determined by the system.
751
+
752
+ @discussion
753
+ Apple chooses the default value. This property incorporates userPreferredCamera as well as other factors, such as camera suspension and Apple cameras appearing that should be automatically chosen. The property may change spontaneously, such as when the preferred camera goes away. This property always returns a device that is present. If no camera is available nil is returned.
754
+
755
+ Applications that adopt this API should always key-value observe this property and update their AVCaptureSession’s input device to reflect changes to the systemPreferredCamera. The application can still offer users the ability to pick a camera by setting userPreferredCamera, which will cause the systemPreferredCamera API to put the user’s choice first until either another Apple-preferred device becomes available or the machine is rebooted (after which it reverts to its original behavior of returning the internally determined best camera to use).
756
+
757
+ If the application wishes to offer users a fully manual camera selection mode in addition to automatic camera selection, it is recommended to call setUserPreferredCamera: each time the user makes a camera selection, but ignore key-value observer updates to systemPreferredCamera while in manual selection mode.
758
+ */
759
+ @property(class, readonly, nullable) AVCaptureDevice *systemPreferredCamera API_AVAILABLE(macos(13.0), ios(17.0), macCatalyst(16.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
760
+
761
+ @end
762
+
763
+
764
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
765
+ @interface AVCaptureDevice (AVCaptureDeviceSystemPressure)
766
+
767
+ /*!
768
+ @property systemPressureState
769
+ @abstract
770
+ A key-value observable property indicating the capture device's current system pressure state.
771
+
772
+ @discussion
773
+ This property indicates whether the capture device is currently subject to an elevated system pressure condition. When system pressure reaches AVCaptureSystemPressureLevelShutdown, the capture device cannot continue to provide input, so the AVCaptureSession becomes interrupted until the pressured state abates. System pressure can be effectively mitigated by lowering the device's activeVideoMinFrameDuration in response to changes in the systemPressureState. Clients are encouraged to implement frame rate throttling to bring system pressure down if their capture use case can tolerate a reduced frame rate.
774
+ */
775
+ @property(nonatomic, readonly) AVCaptureSystemPressureState *systemPressureState API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
776
+
777
+ @end
778
+
779
+ /*!
780
+ @enum AVCapturePrimaryConstituentDeviceSwitchingBehavior
781
+ @abstract
782
+ These constants can be used to control when the virtual device is allowed to switch the active primary constituent device.
783
+
784
+ @constant AVCapturePrimaryConstituentDeviceSwitchingBehaviorUnsupported
785
+ Indicates that the device does not support constituent device switching. This is reported for cameras that do not have more than one constituent device.
786
+ @constant AVCapturePrimaryConstituentDeviceSwitchingBehaviorAuto
787
+ Automatically select the best camera for the current scene. In this mode there are no restrictions on when a camera switch can occur.
788
+ @constant AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted
789
+ Restrict fallback camera selection to certain conditions (see AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions). Camera switches necessary to satisfy the requested video zoom factor are still allowed without restriction.
790
+ @constant AVCapturePrimaryConstituentDeviceSwitchingBehaviorLocked
791
+ Lock camera switching to the active primary constituent device. Note that this restricts the minAvailableVideoZoomFactor to the switch-over zoom factor of the activePrimaryConstituentDevice (as reported in AVCaptureDevice.virtualDeviceSwitchOverVideoZoomFactors).
792
+
793
+ @discussion
794
+ Virtual devices with multiple constituent video devices (such as the Dual Camera, Dual Wide Camera, or Triple Camera), consist of cameras that each have different properties such as focal length, maximum light sensitivity, and minimum focus distance. One of the constituent video devices is selected as the primary constituent device. For an AVCaptureSession, the primary constituent device produces for all outputs. For an AVCaptureMultiCamSession, the primary constituent device produces for all outputs connected to the virtual device's native AVCaptureDeviceInputPort (where its sourceDeviceType is equal to the virtual device's deviceType).
795
+
796
+ When the requested zoom factor can be achieved by multiple constituent cameras (see -virtualDeviceSwitchOverVideoZoomFactors), the virtual device chooses the best camera for the scene. The primary condition for this is the focal length; the camera with the longest focal length requires the least amount of digital upscaling and therefore normally provides the highest image quality. Secondary conditions are focus and exposure; when the scene requires focus or exposure to go beyond the limits of the active primary constituent device, a camera with a shorter focal length may be able to deliver a better quality image. Such a device is called a fallback primary constituent device. For example, a telephoto camera with a minimum focus distance of 40cm is not able to deliver a sharp image when the subject in the scene is closer than 40cm. For such a scene, the virtual device will switch to the wide-angle camera which typically has a smaller minimum focus distance and is able to achieve accurate focus on the subject. In this case the wide-angle camera is the fallback primary constitute device.
797
+ */
798
+ typedef NS_ENUM(NSInteger, AVCapturePrimaryConstituentDeviceSwitchingBehavior) {
799
+ AVCapturePrimaryConstituentDeviceSwitchingBehaviorUnsupported = 0,
800
+ AVCapturePrimaryConstituentDeviceSwitchingBehaviorAuto = 1,
801
+ AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted = 2,
802
+ AVCapturePrimaryConstituentDeviceSwitchingBehaviorLocked = 3,
803
+ } NS_SWIFT_NAME(AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior) API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
804
+
805
+ /*!
806
+ @enum AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions
807
+ @abstract
808
+ These constants can be used and combined to control the conditions that allow fallback camera selection when the primaryConstituentDeviceSelectionBehavior is set to AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted. Note that camera switching necessary to satisfy the requested zoom factor is still allowed.
809
+
810
+ @constant AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone
811
+ Disallow fallback switching.
812
+ @constant AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionVideoZoomChanged
813
+ Restrict fallback camera switching to when the video zoom factor changes, either through AVCaptureDevice.videoZoomFactor or -[AVCaptureDevice rampToVideoZoomFactor:withRate:]. Note that any change in video zoom factor will allow a switch to a fallback camera, not just changes across switch-over zoom factors.
814
+ @constant AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionFocusModeChanged
815
+ Restrict fallback camera switches to when AVCaptureDevice.focusMode is set.
816
+ @constant AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionExposureModeChanged
817
+ Restrict fallback camera switches to when AVCaptureDevice.exposureMode is set.
818
+
819
+ @discussion
820
+ Whenever triggered by one or more of the enabled conditions, the fallback camera switching waits for exposure and focus to stabilize before deciding which camera to use as the primary constituent device.
821
+
822
+ Whenever AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionVideoZoomChanged is not included in the restricted switching behavior conditions, AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted still allows camera selection when a change in video zoom factor makes a camera eligible or ineligible to be selected as the activePrimaryConstituentDevice. When the video zoom factor decreases to below the switch-over zoom factor of the activePrimaryConstituentDevice, a different camera will be selected to satisfy the requested zoom factor. When the video zoom factor increases and crosses a camera's switch-over zoom factor, this camera becomes eligible to be selected as the activePrimaryConstituentDevice. If exposure and focus allow, this camera then becomes the new activePrimaryConstituentDevice. Similar to the AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionVideoZoomChanged this also waits for exposure and focus to stabilize. Otherwise the activePrimaryConstituentDevice remains unchanged.
823
+ */
824
+ typedef NS_OPTIONS(NSUInteger, AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) {
825
+ AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone = 0,
826
+ AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionVideoZoomChanged = 1 << 0,
827
+ AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionFocusModeChanged = 1 << 1,
828
+ AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionExposureModeChanged = 1 << 2,
829
+ } NS_SWIFT_NAME(AVCaptureDevice.PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
830
+
831
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
832
+ @interface AVCaptureDevice (AVCaptureDeviceVirtual)
833
+
834
+ /*!
835
+ @property virtualDevice
836
+ @abstract
837
+ A property indicating whether the receiver is a virtual device consisting of constituent physical devices.
838
+
839
+ @discussion
840
+ Two examples of virtual devices are:
841
+ The Dual Camera, which supports seamlessly switching between a wide and telephoto camera while zooming and generating depth data from the disparities between the different points of view of the physical cameras.
842
+ The TrueDepth Camera, which generates depth data from disparities between a YUV camera and an Infrared camera pointed in the same direction.
843
+ */
844
+ @property(nonatomic, readonly, getter=isVirtualDevice) BOOL virtualDevice API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
845
+
846
+ /*!
847
+ @property constituentDevices
848
+ @abstract
849
+ An array of constituent physical devices comprising a virtual device.
850
+
851
+ @discussion
852
+ When called on a device for which virtualDevice == NO, an empty array is returned.
853
+ */
854
+ @property(nonatomic, readonly) NSArray<AVCaptureDevice *> *constituentDevices API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
855
+
856
+ /*!
857
+ @property virtualDeviceSwitchOverVideoZoomFactors
858
+ @abstract
859
+ An array of video zoom factors at or above which a virtual device (such as the Dual Camera) may switch to its next constituent device.
860
+
861
+ @discussion
862
+ This array contains zoom factors at which one of the constituent device's field of view matches the next constituent device's full field of view. The number of switch over video zoom factors is always one less than the count of the constituentDevices property, and the factors progress in the same order as the devices listed in that property. On non-virtual devices this property returns an empty array.
863
+ */
864
+ @property(nonatomic, readonly) NSArray<NSNumber *> *virtualDeviceSwitchOverVideoZoomFactors API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
865
+
866
+ /// Whether locking to a particular primary constituent device is supported.
867
+ ///
868
+ /// This property returns `true` if ``setPrimaryConstituentDeviceSwitchingBehaviorLockedWithDevice:`` is supported.
869
+ @property(nonatomic, readonly, getter=isPrimaryConstituentDeviceSwitchingBehaviorLockedWithDeviceSupported) BOOL primaryConstituentDeviceSwitchingBehaviorLockedWithDeviceSupported API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
870
+
871
+ /// Sets the switching behavior of the primary constituent device to locked with the specified device.
872
+ ///
873
+ /// - Parameter device: The constituent device to lock.
874
+ ///
875
+ /// Before locking a virtual camera's primary constituent device, check that ``primaryConstituentDeviceSwitchingBehaviorLockedWithDeviceSupported`` is `true`. If locking is not supported, attempting to lock throws an `NSInvalidArgumentException`. Call ``lockForConfiguration:`` to acquire exclusive access to the device’s configuration properties. Once a constituent device is locked, it becomes the ``activePrimaryConstituentDevice``, and ``primaryConstituentDeviceSwitchingBehavior`` is updated to ``AVCapturePrimaryConstituentDeviceSwitchingBehaviorLocked``. The virtual camera’s properties remain unchanged. Their effective values can be obtained from the ``activePrimaryConstituentDevice``. To unlock the primary constituent device, set ``primaryConstituentDeviceSwitchingBehavior`` to ``AVCapturePrimaryConstituentDeviceSwitchingBehaviorAuto``. This may trigger an immediate update of ``activePrimaryConstituentDevice``. Locking a different primary constituent device without first unlocking the current one is allowed.
876
+ ///
877
+ /// If the current ``videoZoomFactor`` is within the constituent device's supported range, it will remain unchanged. If it falls outside the range, the zoom factor will automatically be clamped to the nearest supported value. If a zoom ramp is in progress, the ramp target and current position will similarly be updated to stay within the supported range. If both the target and position are thus clamped to the same value, this will cancel the ramp at that value, otherwise the ramp will continue within the remaining available range at its current velocity.
878
+ - (void)setPrimaryConstituentDeviceSwitchingBehaviorLockedWithDevice:(AVCaptureDevice *)device API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
879
+
880
+ /*!
881
+ @method setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions:
882
+ @abstract
883
+ The switching behavior and conditions, unless overwritten via -[AVCaptureMovieFileOutput setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions].
884
+ @param switchingBehavior
885
+ The desired switching behavior.
886
+ @param restrictedSwitchingBehaviorConditions
887
+ The desired conditions for restricting camera switching. This must be set to AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone whenever switchingBehavior is not equal to AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted.
888
+
889
+ @discussion
890
+ The switching behavior may be overridden on the AVCaptureMovieFileOutput while recording (see -[AVCaptureMovieFileOutput setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions]). This method throws an NSInvalidArgumentException if constituent device switching is not supported by the receiver or if restrictedSwitchingBehaviorConditions is not equal to AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone and switchingBehavior is not equal to AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted.
891
+ */
892
+ - (void)setPrimaryConstituentDeviceSwitchingBehavior:(AVCapturePrimaryConstituentDeviceSwitchingBehavior)switchingBehavior restrictedSwitchingBehaviorConditions:(AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions)restrictedSwitchingBehaviorConditions API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
893
+
894
+ /*!
895
+ @property primaryConstituentDeviceSwitchingBehavior
896
+ @abstract
897
+ The primaryConstituentDeviceSwitchingBehavior as set by -[AVCaptureDevice setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions:].
898
+
899
+ @discussion
900
+ By default, this property is set to AVCapturePrimaryConstituentDeviceSwitchingBehaviorAuto for AVCaptureDevices that support it. This property is key-value observable.
901
+ */
902
+ @property(nonatomic, readonly) AVCapturePrimaryConstituentDeviceSwitchingBehavior primaryConstituentDeviceSwitchingBehavior API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
903
+
904
+ /*!
905
+ @property primaryConstituentDeviceRestrictedSwitchingBehaviorConditions
906
+ @abstract
907
+ The primaryConstituentDeviceRestrictedSwitchingBehaviorConditions as set by -[AVCaptureDevice setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions:].
908
+
909
+ @discussion
910
+ By default, this propety is set to AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone. This property is key-value observable.
911
+ */
912
+ @property(nonatomic, readonly) AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions primaryConstituentDeviceRestrictedSwitchingBehaviorConditions API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
913
+
914
+ /*!
915
+ @property activePrimaryConstituentDeviceSwitchingBehavior
916
+ @abstract
917
+ The active constituent device switching behavior.
918
+
919
+ @discussion
920
+ For virtual devices with multiple constituent devices, this property returns the active switching behavior. This is equal to primaryConstituentDeviceSwitchingBehavior except while recording using an AVCaptureMovieFileOutput configured with a different switching behavior (see -[AVCaptureMovieFileOutput setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions]). Devices that do not support constituent device switching return AVCapturePrimaryConstituentDeviceSwitchingBehaviorUnsupported. This property is key-value observable.
921
+ */
922
+ @property(nonatomic, readonly) AVCapturePrimaryConstituentDeviceSwitchingBehavior activePrimaryConstituentDeviceSwitchingBehavior API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
923
+
924
+ /*!
925
+ @property activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions
926
+ @abstract
927
+ The active constituent device restricted switching behavior.
928
+
929
+ @discussion
930
+ For virtual devices with multiple constituent devices, this property returns the active restricted switching behavior conditions. This is equal to primaryConstituentDeviceRestrictedSwitchingBehaviorConditions except while recording using an AVCaptureMovieFileOutput configured with different restricted switching behavior conditions (see -[AVCaptureMovieFileOutput setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions]). Devices that do not support constituent device switching return AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone. This property is key-value observable.
931
+ */
932
+ @property(nonatomic, readonly) AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
933
+
934
+ /*!
935
+ @property activePrimaryConstituentDevice
936
+ @abstract
937
+ For virtual devices, this property indicates which constituent device is currently the primary constituent device. The primary constituent device may change when zoom, exposure, or focus changes.
938
+
939
+ @discussion
940
+ This property returns nil for non-virtual devices. On virtual devices this property returns nil until the device is used in a running AVCaptureSession. This property is key-value observable.
941
+ */
942
+ @property(nonatomic, readonly, nullable) AVCaptureDevice *activePrimaryConstituentDevice API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
943
+
944
+ /*!
945
+ @property supportedFallbackPrimaryConstituentDevices
946
+ @abstract
947
+ The constituent devices that may be selected as a fallback for a longer focal length primary constituent device.
948
+
949
+ @discussion
950
+ This property returns an empty array for non-virtual devices. This property never changes for a given virtual device.
951
+ */
952
+ @property(nonatomic, readonly) NSArray<AVCaptureDevice *> *supportedFallbackPrimaryConstituentDevices API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
953
+
954
+ /*!
955
+ @property fallbackPrimaryConstituentDevices
956
+ @abstract
957
+ The constituent devices that may be used as a fallback device when a constituent device with a longer focal length becomes limited by its light sensitivity or minimum focus distance.
958
+
959
+ @discussion
960
+ This may only be set to the supportedFallbackPrimaryConstituentDevices or a subset thereof. By default this is set to all supportedFallbackPrimaryConstituentDevices. This property will throw an NSInvalidArgumentException if the array includes any device not reported in supportedFallbackPrimaryConstituentDevices. This property is key-value observable.
961
+ */
962
+ @property(nonatomic) NSArray<AVCaptureDevice *> *fallbackPrimaryConstituentDevices API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
963
+
964
+ @end
965
+
966
+
967
+ /*!
968
+ @enum AVCaptureFlashMode
969
+ @abstract
970
+ Constants indicating the mode of the flash on the receiver's device, if it has one.
971
+
972
+ @constant AVCaptureFlashModeOff
973
+ Indicates that the flash should always be off.
974
+ @constant AVCaptureFlashModeOn
975
+ Indicates that the flash should always be on.
976
+ @constant AVCaptureFlashModeAuto
977
+ Indicates that the flash should be used automatically depending on ambient light conditions.
978
+ */
979
+ typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
980
+ AVCaptureFlashModeOff = 0,
981
+ AVCaptureFlashModeOn = 1,
982
+ AVCaptureFlashModeAuto = 2,
983
+ } API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
984
+
985
+
986
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
987
+ @interface AVCaptureDevice (AVCaptureDeviceFlash)
988
+
989
+ /*!
990
+ @property hasFlash
991
+ @abstract
992
+ Indicates whether the receiver has a flash.
993
+
994
+ @discussion
995
+ The value of this property is a BOOL indicating whether the receiver has a flash. The receiver's flashMode property can only be set when this property returns YES.
996
+ */
997
+ @property(nonatomic, readonly) BOOL hasFlash;
998
+
999
+ /*!
1000
+ @property flashAvailable
1001
+ @abstract
1002
+ Indicates whether the receiver's flash is currently available for use.
1003
+
1004
+ @discussion
1005
+ The value of this property is a BOOL indicating whether the receiver's flash is currently available. The flash may become unavailable if, for example, the device overheats and needs to cool off. This property is key-value observable.
1006
+ */
1007
+ @property(nonatomic, readonly, getter=isFlashAvailable) BOOL flashAvailable API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
1008
+
1009
+ /*!
1010
+ @property flashActive
1011
+ @abstract
1012
+ Indicates whether the receiver's flash is currently active.
1013
+
1014
+ @discussion
1015
+ The value of this property is a BOOL indicating whether the receiver's flash is currently active. When the flash is active, it will flash if a still image is captured. When a still image is captured with the flash active, exposure and white balance settings are overridden for the still. This is true even when using AVCaptureExposureModeCustom and/or AVCaptureWhiteBalanceModeLocked. This property is key-value observable.
1016
+ */
1017
+ @property(nonatomic, readonly, getter=isFlashActive) BOOL flashActive API_DEPRECATED("Use AVCapturePhotoOutput's -isFlashScene instead.", ios(5.0, 10.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
1018
+
1019
+ /*!
1020
+ @method isFlashModeSupported:
1021
+ @abstract
1022
+ Returns whether the receiver supports the given flash mode.
1023
+
1024
+ @param flashMode
1025
+ An AVCaptureFlashMode to be checked.
1026
+ @result
1027
+ YES if the receiver supports the given flash mode, NO otherwise.
1028
+
1029
+ @discussion
1030
+ The receiver's flashMode property can only be set to a certain mode if this method returns YES for that mode.
1031
+ */
1032
+ - (BOOL)isFlashModeSupported:(AVCaptureFlashMode)flashMode API_DEPRECATED("Use AVCapturePhotoOutput's -supportedFlashModes instead.", ios(4.0, 10.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
1033
+
1034
+ /*!
1035
+ @property flashMode
1036
+ @abstract
1037
+ Indicates current mode of the receiver's flash, if it has one.
1038
+
1039
+ @discussion
1040
+ The value of this property is an AVCaptureFlashMode that determines the mode of the receiver's flash, if it has one. -setFlashMode: throws an NSInvalidArgumentException if set to an unsupported value (see -isFlashModeSupported:). -setFlashMode: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's flashMode by key value observing this property.
1041
+
1042
+ When using AVCapturePhotoOutput, AVCaptureDevice's flashMode property is ignored. You specify flashMode on a per photo basis by setting the AVCapturePhotoSettings.flashMode property.
1043
+ */
1044
+ @property(nonatomic) AVCaptureFlashMode flashMode API_DEPRECATED("Use AVCapturePhotoSettings.flashMode instead.", ios(4.0, 10.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
1045
+
1046
+ @end
1047
+
1048
+
1049
+ /*!
1050
+ @enum AVCaptureTorchMode
1051
+ @abstract
1052
+ Constants indicating the mode of the torch on the receiver's device, if it has one.
1053
+
1054
+ @constant AVCaptureTorchModeOff
1055
+ Indicates that the torch should always be off.
1056
+ @constant AVCaptureTorchModeOn
1057
+ Indicates that the torch should always be on.
1058
+ @constant AVCaptureTorchModeAuto
1059
+ Indicates that the torch should be used automatically depending on ambient light conditions.
1060
+ */
1061
+ typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
1062
+ AVCaptureTorchModeOff = 0,
1063
+ AVCaptureTorchModeOn = 1,
1064
+ AVCaptureTorchModeAuto = 2,
1065
+ } API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1066
+
1067
+
1068
+ /*!
1069
+ @constant AVCaptureMaxAvailableTorchLevel
1070
+ A special value that may be passed to -setTorchModeWithLevel:error: to set the torch to the maximum level currently available. Under thermal duress, the maximum available torch level may be less than 1.0.
1071
+ */
1072
+ AVF_EXPORT const float AVCaptureMaxAvailableTorchLevel API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1073
+
1074
+
1075
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1076
+ @interface AVCaptureDevice (AVCaptureDeviceTorch)
1077
+
1078
+ /*!
1079
+ @property hasTorch
1080
+ @abstract
1081
+ Indicates whether the receiver has a torch.
1082
+
1083
+ @discussion
1084
+ The value of this property is a BOOL indicating whether the receiver has a torch. The receiver's torchMode property can only be set when this property returns YES.
1085
+ */
1086
+ @property(nonatomic, readonly) BOOL hasTorch;
1087
+
1088
+ /*!
1089
+ @property torchAvailable
1090
+ @abstract
1091
+ Indicates whether the receiver's torch is currently available for use.
1092
+
1093
+ @discussion
1094
+ The value of this property is a BOOL indicating whether the receiver's torch is currently available. The torch may become unavailable if, for example, the device overheats and needs to cool off. This property is key-value observable.
1095
+ */
1096
+ @property(nonatomic, readonly, getter=isTorchAvailable) BOOL torchAvailable API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
1097
+
1098
+ /*!
1099
+ @property torchActive
1100
+ @abstract
1101
+ Indicates whether the receiver's torch is currently active.
1102
+
1103
+ @discussion
1104
+ The value of this property is a BOOL indicating whether the receiver's torch is currently active. If the current torchMode is AVCaptureTorchModeAuto and isTorchActive is YES, the torch will illuminate once a recording starts (see AVCaptureOutput.h -startRecordingToOutputFileURL:recordingDelegate:). This property is key-value observable.
1105
+ */
1106
+ @property(nonatomic, readonly, getter=isTorchActive) BOOL torchActive API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
1107
+
1108
+ /*!
1109
+ @property torchLevel
1110
+ @abstract
1111
+ Indicates the receiver's current torch brightness level as a floating point value.
1112
+
1113
+ @discussion
1114
+ The value of this property is a float indicating the receiver's torch level from 0.0 (off) -> 1.0 (full). This property is key-value observable.
1115
+ */
1116
+ @property(nonatomic, readonly) float torchLevel API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
1117
+
1118
+ /*!
1119
+ @method isTorchModeSupported:
1120
+ @abstract
1121
+ Returns whether the receiver supports the given torch mode.
1122
+
1123
+ @param torchMode
1124
+ An AVCaptureTorchMode to be checked.
1125
+ @result
1126
+ YES if the receiver supports the given torch mode, NO otherwise.
1127
+
1128
+ @discussion
1129
+ The receiver's torchMode property can only be set to a certain mode if this method returns YES for that mode.
1130
+ */
1131
+ - (BOOL)isTorchModeSupported:(AVCaptureTorchMode)torchMode;
1132
+
1133
+ /*!
1134
+ @property torchMode
1135
+ @abstract
1136
+ Indicates current mode of the receiver's torch, if it has one.
1137
+
1138
+ @discussion
1139
+ The value of this property is an AVCaptureTorchMode that determines the mode of the receiver's torch, if it has one. -setTorchMode: throws an NSInvalidArgumentException if set to an unsupported value (see -isTorchModeSupported:). -setTorchMode: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's torchMode by key value observing this property.
1140
+ */
1141
+ @property(nonatomic) AVCaptureTorchMode torchMode;
1142
+
1143
+ /*!
1144
+ @method setTorchModeOnWithLevel:error:
1145
+ @abstract
1146
+ Sets the current mode of the receiver's torch to AVCaptureTorchModeOn at the specified level.
1147
+
1148
+ @discussion
1149
+ This method sets the torch mode to AVCaptureTorchModeOn at a specified level. torchLevel must be a value between 0 and 1, or the special value AVCaptureMaxAvailableTorchLevel. The specified value may not be available if the iOS device is too hot. This method throws an NSInvalidArgumentException if set to an unsupported level. If the specified level is valid, but unavailable, the method returns NO with AVErrorTorchLevelUnavailable. -setTorchModeOnWithLevel:error: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's torchMode by key value observing the torchMode property.
1150
+ */
1151
+ - (BOOL)setTorchModeOnWithLevel:(float)torchLevel error:(NSError * _Nullable * _Nullable)outError API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
1152
+
1153
+ @end
1154
+
1155
+
1156
+ /*!
1157
+ @enum AVCaptureFocusMode
1158
+ @abstract
1159
+ Constants indicating the mode of the focus on the receiver's device, if it has one.
1160
+
1161
+ @constant AVCaptureFocusModeLocked
1162
+ Indicates that the focus should be locked at the lens' current position.
1163
+ @constant AVCaptureFocusModeAutoFocus
1164
+ Indicates that the device should autofocus once and then change the focus mode to AVCaptureFocusModeLocked.
1165
+ @constant AVCaptureFocusModeContinuousAutoFocus
1166
+ Indicates that the device should automatically focus when needed.
1167
+ */
1168
+ typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
1169
+ AVCaptureFocusModeLocked = 0,
1170
+ AVCaptureFocusModeAutoFocus = 1,
1171
+ AVCaptureFocusModeContinuousAutoFocus = 2,
1172
+ } API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1173
+
1174
+
1175
+ /*!
1176
+ @enum AVCaptureAutoFocusRangeRestriction
1177
+ @abstract
1178
+ Constants indicating the restriction of the receiver's autofocus system to a particular range of focus scan, if it supports range restrictions.
1179
+
1180
+ @constant AVCaptureAutoFocusRangeRestrictionNone
1181
+ Indicates that the autofocus system should not restrict the focus range.
1182
+ @constant AVCaptureAutoFocusRangeRestrictionNear
1183
+ Indicates that the autofocus system should restrict the focus range for subject matter that is near to the camera.
1184
+ @constant AVCaptureAutoFocusRangeRestrictionFar
1185
+ Indicates that the autofocus system should restrict the focus range for subject matter that is far from the camera.
1186
+ */
1187
+ typedef NS_ENUM(NSInteger, AVCaptureAutoFocusRangeRestriction) {
1188
+ AVCaptureAutoFocusRangeRestrictionNone = 0,
1189
+ AVCaptureAutoFocusRangeRestrictionNear = 1,
1190
+ AVCaptureAutoFocusRangeRestrictionFar = 2,
1191
+ } API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1192
+
1193
+
1194
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1195
+ @interface AVCaptureDevice (AVCaptureDeviceFocus)
1196
+
1197
+ /*!
1198
+ @method isFocusModeSupported:
1199
+ @abstract
1200
+ Returns whether the receiver supports the given focus mode.
1201
+
1202
+ @param focusMode
1203
+ An AVCaptureFocusMode to be checked.
1204
+ @result
1205
+ YES if the receiver supports the given focus mode, NO otherwise.
1206
+
1207
+ @discussion
1208
+ The receiver's focusMode property can only be set to a certain mode if this method returns YES for that mode.
1209
+ */
1210
+ - (BOOL)isFocusModeSupported:(AVCaptureFocusMode)focusMode;
1211
+
1212
+ /*!
1213
+ @property lockingFocusWithCustomLensPositionSupported
1214
+ @abstract
1215
+ Indicates whether the receiver supports a lens position other than AVCaptureLensPositionCurrent.
1216
+
1217
+ @discussion
1218
+ If lockingFocusWithCustomLensPositionSupported returns NO, setFocusModeLockedWithLensPosition: may only be called with AVCaptureLensPositionCurrent. Passing any other lens position will result in an exception.
1219
+ */
1220
+ @property(nonatomic, readonly, getter=isLockingFocusWithCustomLensPositionSupported) BOOL lockingFocusWithCustomLensPositionSupported API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1221
+
1222
+ /*!
1223
+ @property focusMode
1224
+ @abstract
1225
+ Indicates current focus mode of the receiver, if it has one.
1226
+
1227
+ @discussion
1228
+ The value of this property is an AVCaptureFocusMode that determines the receiver's focus mode, if it has one. -setFocusMode: throws an NSInvalidArgumentException if set to an unsupported value (see -isFocusModeSupported:). -setFocusMode: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's focusMode by key value observing this property.
1229
+ */
1230
+ @property(nonatomic) AVCaptureFocusMode focusMode;
1231
+
1232
+ /*!
1233
+ @property focusPointOfInterestSupported
1234
+ @abstract
1235
+ Indicates whether the receiver supports focus points of interest.
1236
+
1237
+ @discussion
1238
+ The receiver's focusPointOfInterest property can only be set if this property returns YES.
1239
+ */
1240
+ @property(nonatomic, readonly, getter=isFocusPointOfInterestSupported) BOOL focusPointOfInterestSupported;
1241
+
1242
+ /*!
1243
+ @property focusPointOfInterest
1244
+ @abstract
1245
+ Indicates current focus point of interest of the receiver, if it has one.
1246
+
1247
+ @discussion
1248
+ The value of this property is a CGPoint that determines the receiver's focus point of interest, if it has one. A value of (0,0) indicates that the camera should focus on the top left corner of the image, while a value of (1,1) indicates that it should focus on the bottom right. The default value is (0.5,0.5). -setFocusPointOfInterest: throws an NSInvalidArgumentException if isFocusPointOfInterestSupported returns NO. -setFocusPointOfInterest: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's focusPointOfInterest by key value observing this property. Note that setting focusPointOfInterest alone does not initiate a focus operation. After setting focusPointOfInterest, call -setFocusMode: to apply the new point of interest.
1249
+ */
1250
+ @property(nonatomic) CGPoint focusPointOfInterest;
1251
+
1252
+ /// Whether the receiver supports focus rectangles of interest.
1253
+ ///
1254
+ /// You may only set the device's ``focusRectOfInterest`` property if this property returns `true`.
1255
+ @property(nonatomic, readonly, getter=isFocusRectOfInterestSupported) BOOL focusRectOfInterestSupported API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1256
+
1257
+ /// The minimum size you may use when specifying a rectangle of interest.
1258
+ ///
1259
+ /// The size returned is in normalized coordinates, and depends on the current ``AVCaptureDevice/activeFormat``. If ``focusRectOfInterestSupported`` returns `false`, this property returns { 0, 0 }.
1260
+ @property(nonatomic, readonly) CGSize minFocusRectOfInterestSize API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1261
+
1262
+ /// The device's current focus rectangle of interest, if it has one.
1263
+ ///
1264
+ /// The value of this property is a ``CGRect`` determining the device's focus rectangle of interest. Use this as an alternative to setting ``focusPointOfInterest``, as it allows you to specify both a location and size. For example, a value of `CGRectMake(0, 0, 1, 1)` tells the device to use the entire field of view when determining the focus, while `CGRectMake(0, 0, 0.25, 0.25)` indicates the top left sixteenth, and `CGRectMake(0.75, 0.75, 0.25, 0.25)` indicates the bottom right sixteenth. Setting ``focusRectOfInterest`` throws an `NSInvalidArgumentException` if ``focusRectOfInterestSupported`` returns `false`. Setting ``focusRectOfInterest`` throws an `NSInvalidArgumentException` if your provided rectangle's size is smaller than the ``minFocusRectOfInterestSize``. Setting ``focusRectOfInterest`` throws an `NSGenericException` if you call it without first obtaining exclusive access to the device using ``AVCaptureDevice/lockForConfiguration:``. Setting ``focusRectOfInterest`` updates the device's ``focusPointOfInterest`` to the center of your provided rectangle of interest. If you later set the device's ``focusPointOfInterest``, the ``focusRectOfInterest`` resets to the default sized rectangle of interest for the new focus point of interest. If you change your ``AVCaptureDevice/activeFormat``, the point of interest and rectangle of interest both revert to their default values. You can observe automatic changes to the device's ``focusRectOfInterest`` by key-value observing this property.
1265
+ ///
1266
+ /// - Note: Setting ``focusRectOfInterest`` alone does not initiate a focus operation. After setting ``focusRectOfInterest``, set ``focusMode`` to apply the new rectangle of interest.
1267
+ @property(nonatomic) CGRect focusRectOfInterest API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1268
+
1269
+ /// The default rectangle of interest used for a given focus point of interest.
1270
+ ///
1271
+ /// - Parameter pointOfInterest: The point of interest for which you want the default rectangle of interest.
1272
+ ///
1273
+ /// For example, pass `(0.5, 0.5)` to get the focus rectangle of interest used for the default focus point of interest at `(0.5, 0.5)`.
1274
+ ///
1275
+ /// - Note: The particular default rectangle returned depends on the current focus mode.
1276
+ ///
1277
+ /// This method returns `CGRectNull` if ``focusRectOfInterestSupported`` returns `false`.
1278
+ - (CGRect)defaultRectForFocusPointOfInterest:(CGPoint)pointOfInterest API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1279
+
1280
+ /*!
1281
+ @property adjustingFocus
1282
+ @abstract
1283
+ Indicates whether the receiver is currently performing a focus scan to adjust focus.
1284
+
1285
+ @discussion
1286
+ The value of this property is a BOOL indicating whether the receiver's camera focus is being automatically adjusted by means of a focus scan, because its focus mode is AVCaptureFocusModeAutoFocus or AVCaptureFocusModeContinuousAutoFocus. Clients can observe the value of this property to determine whether the camera's focus is stable.
1287
+ @seealso lensPosition
1288
+ @seealso AVCaptureAutoFocusSystem
1289
+ */
1290
+ @property(nonatomic, readonly, getter=isAdjustingFocus) BOOL adjustingFocus;
1291
+
1292
+ /*!
1293
+ @property autoFocusRangeRestrictionSupported
1294
+ @abstract
1295
+ Indicates whether the receiver supports autofocus range restrictions.
1296
+
1297
+ @discussion
1298
+ The receiver's autoFocusRangeRestriction property can only be set if this property returns YES.
1299
+ */
1300
+ @property(nonatomic, readonly, getter=isAutoFocusRangeRestrictionSupported) BOOL autoFocusRangeRestrictionSupported API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1301
+
1302
+ /*!
1303
+ @property autoFocusRangeRestriction
1304
+ @abstract
1305
+ Indicates current restriction of the receiver's autofocus system to a particular range of focus scan, if it supports range restrictions.
1306
+
1307
+ @discussion
1308
+ The value of this property is an AVCaptureAutoFocusRangeRestriction indicating how the autofocus system should limit its focus scan. The default value is AVCaptureAutoFocusRangeRestrictionNone. -setAutoFocusRangeRestriction: throws an NSInvalidArgumentException if isAutoFocusRangeRestrictionSupported returns NO. -setAutoFocusRangeRestriction: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. This property only has an effect when the focusMode property is set to AVCaptureFocusModeAutoFocus or AVCaptureFocusModeContinuousAutoFocus. Note that setting autoFocusRangeRestriction alone does not initiate a focus operation. After setting autoFocusRangeRestriction, call -setFocusMode: to apply the new restriction.
1309
+ */
1310
+ @property(nonatomic) AVCaptureAutoFocusRangeRestriction autoFocusRangeRestriction API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1311
+
1312
+ /*!
1313
+ @property smoothAutoFocusSupported
1314
+ @abstract
1315
+ Indicates whether the receiver supports smooth autofocus.
1316
+
1317
+ @discussion
1318
+ The receiver's smoothAutoFocusEnabled property can only be set if this property returns YES.
1319
+ */
1320
+ @property(nonatomic, readonly, getter=isSmoothAutoFocusSupported) BOOL smoothAutoFocusSupported API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1321
+
1322
+ /*!
1323
+ @property smoothAutoFocusEnabled
1324
+ @abstract
1325
+ Indicates whether the receiver should use smooth autofocus.
1326
+
1327
+ @discussion
1328
+ On a receiver where -isSmoothAutoFocusSupported returns YES and smoothAutoFocusEnabled is set to YES, a smooth autofocus will be engaged when the focus mode is set to AVCaptureFocusModeAutoFocus or AVCaptureFocusModeContinuousAutoFocus. Enabling smooth autofocus is appropriate for movie recording. Smooth autofocus is slower and less visually invasive. Disabling smooth autofocus is more appropriate for video processing where a fast autofocus is necessary. The default value is NO. Setting this property throws an NSInvalidArgumentException if -isSmoothAutoFocusSupported returns NO. The receiver must be locked for configuration using lockForConfiguration: before clients can set this method, otherwise an NSGenericException is thrown. Note that setting smoothAutoFocusEnabled alone does not initiate a focus operation. After setting smoothAutoFocusEnabled, call -setFocusMode: to apply the new smooth autofocus mode.
1329
+ */
1330
+ @property(nonatomic, getter=isSmoothAutoFocusEnabled) BOOL smoothAutoFocusEnabled API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1331
+
1332
+ /*!
1333
+ @property automaticallyAdjustsFaceDrivenAutoFocusEnabled
1334
+ @abstract
1335
+ Indicates whether the receiver should automatically adjust face-driven autofocus.
1336
+
1337
+ @discussion
1338
+ The value of this property is a BOOL that determines the receiver's automatic adjustment of face-driven autofocus. Default is YES on all platforms, if the receiver supports autofocus. This property must be set to NO before manually setting faceDrivenAutoFocusEnabled to YES/NO. -setAutomaticallyAdjustsFaceDrivenAutoFocusEnabled: throws an NSInvalidArgumentException if the receiver doesn't support autofocus. -setAutomaticallyAdjustsFaceDrivenAutoFocusEnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. After setting automaticallyAdjustsFaceDrivenAutoFocusEnabled, call -setFocusMode: to apply the change.
1339
+ */
1340
+ @property(nonatomic) BOOL automaticallyAdjustsFaceDrivenAutoFocusEnabled API_AVAILABLE(ios(15.4), macCatalyst(15.4), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1341
+
1342
+ /*!
1343
+ @property faceDrivenAutoFocusEnabled
1344
+ @abstract
1345
+ Indicates whether face-driven autofocus is enabled on the receiver.
1346
+
1347
+ @discussion
1348
+ Default is YES for all apps linked on or after iOS 15.4 when the receiver supports autofocus. -setFaceDrivenAutoFocusEnabled: throws an NSInvalidArgumentException if automaticallyAdjustsFaceDrivenAutoFocusEnabled returns YES. -setFaceDrivenAutoFocusEnabled: throws an NSInvalidArgumentException if the receiver doesn't support autofocus. -setFaceDrivenAutoFocusEnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. Note that setting faceDrivenAutoFocusEnabled alone does not initiate this focus change operation. After setting faceDrivenAutoFocusEnabled, call -setFocusMode: to apply the change.
1349
+ */
1350
+ @property(nonatomic, getter=isFaceDrivenAutoFocusEnabled) BOOL faceDrivenAutoFocusEnabled API_AVAILABLE(ios(15.4), macCatalyst(15.4), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1351
+
1352
+ /*!
1353
+ @property lensPosition
1354
+ @abstract
1355
+ Indicates the focus position of the lens.
1356
+
1357
+ @discussion
1358
+ The range of possible positions is 0.0 to 1.0, with 0.0 being the shortest distance at which the lens can focus and 1.0 the furthest. Note that 1.0 does not represent focus at infinity. The default value is 1.0. Note that a given lens position value does not correspond to an exact physical distance, nor does it represent a consistent focus distance from device to device. This property is key-value observable. It can be read at any time, regardless of focus mode, but can only be set via setFocusModeLockedWithLensPosition:completionHandler:.
1359
+ */
1360
+ @property(nonatomic, readonly) float lensPosition API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1361
+
1362
+ /*!
1363
+ @constant AVCaptureLensPositionCurrent
1364
+ A special value that may be passed as the lensPosition parameter of setFocusModeLockedWithLensPosition:completionHandler: to indicate that the caller does not wish to specify a value for the lensPosition property, and that it should instead be set to its current value. Note that the device may be adjusting lensPosition at the time of the call, in which case the value at which lensPosition is locked may differ from the value obtained by querying the lensPosition property.
1365
+ */
1366
+ AVF_EXPORT const float AVCaptureLensPositionCurrent API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1367
+
1368
+ /// Sets focusMode to AVCaptureFocusModeLocked and locks lensPosition at an explicit value.
1369
+ ///
1370
+ /// - Parameter lensPosition: The lens position, as described in the documentation for the ``lensPosition`` property. A value of ``AVCaptureLensPositionCurrent`` can be used to indicate that the caller does not wish to specify a value for ``lensPosition``.
1371
+ /// - Parameter handler: A block to be called when ``lensPosition`` has been set to the value specified and ``focusMode`` is set to ``AVCaptureFocusModeLocked``. If ``setFocusModeLockedWithLensPosition:completionHandler:`` is called multiple times, the completion handlers will be called in FIFO order. The block receives a timestamp which matches that of the first buffer to which all settings have been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the ``AVCaptureSession/synchronizationClock`` prior to comparison with the timestamps of buffers delivered via an ``AVCaptureVideoDataOutput``. The client may pass nil for the handler parameter if knowledge of the operation's completion is not required.
1372
+ ///
1373
+ /// This is the only way of setting ``lensPosition``. This method throws an NSRangeException if ``lensPosition`` is set to an unsupported level. This method throws an NSGenericException if called without first obtaining exclusive access to the receiver using ``lockForConfiguration:``. Before setting custom lens position value, check ``lockingFocusWithCustomLensPositionSupported`` first.
1374
+ /// For a virtual camera, locking to a custom lens position value is not supported if spatial video capture is enabled. When switching a virtual camera's ``activePrimaryConstituentDevice`` using ``setPrimaryConstituentDeviceSwitchingBehaviorLockedWithDevice:`` while focus mode is locked, the custom lens position is preserved across the constituent devices. However, the same lens position does not correspond to the same focus distance. If consistent focus behavior is required on a virtual camera (e.g. stereo depth data delivery is enabled), do not lock to a custom lens position.
1375
+ - (void)setFocusModeLockedWithLensPosition:(float)lensPosition completionHandler:(nullable void (^)(CMTime syncTime))handler API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1376
+
1377
+ /*!
1378
+ @property minimumFocusDistance
1379
+ @abstract
1380
+ A property indicating the minimum focus distance.
1381
+
1382
+ @discussion
1383
+ The minimum focus distance is given in millimeters, -1 if unknown. For virtual cameras (AVCaptureDeviceTypeBuiltInDualCamera, AVCaptureDeviceTypeBuiltInTripleCamera, etc.), the value reported is the smallest minimum focus distance of the auto-focus-capable cameras that it sources.
1384
+ */
1385
+ @property(nonatomic, readonly) NSInteger minimumFocusDistance API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1386
+
1387
+ /// Constants indicating the focus behavior when recording a Cinematic Video.
1388
+ typedef NS_ENUM(NSInteger, AVCaptureCinematicVideoFocusMode) {
1389
+ /// Indicates that no focus mode is specified, in which case weak focus is used as default.
1390
+ AVCaptureCinematicVideoFocusModeNone = 0,
1391
+ /// Indicates that the subject should remain in focus until it exits the scene.
1392
+ AVCaptureCinematicVideoFocusModeStrong = 1,
1393
+ /// Indicates that the Cinematic Video algorithm should automatically adjust focus according to the prominence of the subjects in the scene.
1394
+ AVCaptureCinematicVideoFocusModeWeak = 2,
1395
+ } NS_SWIFT_NAME(AVCaptureDevice.CinematicVideoFocusMode) API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1396
+
1397
+ /// Focus on and start tracking a detected object.
1398
+ ///
1399
+ /// - Parameter detectedObjectID: The ID of the detected object.
1400
+ /// - Parameter focusMode: Specify whether to focus strongly or weakly.
1401
+ - (void)setCinematicVideoTrackingFocusWithDetectedObjectID:(NSInteger)detectedObjectID focusMode:(AVCaptureCinematicVideoFocusMode)focusMode NS_SWIFT_NAME(setCinematicVideoTrackingFocus(detectedObjectID:focusMode:)) API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1402
+
1403
+ /// Focus on and start tracking an object if it can be detected at the region specified by the point.
1404
+ ///
1405
+ /// - Parameter point: A normalized point of interest (i.e., [0,1]) in the coordinate space of the device.
1406
+ /// - Parameter focusMode: Specify whether to focus strongly or weakly.
1407
+ - (void)setCinematicVideoTrackingFocusAtPoint:(CGPoint)point focusMode:(AVCaptureCinematicVideoFocusMode)focusMode NS_SWIFT_NAME(setCinematicVideoTrackingFocus(at:focusMode:)) API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1408
+
1409
+ /// Fix focus at a distance.
1410
+ ///
1411
+ /// - Parameter point: A normalized point of interest (i.e., [0,1]) in the coordinate space of the device.
1412
+ /// - Parameter focusMode: Specify whether to focus strongly or weakly.
1413
+ ///
1414
+ /// The distance at which focus is set is determined internally using signals such as depth data.
1415
+ - (void)setCinematicVideoFixedFocusAtPoint:(CGPoint)point focusMode:(AVCaptureCinematicVideoFocusMode)focusMode NS_SWIFT_NAME(setCinematicVideoFixedFocus(at:focusMode:)) API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1416
+
1417
+ @end
1418
+
1419
+
1420
+ /*!
1421
+ @enum AVCaptureExposureMode
1422
+ @abstract
1423
+ Constants indicating the mode of the exposure on the receiver's device, if it has adjustable exposure.
1424
+
1425
+ @constant AVCaptureExposureModeLocked
1426
+ Indicates that the exposure should be locked at its current value.
1427
+ @constant AVCaptureExposureModeAutoExpose
1428
+ Indicates that the device should automatically adjust exposure once and then change the exposure mode to AVCaptureExposureModeLocked.
1429
+ @constant AVCaptureExposureModeContinuousAutoExposure
1430
+ Indicates that the device should automatically adjust exposure when needed.
1431
+ @constant AVCaptureExposureModeCustom
1432
+ Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1433
+ */
1434
+ typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
1435
+ AVCaptureExposureModeLocked = 0,
1436
+ AVCaptureExposureModeAutoExpose = 1,
1437
+ AVCaptureExposureModeContinuousAutoExposure = 2,
1438
+ AVCaptureExposureModeCustom API_AVAILABLE(macos(10.15), ios(8.0), macCatalyst(14.0)) API_UNAVAILABLE(visionos) = 3,
1439
+ } API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1440
+
1441
+
1442
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1443
+ @interface AVCaptureDevice (AVCaptureDeviceExposure)
1444
+
1445
+ /*!
1446
+ @method isExposureModeSupported:
1447
+ @abstract
1448
+ Returns whether the receiver supports the given exposure mode.
1449
+
1450
+ @param exposureMode
1451
+ An AVCaptureExposureMode to be checked.
1452
+ @result
1453
+ YES if the receiver supports the given exposure mode, NO otherwise.
1454
+
1455
+ @discussion
1456
+ The receiver's exposureMode property can only be set to a certain mode if this method returns YES for that mode.
1457
+ */
1458
+ - (BOOL)isExposureModeSupported:(AVCaptureExposureMode)exposureMode;
1459
+
1460
+ /*!
1461
+ @property exposureMode
1462
+ @abstract
1463
+ Indicates current exposure mode of the receiver, if it has adjustable exposure.
1464
+
1465
+ @discussion
1466
+ The value of this property is an AVCaptureExposureMode that determines the receiver's exposure mode, if it has adjustable exposure. -setExposureMode: throws an NSInvalidArgumentException if set to an unsupported value (see -isExposureModeSupported:). -setExposureMode: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. When using AVCapturePhotoOutput and capturing photos with AVCapturePhotoSettings' photoQualityPrioritization property set to AVCapturePhotoQualityPrioritizationBalanced or higher, the receiver's ISO and exposureDuration values may be overridden when exposing the photo if the scene is dark enough to warrant some form of multi-image fusion to improve quality. To ensure that the receiver's ISO and exposureDuration values are honored while in AVCaptureExposureModeCustom or AVCaptureExposureModeLocked, you must set your AVCapturePhotoSettings.photoQualityPrioritization property to AVCapturePhotoQualityPrioritizationSpeed. The same rule applies if you are using the deprecated AVCapturePhotoSettings.autoStillImageStabilizationEnabled property; you must set it to NO to preserve your custom exposure values in the photo capture. Likewise if you're using AVCaptureStillImageOutput, automaticallyEnablesStillImageStabilizationWhenAvailable must be set to NO to preserve your custom exposure values in a still image capture. Clients can observe automatic changes to the receiver's exposureMode by key value observing this property.
1467
+ */
1468
+ @property(nonatomic) AVCaptureExposureMode exposureMode;
1469
+
1470
+ /*!
1471
+ @property exposurePointOfInterestSupported:
1472
+ @abstract
1473
+ Indicates whether the receiver supports exposure points of interest.
1474
+
1475
+ @discussion
1476
+ The receiver's exposurePointOfInterest property can only be set if this property returns YES.
1477
+ */
1478
+ @property(nonatomic, readonly, getter=isExposurePointOfInterestSupported) BOOL exposurePointOfInterestSupported;
1479
+
1480
+ /*!
1481
+ @property exposurePointOfInterest
1482
+ @abstract
1483
+ Indicates current exposure point of interest of the receiver, if it has one.
1484
+
1485
+ @discussion
1486
+ The value of this property is a CGPoint that determines the receiver's exposure point of interest, if it has adjustable exposure. A value of (0,0) indicates that the camera should adjust exposure based on the top left corner of the image, while a value of (1,1) indicates that it should adjust exposure based on the bottom right corner. The default value is (0.5,0.5). -setExposurePointOfInterest: throws an NSInvalidArgumentException if isExposurePointOfInterestSupported returns NO. -setExposurePointOfInterest: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Note that setting exposurePointOfInterest alone does not initiate an exposure operation. After setting exposurePointOfInterest, call -setExposureMode: to apply the new point of interest.
1487
+ */
1488
+ @property(nonatomic) CGPoint exposurePointOfInterest;
1489
+
1490
+ /// Whether the device supports exposure rectangles of interest.
1491
+ ///
1492
+ /// You may only set the device's ``exposureRectOfInterest`` property if this property returns `true`.
1493
+ @property(nonatomic, readonly, getter=isExposureRectOfInterestSupported) BOOL exposureRectOfInterestSupported API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1494
+
1495
+ /// The minimum size you may use when specifying a rectangle of interest.
1496
+ ///
1497
+ /// The size returned is in normalized coordinates, and depends on the current ``AVCaptureDevice/activeFormat``. If ``exposureRectOfInterestSupported`` returns `false`, this property returns { 0, 0 }.
1498
+ @property(nonatomic, readonly) CGSize minExposureRectOfInterestSize API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1499
+
1500
+ /// The device's current exposure rectangle of interest, if it has one.
1501
+ ///
1502
+ /// The value of this property is a ``CGRect`` determining the device's exposure rectangle of interest. Use this as an alternative to setting ``exposurePointOfInterest``, as it allows you to specify both a location and size. For example, a value of `CGRectMake(0, 0, 1, 1)` tells the device to use the entire field of view when determining the exposure, while `CGRectMake(0, 0, 0.25, 0.25)` indicates the top left sixteenth, and `CGRectMake(0.75, 0.75, 0.25, 0.25)` indicates the bottom right sixteenth. Setting ``exposureRectOfInterest`` throws an `NSInvalidArgumentException` if ``exposureRectOfInterestSupported`` returns `false`. Setting ``exposureRectOfInterest`` throws an `NSInvalidArgumentException` if your provided rectangle's size is smaller than the ``minExposureRectOfInterestSize``. Setting ``exposureRectOfInterest`` throws an `NSGenericException` if you call it without first obtaining exclusive access to the device using ``AVCaptureDevice/lockForConfiguration:``. Setting ``exposureRectOfInterest`` updates the device's ``exposurePointOfInterest`` to the center of your provided rectangle of interest. If you later set the device's ``exposurePointOfInterest``, the ``exposureRectOfInterest`` resets to the default sized rectangle of interest for the new exposure point of interest. If you change your ``AVCaptureDevice/activeFormat``, the point of interest and rectangle of interest both revert to their default values. You can observe automatic changes to the device's ``exposureRectOfInterest`` by key-value observing this property.
1503
+ ///
1504
+ /// - Note: Setting ``exposureRectOfInterest`` alone does not initiate an exposure operation. After setting ``exposureRectOfInterest``, set ``exposureMode`` to apply the new rectangle of interest.
1505
+ @property(nonatomic) CGRect exposureRectOfInterest API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1506
+
1507
+ /// The default rectangle of interest used for a given exposure point of interest.
1508
+ ///
1509
+ /// - Parameter pointOfInterest: The point of interest for which you want the default rectangle of interest.
1510
+ ///
1511
+ /// For example, pass `(0.5, 0.5)` to get the exposure rectangle of interest used for the default exposure point of interest at `(0.5, 0.5)`.
1512
+ ///
1513
+ /// This method returns `CGRectNull` if ``exposureRectOfInterestSupported`` returns `false`.
1514
+ - (CGRect)defaultRectForExposurePointOfInterest:(CGPoint)pointOfInterest API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1515
+
1516
+ /*!
1517
+ @property automaticallyAdjustsFaceDrivenAutoExposureEnabled
1518
+ @abstract
1519
+ Indicates whether the receiver should automatically adjust face-driven auto exposure.
1520
+
1521
+ @discussion
1522
+ The value of this property is a BOOL that determines the receiver's automatic adjustment of face-driven auto exposure. Default is YES on all platforms, if the receiver supports auto exposure. This property must be set to NO before manually setting faceDrivenAutoExposureEnabled to YES/NO. -setAutomaticallyAdjustsFaceDrivenAutoExposureEnabled: throws an NSInvalidArgumentException if the receiver doesn't support auto exposure. -setAutomaticallyAdjustsFaceDrivenAutoExposureEnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. After setting automaticallyAdjustsFaceDrivenAutoExposureEnabled, call -setExposureMode: to apply the change.
1523
+ */
1524
+ @property(nonatomic) BOOL automaticallyAdjustsFaceDrivenAutoExposureEnabled API_AVAILABLE(ios(15.4), macCatalyst(15.4), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1525
+
1526
+ /*!
1527
+ @property faceDrivenAutoExposureEnabled
1528
+ @abstract
1529
+ Indicates whether face-driven auto exposure is enabled on the receiver.
1530
+
1531
+ @discussion
1532
+ Default is YES for all apps linked on or after iOS 15.4 when the receiver supports auto exposure. -setFaceDrivenAutoExposureEnabled: throws an NSInvalidArgumentException if automaticallyAdjustsFaceDrivenAutoExposureEnabled returns YES. -setFaceDrivenAutoExposureEnabled: throws an NSInvalidArgumentException if the receiver doesn't support auto exposure. -setFaceDrivenAutoExposureEnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. Note that setting faceDrivenAutoExposureEnabled alone does not initiate this exposure change operation. After setting faceDrivenAutoExposureEnabled, call -setExposureMode: to apply the change.
1533
+ */
1534
+ @property(nonatomic, getter=isFaceDrivenAutoExposureEnabled) BOOL faceDrivenAutoExposureEnabled API_AVAILABLE(ios(15.4), macCatalyst(15.4), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1535
+
1536
+ /** The maximum exposure (integration) time that may be used by the auto exposure algorithm.
1537
+
1538
+ When ``automaticallyAdjustsExposureDuration`` is true, the auto exposure algorithm picks an exposure duration that is tuned for the current scene, balancing low light image quality with motion preservation, up to the maximum specified by this property.
1539
+ When custom exposure durations are specified via ``setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``, if the duration exceeds `activeMaxExposureDuration`, the behavior depends on whether any of the other custom parameters are set to Auto:
1540
+ - If either aperture or ISO are set to Auto, then the applied exposure duration will be capped to `activeMaxExposureDuration` for streaming frames, but the full exposure duration may be applied during still capture.
1541
+ - If no parameters are set to Auto, then activeMaxExposureDuration is ignored, the custom exposure duration is applied as specified.
1542
+
1543
+ By querying or key-value observing this property, you may find out the current max exposure duration. You may also override the default value by setting this property. Setting the property to the special value of kCMTimeInvalid resets the auto exposure max duration to the device's default for your current configuration. When the device's activeFormat or the AVCaptureSession's sessionPreset changes, this property resets to the default max exposure duration for the new format or session preset.
1544
+
1545
+ On some devices, the auto exposure algorithm picks a different max exposure duration for a given format depending whether you set the ``AVCaptureSession/sessionPreset`` property or the ``AVCaptureDevice/activeFormat`` property to set the format. To ensure ``activeMaxExposureDuration`` stays consistent between preset or format changes, you can set your AVCaptureDeviceInput's ``AVCaptureDeviceInput/unifiedAutoExposureDefaultsEnabled`` property to true.
1546
+
1547
+ - Throws: `NSRangeException` if the assigned value is not between activeFormat's ``AVCaptureDeviceFormat/minExposureDuration`` and ``AVCaptureDeviceFormat/maxExposureDuration``
1548
+ - Throws: `NSGenericException` if called without first obtaining exclusive access to the receiver using ``lockForConfiguration:``.
1549
+ */
1550
+ @property(nonatomic) CMTime activeMaxExposureDuration API_AVAILABLE(ios(12.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1551
+
1552
+ /*!
1553
+ @property adjustingExposure
1554
+ @abstract
1555
+ Indicates whether the receiver is currently adjusting camera exposure.
1556
+
1557
+ @discussion
1558
+ The value of this property is a BOOL indicating whether the receiver's camera exposure is being automatically adjusted because its exposure mode is AVCaptureExposureModeAutoExpose or AVCaptureExposureModeContinuousAutoExposure. Clients can observe the value of this property to determine whether the camera exposure is stable or is being automatically adjusted.
1559
+ */
1560
+ @property(nonatomic, readonly, getter=isAdjustingExposure) BOOL adjustingExposure;
1561
+
1562
+ /// The current 𝑓 number (𝑓-stop) of the lens diaphragm.
1563
+ ///
1564
+ /// The aperture's 𝑓 number is the ratio of the focal length to the diameter of the aperture opening. Higher values correspond to closing the aperture, which increases depth of field, but darkens the image unless exposure duration or ISO are increased as well. This property is key-value observable. It can be read at any time, regardless of exposure mode, but can only be set by ``setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``. This value reports the physical aperture position and may not exactly match the target value passed to the setter.
1565
+ @property(nonatomic, readonly) float lensAperture API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1566
+
1567
+ /// The length of time over which exposure takes place.
1568
+ ///
1569
+ /// Lower values increases the sharpness of objects in motion, but darkens the image unless the aperture is opened or ISO is increased. Exposure duration may be less than the frame duration, providing an anagolue to the shutter angle of film video cameras. This property is key-value observable. It can be read at any time, regardless of exposure mode, but can only be set by either ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``.
1570
+ @property(nonatomic, readonly) CMTime exposureDuration API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1571
+
1572
+ /// The current exposure ISO value.
1573
+ ///
1574
+ /// This property indicates the sensor's sensitivity to light by means of a gain value applied to the signal. Higher values correspond to brighter but noisier images. This property is key-value observable. It can be read at any time, regardless of exposure mode, but can only be set by either ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``.
1575
+ @property(nonatomic, readonly) float ISO API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1576
+
1577
+ /// Specifies a rate limit for aperture motion, whenever auto-exposure is active.
1578
+ ///
1579
+ /// This rate limit is enforced whenever the auto-exposure system has control of one or more exposure parameters, to ensure smooth transitions between target values with coordinated management of the automatically adjusted parameters to maintain image brightness.
1580
+ /// However, if a full set of explicit (not "auto") positions are passed to `setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:`, any change to aperture is immediately applied without rate limit.
1581
+ /// In this case, the client has full control of the exposure parameters, and can implement arbitrary exposure transitions by repeated calls to the setter.
1582
+ ///
1583
+ /// This value limits the maximum frame-to-frame change of aperture size, as the ratio of aperture area between consecutive frames.
1584
+ /// For example, a value of 1.1 limits the aperture to accepting 10% additional light on each consecutive frame (or reducing by 10% when closing). A value of 1.0 does not allow any aperture motion.
1585
+ /// A special value of 0 (the default) allows the system to adjust the aperture speed automatically, such as faster motion in preview and slower when recording. When assigned to a value other than 0, the value must be greater than or equal to 1.0.
1586
+ ///
1587
+ /// - Throws: `NSGenericException` if assigned without first obtaining exclusive access to the receiver using ``lockForConfiguration:``.
1588
+ @property(nonatomic) float autoExposureLensApertureRateLimit API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1589
+
1590
+ /** Sets a custom exposure mode with the specified lens exposure duration and ISO values.
1591
+
1592
+ - Parameter duration: The exposure duration, as described in the documentation for the ``exposureDuration`` property. You may specify one of the special Current or Auto constants listed in the discussion section below, or values between the ``AVCaptureDeviceFormat/minExposureDuration`` and ``AVCaptureDeviceFormat/maxExposureDuration`` of the ``activeFormat``.
1593
+
1594
+ - Parameter ISO: The exposure ISO value, as described in the documentation for the ``ISO`` property. You may specify one of the special Current or Auto constants listed in the discussion section below, or values between the ``AVCaptureDeviceFormat/minISO`` and ``AVCaptureDeviceFormat/maxISO`` of the ``activeFormat``.
1595
+
1596
+ - Parameter handler: A block to be called when all parameters have been set to the values specified and ``exposureMode`` is set to ``AVCaptureExposureMode/AVCaptureExposureModeCustom``. If the `setExposureModeCustom...` methods are called multiple times, their completion handlers are always called in FIFO order. The block receives a timestamp which matches that of the first buffer to which all settings have been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the ``AVCaptureSession/synchronizationClock`` prior to comparison with the timestamps of buffers delivered via an ``AVCaptureVideoDataOutput``. The client may pass nil for the handler parameter if knowledge of the operation's completion is not required.
1597
+
1598
+ Besides a numeric value, each of the exposure parameters can be set to either of these special constants:
1599
+
1600
+ > Lock To Current Value:
1601
+ > A value of ``AVFCapture/AVCaptureExposureDurationCurrent`` can be passed for `duration`, or ``AVFCapture/AVCaptureISOCurrent`` for `ISO`, to indicate the caller does not wish to modify the current value. When auto-exposure is active, it is preferable to use these constants rather than querying the property getter, as auto-exposure system may be asynchronously changing the value as the command is processed.
1602
+
1603
+ > Priority Modes:
1604
+ > A value of ``AVFCapture/AVCaptureExposureDurationAuto`` can be passed for `duration`, or ``AVFCapture/AVCaptureISOAuto`` for `ISO`, to indicate the auto-exposure system should continue to manage that parameter to produce balanced image brightness. This allows you to lock one of the exposure parameters (the "priority") while the system will automatically adjust the other.
1605
+ >
1606
+ > Not all priority mode combinations may be supported. Use ``AVCaptureDeviceFormat/supportsExposureModeCustomWithLensAperture:duration:ISO:`` to validate whether a given configuration will be accepted.
1607
+
1608
+ The applied exposure duration of streaming frames are limited to ``activeMaxExposureDuration`` when ISO is set to "Auto", but the full exposure duration may be applied during still capture. Auto parameter(s) will attempt to simulate how a still capture will appear, while maintaining the current frame rate for responsive preview. If none of the parameters are "Auto", changes to the exposure duration may result in changes to ``activeVideoMaxFrameDuration``.
1609
+
1610
+ If you wish to use the custom locked values for ``AVCapturePhotoOutput`` captures, you must set the ``AVCapturePhotoSettings/photoQualityPrioritization`` property to ``AVCapturePhotoQualityPrioritization/AVCapturePhotoQualityPrioritizationSpeed``. The default value of ``AVCapturePhotoQualityPrioritization/AVCapturePhotoQualityPrioritizationBalanced`` allows photo capture to temporarily override the capture device's ISO and exposureDuration values if the scene is dark enough to warrant some form of multi-image fusion to improve quality.
1611
+
1612
+ Note selecting speed prioritization disables image stabilization. If you then re-enable image stabilization via the deprecated ``AVCapturePhotoSettings/autoStillImageStabilizationEnabled`` property or ``AVCaptureStillImageOutput/automaticallyEnablesStillImageStabilizationWhenAvailable`` property, this counteracts speed prioritization and can result in image capture adopting different exposure settings.
1613
+
1614
+ Calling this method equivalent to passing ``AVFCapture/AVCaptureLensApertureCurrent`` to ``setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``.
1615
+
1616
+ - Throws: `NSRangeException` if any parameter is set to an unsupported level.
1617
+ - Throws: `NSInvalidArgumentException` if the custom mode is not supported. (See ``AVCaptureDeviceFormat/supportsExposureModeCustomWithLensAperture:duration:ISO:``)
1618
+ - Throws: `NSGenericException` if called without first obtaining exclusive access to the receiver using ``lockForConfiguration:``.
1619
+ */
1620
+ - (void)setExposureModeCustomWithDuration:(CMTime)duration ISO:(float)ISO completionHandler:(nullable void (^)(CMTime syncTime))handler API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1621
+
1622
+ /** Sets a custom exposure mode with the specified lens aperture, exposure duration, and ISO values.
1623
+
1624
+ - Parameter lensAperture: The lens aperture, as described in the documentation for the ``lensAperture`` property. You may specify one of the special ``AVFCapture/AVCaptureLensApertureCurrent`` or ``AVFCapture/AVCaptureLensApertureAuto`` constants listed in the discussion section below, or values between the ``AVCaptureDeviceFormat/minLensAperture`` and ``AVCaptureDeviceFormat/maxLensAperture`` of the ``activeFormat``.
1625
+
1626
+ - Parameter duration: The exposure duration, as described in the documentation for the ``exposureDuration`` property. You may specify one of the special ``AVFCapture/AVCaptureExposureDurationCurrent`` or ``AVFCapture/AVCaptureExposureDurationAuto`` constants listed in the discussion section below, or values between the ``AVCaptureDeviceFormat/minExposureDuration`` and ``AVCaptureDeviceFormat/maxExposureDuration`` of the ``activeFormat``.
1627
+
1628
+ - Parameter ISO: The exposure ISO value, as described in the documentation for the ``ISO`` property. You may specify one of the special ``AVFCapture/AVCaptureISOCurrent`` or ``AVFCapture/AVCaptureISOAuto`` constants listed in the discussion section below, or values between the ``AVCaptureDeviceFormat/minISO`` and ``AVCaptureDeviceFormat/maxISO`` of the ``activeFormat``.
1629
+
1630
+ - Parameter handler: A block to be called when all parameters have been set to the values specified and ``exposureMode`` is set to ``AVCaptureExposureMode/AVCaptureExposureModeCustom``. If the `setExposureModeCustom...` methods are called multiple times, their completion handlers are always called in FIFO order. The block receives a timestamp which matches that of the first buffer to which all settings have been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the ``AVCaptureSession/synchronizationClock`` prior to comparison with the timestamps of buffers delivered via an ``AVCaptureVideoDataOutput``. The client may pass nil for the handler parameter if knowledge of the operation's completion is not required.
1631
+
1632
+ Besides a numeric value, each of the exposure parameters can be set to either of these special constants:
1633
+
1634
+ > Lock To Current Value:
1635
+ > A value of ``AVFCapture/AVCaptureLensApertureCurrent`` can be passed for `lensAperture`, or ``AVFCapture/AVCaptureExposureDurationCurrent`` for `duration`, or ``AVFCapture/AVCaptureISOCurrent`` for `ISO`, to indicate you wish to lock that parameter at the current value. When auto-exposure is active, it is preferable to use these constants rather than querying the property getter, as auto-exposure system may be asynchronously changing the value as the command is processed.
1636
+ >
1637
+ > Passing ``AVFCapture/AVCaptureLensApertureCurrent`` is equivalent to calling ``setExposureModeCustomWithDuration:ISO:completionHandler:``.
1638
+
1639
+ > Priority Modes:
1640
+ > A value of ``AVFCapture/AVCaptureLensApertureAuto`` can be passed for `lensAperture`, or ``AVFCapture/AVCaptureExposureDurationAuto`` for `duration`, or ``AVFCapture/AVCaptureISOAuto`` for `ISO`, to indicate the auto-exposure system should continue to manage that parameter to produce balanced image brightness. This allows you to lock one of the exposure parameters (the "priority") while the system will automatically adjust the other.
1641
+ >
1642
+ > Not all priority mode combinations may be supported. Use ``AVCaptureDeviceFormat/supportsExposureModeCustomWithLensAperture:duration:ISO:`` to validate whether a given configuration will be accepted.
1643
+
1644
+ The applied exposure duration of streaming frames are limited to ``activeMaxExposureDuration`` when either lensAperture or ISO is set to "Auto", but the full exposure duration may be applied during still capture. Auto parameter(s) will attempt to simulate how a still capture will appear, while maintaining the current frame rate for responsive preview. If none of the parameters are "Auto", changes to the exposure duration may result in changes to ``activeVideoMaxFrameDuration``.
1645
+
1646
+ If you wish to use the custom locked values for ``AVCapturePhotoOutput`` captures, you must set the ``AVCapturePhotoSettings/photoQualityPrioritization`` property to ``AVCapturePhotoQualityPrioritization/AVCapturePhotoQualityPrioritizationSpeed``. The default value of ``AVCapturePhotoQualityPrioritization/AVCapturePhotoQualityPrioritizationBalanced`` allows photo capture to temporarily override the capture device's ISO and exposureDuration values if the scene is dark enough to warrant some form of multi-image fusion to improve quality.
1647
+
1648
+ Note selecting speed prioritization disables image stabilization. If you then re-enable image stabilization via the deprecated ``AVCapturePhotoSettings/autoStillImageStabilizationEnabled`` property or ``AVCaptureStillImageOutput/automaticallyEnablesStillImageStabilizationWhenAvailable`` property, this counteracts speed prioritization and can result in image capture adopting different exposure settings.
1649
+
1650
+ - Throws: `NSRangeException` if any parameter is set to an unsupported level.
1651
+ - Throws: `NSInvalidArgumentException` if the custom mode is not supported. (See ``AVCaptureDeviceFormat/supportsExposureModeCustomWithLensAperture:duration:ISO:``)
1652
+ - Throws: `NSGenericException` if called without first obtaining exclusive access to the receiver using ``lockForConfiguration:``.
1653
+ */
1654
+ - (void)setExposureModeCustomWithLensAperture:(float)lensAperture duration:(CMTime)duration ISO:(float)ISO completionHandler:(nullable void (^)(CMTime syncTime))handler NS_SWIFT_NAME(setExposureModeCustom(lensAperture:duration:iso:completionHandler:)) API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos);
1655
+
1656
+ /// This property reports true whenever lensAperture is unlocked, either by setting exposureMode to one of the automatic modes, or by passing `AVCaptureLensApertureAuto` to the aperture parameter of ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``.
1657
+ @property(nonatomic, readonly) BOOL automaticallyAdjustsLensAperture API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos);
1658
+
1659
+ /// This property reports true whenever exposureDuration is unlocked, either by setting exposureMode to one of the automatic modes, or by passing `AVCaptureExposureDurationAuto` to the duration parameter of ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``.
1660
+ @property(nonatomic, readonly) BOOL automaticallyAdjustsExposureDuration API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos);
1661
+
1662
+ /// This property reports true whenever ISO is unlocked, either by setting exposureMode to one of the automatic modes, or by passing `AVCaptureISOAuto` to the ISO parameter of ``AVCaptureDevice/setExposureModeCustomWithDuration:ISO:completionHandler:`` or ``AVCaptureDevice/setExposureModeCustomWithLensAperture:duration:ISO:completionHandler:``.
1663
+ @property(nonatomic, readonly) BOOL automaticallyAdjustsISO API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos);
1664
+
1665
+ /*!
1666
+ @property exposureTargetOffset
1667
+ @abstract
1668
+ Indicates the metered exposure level's offset from the target exposure value, in EV units.
1669
+
1670
+ @discussion
1671
+ The value of this read-only property indicates the difference between the metered exposure level of the current scene and the target exposure value. This property is key-value observable.
1672
+ */
1673
+ @property(nonatomic, readonly) float exposureTargetOffset API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1674
+
1675
+ /// Bias applied to the target exposure value, in EV units.
1676
+ ///
1677
+ /// When exposureMode is AVCaptureExposureModeContinuousAutoExposure or AVCaptureExposureModeLocked, the bias will affect both metering (`exposureTargetOffset`), and the actual exposure level (`lensAperture`, `exposureDuration` and `ISO`).
1678
+ /// When the exposure mode is AVCaptureExposureModeCustom and none of the custom parameters are "Auto", bias is disabled and will only affect metering. In custom modes with "Auto" parameters, those parameters will be adjusted to apply the requested bias.
1679
+ /// This property is key-value observable. It can be read at any time, but can only be set via setExposureTargetBias:completionHandler:.
1680
+ @property(nonatomic, readonly) float exposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1681
+
1682
+ /*!
1683
+ @property minExposureTargetBias
1684
+ @abstract
1685
+ A float indicating the minimum supported exposure bias, in EV units.
1686
+
1687
+ @discussion
1688
+ This read-only property indicates the minimum supported exposure bias.
1689
+ */
1690
+ @property(nonatomic, readonly) float minExposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1691
+
1692
+ /*!
1693
+ @property maxExposureTargetBias
1694
+ @abstract
1695
+ A float indicating the maximum supported exposure bias, in EV units.
1696
+
1697
+ @discussion
1698
+ This read-only property indicates the maximum supported exposure bias.
1699
+ */
1700
+ @property(nonatomic, readonly) float maxExposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1701
+
1702
+ /*!
1703
+ @constant AVCaptureExposureTargetBiasCurrent
1704
+ A special value that may be passed as the bias parameter of setExposureTargetBias:completionHandler: to indicate that the caller does not wish to specify a value for the exposureTargetBias property, and that it should instead be set to its current value.
1705
+ */
1706
+ AVF_EXPORT const float AVCaptureExposureTargetBiasCurrent API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1707
+
1708
+ /*!
1709
+ @method setExposureTargetBias:completionHandler:
1710
+ @abstract
1711
+ Sets the bias to be applied to the target exposure value.
1712
+
1713
+ @param bias
1714
+ The bias to be applied to the exposure target value, as described in the documentation for the exposureTargetBias property.
1715
+ @param handler
1716
+ A block to be called when exposureTargetBias has been set to the value specified. If setExposureTargetBias:completionHandler: is called multiple times, the completion handlers will be called in FIFO order. The block receives a timestamp which matches that of the first buffer to which the setting has been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the `AVCaptureSession/synchronizationClock` prior to comparison with the timestamps of buffers delivered via an AVCaptureVideoDataOutput. The client may pass nil for the handler parameter if knowledge of the operation's completion is not required.
1717
+
1718
+ @discussion
1719
+ This is the only way of setting exposureTargetBias. This method throws an NSRangeException if exposureTargetBias is set to an unsupported level. This method throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
1720
+ */
1721
+ - (void)setExposureTargetBias:(float)bias completionHandler:(nullable void (^)(CMTime syncTime))handler API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1722
+
1723
+ /// Reports which characteristics the auto exposure system associates with the current scene. Auto exposure may adjust properties such as lens aperture size based on these factors. This property is key-value observable.
1724
+ @property(nonatomic, readonly, nonnull) NSSet<AVCaptureDeviceExposureSignal> *activeExposureSignals API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
1725
+
1726
+ /// Can be assigned to control which characteristics AE should use in its decision making, must be a subset of supportedExposureSignals.
1727
+ ///
1728
+ /// When `automaticallyEnablesExposureSignals` is true, the system may automatically change the enabled signals based on other enabled device properties. When `automaticallyEnablesExposureSignals` is false, you may assign a custom set of exposure signals to this property. This property is key-value observable.
1729
+ ///
1730
+ /// - Throws: `NSInvalidArgumentException` if assigned while `automaticallyEnablesExposureSignals` is true
1731
+ /// - Throws: `NSGenericException` if assigned without first obtaining exclusive access to the receiver using ``lockForConfiguration:``.
1732
+ @property(nonatomic, nonnull) NSSet<AVCaptureDeviceExposureSignal> *enabledExposureSignals API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
1733
+
1734
+ /// Indicates what values can be included in `enabledExposureSignals`. This property is key-value observable.
1735
+ @property(nonatomic, readonly, nonnull) NSSet<AVCaptureDeviceExposureSignal> *supportedExposureSignals API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
1736
+
1737
+ /// When true (the default), capture sessions may automatically modify `enabledExposureSignals` based on changes to other device or session properties.
1738
+ ///
1739
+ /// The `enabledExposureSignals` property can only be assigned when `automaticallyEnablesExposureSignals` is false, otherwise assignments to `enabledExposureSignals` will throw an exception.
1740
+ ///
1741
+ /// - Throws: `NSGenericException` if assigned without first obtaining exclusive access to the receiver using ``lockForConfiguration:``.
1742
+ @property(nonatomic) BOOL automaticallyEnablesExposureSignals API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE( watchos);
1743
+ @end
1744
+
1745
+
1746
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1747
+ @interface AVCaptureDevice (AVCaptureDeviceToneMapping)
1748
+
1749
+ /*!
1750
+ @property globalToneMappingEnabled
1751
+ @abstract
1752
+ Indicates whether the receiver should use global tone mapping.
1753
+
1754
+ @discussion
1755
+ Tone mapping is a technique used by the device to map the pixel levels in high dynamic range images to a more limited dynamic range (such as 16 bit to 8 bit), while still retaining as close an appearance as possible. Normally the device employs adaptive, local tone curves to preserve highest image quality and adapt quickly to changing lighting conditions.
1756
+
1757
+ This property indicates to the receiver to use a global tone map. If set to YES, the tone map is adjusted dynamically depending on the current scene and the same tone map is applied to all pixels in an image. If set to its default value of NO, different tone maps may be applied to different pixels in an image.
1758
+
1759
+ globalToneMappingEnabled may only be set to YES if the receiver's activeFormat.isGlobalToneMappingSupported property returns YES, otherwise an NSGenericException is thrown. Setting globalToneMappingEnabled throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
1760
+
1761
+ When global tone mapping is enabled, an AVCapturePhotoOutput connected to the AVCaptureDeviceInput’s session disables all forms of still image fusion, resulting in still images with no automatic stabilization applied.
1762
+
1763
+ The receiver’s globalToneMappingEnabled resets to its default value of NO under the following conditions:
1764
+ - The receiver’s activeFormat changes
1765
+ - The receiver’s AVCaptureDeviceInput’s session’s sessionPreset changes
1766
+ - The receiver’s AVCaptureDeviceInput is added to a session
1767
+
1768
+ Clients can observe automatic changes to the receiver's globalToneMappingEnabled by key value observing this property.
1769
+ */
1770
+ @property(nonatomic, getter=isGlobalToneMappingEnabled) BOOL globalToneMappingEnabled API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1771
+
1772
+ @end
1773
+
1774
+
1775
+ /*!
1776
+ @enum AVCaptureWhiteBalanceMode
1777
+ @abstract
1778
+ Constants indicating the mode of the white balance on the receiver's device, if it has adjustable white balance.
1779
+
1780
+ @constant AVCaptureWhiteBalanceModeLocked
1781
+ Indicates that the white balance should be locked at its current value.
1782
+ @constant AVCaptureWhiteBalanceModeAutoWhiteBalance
1783
+ Indicates that the device should automatically adjust white balance once and then change the white balance mode to AVCaptureWhiteBalanceModeLocked.
1784
+ @constant AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance
1785
+ Indicates that the device should automatically adjust white balance when needed.
1786
+ */
1787
+ typedef NS_ENUM(NSInteger, AVCaptureWhiteBalanceMode) {
1788
+ AVCaptureWhiteBalanceModeLocked = 0,
1789
+ AVCaptureWhiteBalanceModeAutoWhiteBalance = 1,
1790
+ AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance = 2,
1791
+ } API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
1792
+
1793
+
1794
+ /*!
1795
+ @typedef AVCaptureWhiteBalanceGains
1796
+ @abstract
1797
+ Structure containing RGB white balance gain values.
1798
+ */
1799
+ typedef struct {
1800
+ float redGain;
1801
+ float greenGain;
1802
+ float blueGain;
1803
+ } AVCaptureWhiteBalanceGains API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1804
+
1805
+
1806
+ /*!
1807
+ @typedef AVCaptureWhiteBalanceChromaticityValues
1808
+ @abstract
1809
+ Structure containing CIE 1931 xy chromaticity values.
1810
+ */
1811
+ typedef struct {
1812
+ float x;
1813
+ float y;
1814
+ } AVCaptureWhiteBalanceChromaticityValues API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1815
+
1816
+
1817
+ /*!
1818
+ @typedef AVCaptureWhiteBalanceTemperatureAndTintValues
1819
+ @abstract
1820
+ Structure containing a white balance color correlated temperature in kelvin, plus a tint value in the range of [-150 - +150].
1821
+ */
1822
+ typedef struct {
1823
+ float temperature;
1824
+ float tint;
1825
+ } AVCaptureWhiteBalanceTemperatureAndTintValues API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1826
+
1827
+ /// Temperature and tint values ideal for scenes illuminated with a tungsten light source.
1828
+ AVF_EXPORT AVCaptureWhiteBalanceTemperatureAndTintValues const AVCaptureWhiteBalanceTemperatureAndTintValuesTungsten NS_SWIFT_NAME(AVCaptureWhiteBalanceTemperatureAndTintValues.tungsten) API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1829
+
1830
+ /// Temperature and tint values ideal for scenes illuminated with a fluorescent light source.
1831
+ AVF_EXPORT AVCaptureWhiteBalanceTemperatureAndTintValues const AVCaptureWhiteBalanceTemperatureAndTintValuesFluorescent NS_SWIFT_NAME(AVCaptureWhiteBalanceTemperatureAndTintValues.fluorescent) API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1832
+
1833
+ /// Temperature and tint values ideal for scenes illuminated with natural daylight.
1834
+ AVF_EXPORT AVCaptureWhiteBalanceTemperatureAndTintValues const AVCaptureWhiteBalanceTemperatureAndTintValuesDaylight NS_SWIFT_NAME(AVCaptureWhiteBalanceTemperatureAndTintValues.daylight) API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1835
+
1836
+ /// Temperature and tint values ideal for scenes illuminated with natural cloudy daylight.
1837
+ AVF_EXPORT AVCaptureWhiteBalanceTemperatureAndTintValues const AVCaptureWhiteBalanceTemperatureAndTintValuesCloudy NS_SWIFT_NAME(AVCaptureWhiteBalanceTemperatureAndTintValues.cloudy) API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1838
+
1839
+ /// Temperature and tint values ideal for scenes illuminated with daylight but in heavy shade.
1840
+ AVF_EXPORT AVCaptureWhiteBalanceTemperatureAndTintValues const AVCaptureWhiteBalanceTemperatureAndTintValuesShadow NS_SWIFT_NAME(AVCaptureWhiteBalanceTemperatureAndTintValues.shadow) API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1841
+
1842
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1843
+ @interface AVCaptureDevice (AVCaptureDeviceWhiteBalance)
1844
+
1845
+ /*!
1846
+ @method isWhiteBalanceModeSupported:
1847
+ @abstract
1848
+ Returns whether the receiver supports the given white balance mode.
1849
+
1850
+ @param whiteBalanceMode
1851
+ An AVCaptureWhiteBalanceMode to be checked.
1852
+ @result
1853
+ YES if the receiver supports the given white balance mode, NO otherwise.
1854
+
1855
+ @discussion
1856
+ The receiver's whiteBalanceMode property can only be set to a certain mode if this method returns YES for that mode.
1857
+ */
1858
+ - (BOOL)isWhiteBalanceModeSupported:(AVCaptureWhiteBalanceMode)whiteBalanceMode;
1859
+
1860
+ /*!
1861
+ @property lockingWhiteBalanceWithCustomDeviceGainsSupported
1862
+ @abstract
1863
+ Indicates whether the receiver supports white balance gains other than AVCaptureWhiteBalanceGainsCurrent.
1864
+
1865
+ @discussion
1866
+ If lockingWhiteBalanceWithCustomDeviceGainsSupported returns NO, setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains: may only be called with AVCaptureWhiteBalanceGainsCurrent. Passing any other white balance gains will result in an exception.
1867
+ */
1868
+ @property(nonatomic, readonly, getter=isLockingWhiteBalanceWithCustomDeviceGainsSupported) BOOL lockingWhiteBalanceWithCustomDeviceGainsSupported API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1869
+
1870
+ /*!
1871
+ @property whiteBalanceMode
1872
+ @abstract
1873
+ Indicates current white balance mode of the receiver, if it has adjustable white balance.
1874
+
1875
+ @discussion
1876
+ The value of this property is an AVCaptureWhiteBalanceMode that determines the receiver's white balance mode, if it has adjustable white balance. -setWhiteBalanceMode: throws an NSInvalidArgumentException if set to an unsupported value (see -isWhiteBalanceModeSupported:). -setWhiteBalanceMode: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's whiteBalanceMode by key value observing this property.
1877
+ */
1878
+ @property(nonatomic) AVCaptureWhiteBalanceMode whiteBalanceMode;
1879
+
1880
+ /*!
1881
+ @property adjustingWhiteBalance
1882
+ @abstract
1883
+ Indicates whether the receiver is currently adjusting camera white balance.
1884
+
1885
+ @discussion
1886
+ The value of this property is a BOOL indicating whether the receiver's camera white balance is being automatically adjusted because its white balance mode is AVCaptureWhiteBalanceModeAutoWhiteBalance or AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance. Clients can observe the value of this property to determine whether the camera white balance is stable or is being automatically adjusted.
1887
+ */
1888
+ @property(nonatomic, readonly, getter=isAdjustingWhiteBalance) BOOL adjustingWhiteBalance;
1889
+
1890
+ /*!
1891
+ @property deviceWhiteBalanceGains
1892
+ @abstract
1893
+ Indicates the current device-specific RGB white balance gain values in use.
1894
+
1895
+ @discussion
1896
+ This property specifies the current red, green, and blue gain values used for white balance. The values can be used to adjust color casts for a given scene. For each channel, only values between 1.0 and -maxWhiteBalanceGain are supported. This property is key-value observable. It can be read at any time, regardless of white balance mode, but can only be set via setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:.
1897
+ */
1898
+ @property(nonatomic, readonly) AVCaptureWhiteBalanceGains deviceWhiteBalanceGains API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1899
+
1900
+ /*!
1901
+ @property grayWorldDeviceWhiteBalanceGains
1902
+ @abstract
1903
+ Indicates the current device-specific Gray World RGB white balance gain values in use.
1904
+
1905
+ @discussion
1906
+ This property specifies the current red, green, and blue gain values derived from the current scene to deliver a neutral (or "Gray World") white point for white balance. Gray World values assume a neutral subject (e.g. a gray card) has been placed in the middle of the subject area and fills the center 50% of the frame. Clients can read these values and apply them to the device using setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:. For each channel, only values between 1.0 and -maxWhiteBalanceGain are supported. This property is key-value observable. It can be read at any time, regardless of white balance mode.
1907
+ */
1908
+ @property(nonatomic, readonly) AVCaptureWhiteBalanceGains grayWorldDeviceWhiteBalanceGains API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1909
+
1910
+ /*!
1911
+ @property maxWhiteBalanceGain
1912
+ @abstract
1913
+ Indicates the maximum supported value to which a channel in the AVCaptureWhiteBalanceGains may be set.
1914
+
1915
+ @discussion
1916
+ This property does not change for the life of the receiver.
1917
+ */
1918
+ @property(nonatomic, readonly) float maxWhiteBalanceGain API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1919
+
1920
+ /*!
1921
+ @constant AVCaptureWhiteBalanceGainsCurrent
1922
+ A special value that may be passed as a parameter of setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler: to indicate that the caller does not wish to specify a value for deviceWhiteBalanceGains, and that gains should instead be locked at their value at the moment that white balance is locked.
1923
+ */
1924
+ AVF_EXPORT const AVCaptureWhiteBalanceGains AVCaptureWhiteBalanceGainsCurrent API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1925
+
1926
+ /// Sets white balance to locked mode with explicit temperature and tint values.
1927
+ ///
1928
+ /// - Parameter whiteBalanceTemperatureAndTintValues: The white balance temperature and tint values, as computed from ``temperatureAndTintValuesForDeviceWhiteBalanceGains:`` method, ``AVCaptureWhiteBalanceTemperatureAndTintValues`` presets or manual input.
1929
+ ///
1930
+ /// - Parameter handler: A block to be called when white balance values have been set to the values specified and ``whiteBalanceMode`` is set to ``AVCaptureWhiteBalanceModeLocked``. If ``setWhiteBalanceModeLockedWithDeviceWhiteBalanceTemperatureAndTintValues:completionHandler:`` is called multiple times, the completion handlers are called in FIFO order. The block receives a timestamp which matches that of the first buffer to which all settings have been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the ``AVCaptureSession/synchronizationClock`` prior to comparison with the timestamps of buffers delivered via an ``AVCaptureVideoDataOutput``. This parameter may be `nil` if synchronization is not required.
1931
+ ///
1932
+ /// This method takes a ``AVCaptureWhiteBalanceTemperatureAndTintValues`` struct and applies the appropriate ``AVCaptureWhiteBalanceGains``. This method throws an `NSRangeException` if any of the values are set to an unsupported level. This method throws an `NSGenericException` if called without first obtaining exclusive access to the device using ``AVCaptureDevice/lockForConfiguration:``.
1933
+ - (void)setWhiteBalanceModeLockedWithDeviceWhiteBalanceTemperatureAndTintValues:(AVCaptureWhiteBalanceTemperatureAndTintValues)whiteBalanceTemperatureAndTintValues completionHandler:(nullable void (^)(CMTime syncTime))handler NS_SWIFT_NAME(setWhiteBalanceModeLocked(whiteBalanceTemperatureAndTintValues:handler:)) API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
1934
+
1935
+ /*!
1936
+ @method setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:
1937
+ @abstract
1938
+ Sets white balance to locked mode with explicit deviceWhiteBalanceGains values.
1939
+
1940
+ @param whiteBalanceGains
1941
+ The white balance gain values, as described in the documentation for the deviceWhiteBalanceGains property. A value of AVCaptureWhiteBalanceGainsCurrent can be used to indicate that the caller does not wish to specify a value for deviceWhiteBalanceGains.
1942
+ @param handler
1943
+ A block to be called when white balance gains have been set to the values specified and whiteBalanceMode is set to AVCaptureWhiteBalanceModeLocked. If setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler: is called multiple times, the completion handlers will be called in FIFO order. The block receives a timestamp which matches that of the first buffer to which all settings have been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the `AVCaptureSession/synchronizationClock` prior to comparison with the timestamps of buffers delivered via an AVCaptureVideoDataOutput. This parameter may be nil if synchronization is not required.
1944
+
1945
+ @discussion
1946
+ Gain values are normalized to the minimum channel value to avoid brightness changes (e.g. R:2 G:2 B:4 will be normalized to R:1 G:1 B:2). For each channel in the whiteBalanceGains struct, only values between 1.0 and maxWhiteBalanceGain after nomalization are supported. This method throws an NSRangeException if any of the whiteBalanceGains are set to an unsupported level. This method throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
1947
+ */
1948
+ - (void)setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:(AVCaptureWhiteBalanceGains)whiteBalanceGains completionHandler:(nullable void (^)(CMTime syncTime))handler API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1949
+
1950
+ /*!
1951
+ @method chromaticityValuesForDeviceWhiteBalanceGains:
1952
+ @abstract
1953
+ Converts device-specific white balance RGB gain values to device-independent chromaticity values.
1954
+
1955
+ @param whiteBalanceGains
1956
+ White balance gain values, as described in the documentation for the deviceWhiteBalanceGains property. A value of AVCaptureWhiteBalanceGainsCurrent may not be used in this function.
1957
+ @result
1958
+ A fully populated AVCaptureWhiteBalanceChromaticityValues structure containing device-independent values.
1959
+
1960
+ @discussion
1961
+ This method may be called on the receiver to convert device-specific white balance RGB gain values to device-independent chromaticity (little x, little y) values. For each channel in the whiteBalanceGains struct, only values between 1.0 and -maxWhiteBalanceGain are supported. This method throws an NSRangeException if any of the whiteBalanceGains are set to unsupported values.
1962
+ */
1963
+ - (AVCaptureWhiteBalanceChromaticityValues)chromaticityValuesForDeviceWhiteBalanceGains:(AVCaptureWhiteBalanceGains)whiteBalanceGains API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1964
+
1965
+ /*!
1966
+ @method deviceWhiteBalanceGainsForChromaticityValues:
1967
+ @abstract
1968
+ Converts device-independent chromaticity values to device-specific white balance RGB gain values.
1969
+
1970
+ @param chromaticityValues
1971
+ Little x, little y chromaticity values as described in the documentation for AVCaptureWhiteBalanceChromaticityValues.
1972
+ @result
1973
+ A fully populated AVCaptureWhiteBalanceGains structure containing device-specific RGB gain values.
1974
+
1975
+ @discussion
1976
+ This method may be called on the receiver to convert device-independent chromaticity values to device-specific RGB white balance gain values. This method throws an NSRangeException if any of the chromaticityValues are set outside the range [0,1]. Note that some x,y combinations yield out-of-range device RGB values that will cause an exception to be thrown if passed directly to -setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:. Be sure to check that red, green, and blue gain values are within the range of [1.0 - maxWhiteBalanceGain].
1977
+ */
1978
+ - (AVCaptureWhiteBalanceGains)deviceWhiteBalanceGainsForChromaticityValues:(AVCaptureWhiteBalanceChromaticityValues)chromaticityValues API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1979
+
1980
+ /*!
1981
+ @method temperatureAndTintValuesForDeviceWhiteBalanceGains:
1982
+ @abstract
1983
+ Converts device-specific white balance RGB gain values to device-independent temperature and tint values.
1984
+
1985
+ @param whiteBalanceGains
1986
+ White balance gain values, as described in the documentation for the deviceWhiteBalanceGains property. A value of AVCaptureWhiteBalanceGainsCurrent may not be used in this function.
1987
+ @result
1988
+ A fully populated AVCaptureWhiteBalanceTemperatureAndTintValues structure containing device-independent values.
1989
+
1990
+ @discussion
1991
+ This method may be called on the receiver to convert device-specific white balance RGB gain values to device-independent temperature (in kelvin) and tint values. For each channel in the whiteBalanceGains struct, only values between 1.0 and -maxWhiteBalanceGain are supported. This method throws an NSRangeException if any of the whiteBalanceGains are set to unsupported values.
1992
+ */
1993
+ - (AVCaptureWhiteBalanceTemperatureAndTintValues)temperatureAndTintValuesForDeviceWhiteBalanceGains:(AVCaptureWhiteBalanceGains)whiteBalanceGains API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
1994
+
1995
+ /*!
1996
+ @method deviceWhiteBalanceGainsForTemperatureAndTintValues:
1997
+ @abstract
1998
+ Converts device-independent temperature and tint values to device-specific white balance RGB gain values.
1999
+
2000
+ @param tempAndTintValues
2001
+ Temperature and tint values as described in the documentation for AVCaptureWhiteBalanceTemperatureAndTintValues.
2002
+ @result
2003
+ A fully populated AVCaptureWhiteBalanceGains structure containing device-specific RGB gain values.
2004
+
2005
+ @discussion
2006
+ This method may be called on the receiver to convert device-independent temperature and tint values to device-specific RGB white balance gain values. You may pass any temperature and tint values and corresponding white balance gains will be produced. Note though that some temperature and tint combinations yield out-of-range device RGB values that will cause an exception to be thrown if passed directly to -setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:. Be sure to check that red, green, and blue gain values are within the range of [1.0 - maxWhiteBalanceGain].
2007
+ */
2008
+ - (AVCaptureWhiteBalanceGains)deviceWhiteBalanceGainsForTemperatureAndTintValues:(AVCaptureWhiteBalanceTemperatureAndTintValues)tempAndTintValues API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2009
+
2010
+ @end
2011
+
2012
+
2013
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2014
+ @interface AVCaptureDevice (AVCaptureDeviceSubjectAreaChangeMonitoring)
2015
+
2016
+ /*!
2017
+ @property subjectAreaChangeMonitoringEnabled
2018
+ @abstract
2019
+ Indicates whether the receiver should monitor the subject area for changes.
2020
+
2021
+ @discussion
2022
+ The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2023
+ */
2024
+ @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2025
+
2026
+ @end
2027
+
2028
+
2029
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2030
+ @interface AVCaptureDevice (AVCaptureDeviceLowLightBoost)
2031
+
2032
+ /*!
2033
+ @property lowLightBoostSupported
2034
+ @abstract
2035
+ Indicates whether the receiver supports boosting images in low light conditions.
2036
+
2037
+ @discussion
2038
+ The receiver's automaticallyEnablesLowLightBoostWhenAvailable property can only be set if this property returns YES.
2039
+ */
2040
+ @property(nonatomic, readonly, getter=isLowLightBoostSupported) BOOL lowLightBoostSupported API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2041
+
2042
+ /*!
2043
+ @property lowLightBoostEnabled
2044
+ @abstract
2045
+ Indicates whether the receiver's low light boost feature is enabled.
2046
+
2047
+ @discussion
2048
+ The value of this property is a BOOL indicating whether the receiver is currently enhancing images to improve quality due to low light conditions. When -isLowLightBoostEnabled returns YES, the receiver has switched into a special mode in which more light can be perceived in images. This property is key-value observable.
2049
+ */
2050
+ @property(nonatomic, readonly, getter=isLowLightBoostEnabled) BOOL lowLightBoostEnabled API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2051
+
2052
+ /*!
2053
+ @property automaticallyEnablesLowLightBoostWhenAvailable
2054
+ @abstract
2055
+ Indicates whether the receiver should automatically switch to low light boost mode when necessary.
2056
+
2057
+ @discussion
2058
+ On a receiver where -isLowLightBoostSupported returns YES, a special low light boost mode may be engaged to improve image quality. When the automaticallyEnablesLowLightBoostWhenAvailable property is set to YES, the receiver switches at its discretion to a special boost mode under low light, and back to normal operation when the scene becomes sufficiently lit. An AVCaptureDevice that supports this feature may only engage boost mode for certain source formats or resolutions. Clients may observe changes to the lowLightBoostEnabled property to know when the mode has engaged. The switch between normal operation and low light boost mode may drop one or more video frames. The default value is NO. Setting this property throws an NSInvalidArgumentException if -isLowLightBoostSupported returns NO. The receiver must be locked for configuration using lockForConfiguration: before clients can set this method, otherwise an NSGenericException is thrown.
2059
+ */
2060
+ @property(nonatomic) BOOL automaticallyEnablesLowLightBoostWhenAvailable API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2061
+
2062
+ @end
2063
+
2064
+
2065
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2066
+ @interface AVCaptureDevice (AVCaptureDeviceVideoZoom)
2067
+
2068
+ /*!
2069
+ @property videoZoomFactor
2070
+ @abstract
2071
+ Controls zoom level of image outputs
2072
+
2073
+ @discussion
2074
+ Applies a centered crop for all image outputs, scaling as necessary to maintain output dimensions. Minimum value of 1.0 yields full field of view, increasing values will increase magnification, up to a maximum value specified in the activeFormat's videoMaxZoomFactor property. Modifying the zoom factor will cancel any active rampToVideoZoomFactor:withRate:, and snap directly to the assigned value. Assigning values outside the acceptable range will generate an NSRangeException. Clients can key value observe the value of this property. When depth data delivery is enabled, changing the zoom factor sets the videoZoomFactor to the nearest supportedVideoZoomFactor from -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery] with a disruptive reconfiguration of the capture render pipeline.
2075
+
2076
+ -setVideoZoomFactor: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2077
+
2078
+ @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor], -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2079
+ */
2080
+ @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2081
+
2082
+ /*!
2083
+ @method rampToVideoZoomFactor:withRate:
2084
+ @abstract
2085
+ Provides smooth changes in zoom factor.
2086
+
2087
+ @discussion
2088
+ This method provides a change in zoom by compounding magnification at the specified rate over time. Although the zoom factor will grow exponentially, this yields a visually linear zoom in the image over time.
2089
+
2090
+ The zoom transition will stop at the specified factor, which must be in the valid range for videoZoomFactor. Assignments to videoZoomFactor while a ramp is in progress will cancel the ramp and snap to the assigned value.
2091
+
2092
+ The zoom factor is continuously scaled by pow(2,rate * time). A rate of 0 causes no change in zoom factor, equivalent to calling cancelVideoZoomRamp. A rate of 1 will cause the magnification to double every second (or halve every second if zooming out), and similarly larger or smaller values will zoom faster or slower respectively. Only the absolute value of the rate is significant--sign is corrected for the direction of the target. Changes in rate will be smoothed by an internal acceleration limit.
2093
+
2094
+ When depth data delivery is enabled, -rampToVideoZoomFactor:withRate: sets the videoZoomFactor to the nearest supportedVideoZoomFactor from -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery] with a disruptive reconfiguration of the capture render pipeline.
2095
+
2096
+ -rampToVideoZoomFactor:withRate: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2097
+ */
2098
+ - (void)rampToVideoZoomFactor:(CGFloat)factor withRate:(float)rate API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2099
+
2100
+ /*!
2101
+ @property rampingVideoZoom
2102
+ @abstract
2103
+ Indicates if the zoom factor is transitioning to a value set by rampToVideoZoomFactor:withRate:
2104
+
2105
+ @discussion
2106
+ Clients can observe this value to determine when a ramp begins or completes.
2107
+ */
2108
+ @property(nonatomic, readonly, getter=isRampingVideoZoom) BOOL rampingVideoZoom API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2109
+
2110
+ /*!
2111
+ @method cancelVideoZoomRamp
2112
+ @abstract
2113
+ Eases out of any video zoom transitions initiated by rampToVideoZoomFactor:withRate:
2114
+
2115
+ @discussion
2116
+ This method is equivalent to calling rampToVideoZoomFactor:withRate: using the current zoom factor target and a rate of 0. This allows a smooth stop to any changes in zoom which were in progress.
2117
+
2118
+ -cancelVideoZoomRamp: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2119
+ */
2120
+ - (void)cancelVideoZoomRamp API_AVAILABLE(ios(7.0), macCatalyst(14.0)) API_UNAVAILABLE(macos, visionos);
2121
+
2122
+ /*!
2123
+ @property dualCameraSwitchOverVideoZoomFactor
2124
+ @abstract
2125
+ The video zoom factor at or above which a DualCamera can select between its wide angle camera and its telephoto camera.
2126
+
2127
+ @discussion
2128
+ This is the zoom factor at which the wide angle camera's field of view matches telephoto camera's full field of view. On non-DualCamera devices this will return 1.0. As of iOS 13.0, this API has been deprecated in favor of virtualDeviceSwitchOverVideoZoomFactors.
2129
+ */
2130
+ @property(atomic, readonly) CGFloat dualCameraSwitchOverVideoZoomFactor API_DEPRECATED_WITH_REPLACEMENT("virtualDeviceSwitchOverVideoZoomFactors", ios(11.0, 13.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
2131
+
2132
+ /*!
2133
+ @property displayVideoZoomFactorMultiplier
2134
+ @abstract
2135
+ A multiplier that can be used with the receiver's videoZoomFactor property for displaying a video zoom factor in a user interface.
2136
+
2137
+ @discussion
2138
+ In some system user interfaces, like the macOS Video Effects Menu, the video zoom factor value is displayed in a way most appropriate for visual representation and might differ from the videoZoomFactor property value on the receiver by a fixed ratio. For example, if the videoZoomFactor property value is 1.0 and the displayVideoZoomFactorMultiplier property value is 0.5, then multiplying 1.0 and 0.5 produces 0.5 which can be displayed in the UI. Client applications can key value observe this property to update the display video zoom factor values in their UI to stay consistent with Apple's system UIs.
2139
+ */
2140
+ @property(nonatomic, readonly) CGFloat displayVideoZoomFactorMultiplier API_AVAILABLE(macos(14.0), ios(18.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(watchos, visionos);
2141
+
2142
+ @end
2143
+
2144
+
2145
+ /*!
2146
+ @enum AVAuthorizationStatus
2147
+ @abstract
2148
+ Constants indicating the client's authorization to the underlying hardware supporting a media type.
2149
+
2150
+ @constant AVAuthorizationStatusNotDetermined
2151
+ Indicates that the user has not yet made a choice regarding whether the client can access the hardware.
2152
+ @constant AVAuthorizationStatusRestricted
2153
+ The client is not authorized to access the hardware for the media type. The user cannot change the client's status, possibly due to active restrictions such as parental controls being in place.
2154
+ @constant AVAuthorizationStatusDenied
2155
+ The user explicitly denied access to the hardware supporting a media type for the client.
2156
+ @constant AVAuthorizationStatusAuthorized
2157
+ The client is authorized to access the hardware supporting a media type.
2158
+ */
2159
+ typedef NS_ENUM(NSInteger, AVAuthorizationStatus) {
2160
+ AVAuthorizationStatusNotDetermined = 0,
2161
+ AVAuthorizationStatusRestricted = 1,
2162
+ AVAuthorizationStatusDenied = 2,
2163
+ AVAuthorizationStatusAuthorized = 3,
2164
+ } API_AVAILABLE(macos(10.14), ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
2165
+
2166
+
2167
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
2168
+ @interface AVCaptureDevice (AVCaptureDeviceAuthorization)
2169
+
2170
+ /*!
2171
+ @method authorizationStatusForMediaType:
2172
+ @abstract
2173
+ Returns the client's authorization status for accessing the underlying hardware that supports a given media type.
2174
+
2175
+ @param mediaType
2176
+ The media type, either AVMediaTypeVideo or AVMediaTypeAudio
2177
+ @result
2178
+ The authorization status of the client
2179
+
2180
+ @discussion
2181
+ This method returns the AVAuthorizationStatus of the client for accessing the underlying hardware supporting the media type. Media type constants are defined in AVMediaFormat.h. If any media type other than AVMediaTypeVideo or AVMediaTypeAudio is supplied, an NSInvalidArgumentException will be thrown. If the status is AVAuthorizationStatusNotDetermined, you may use the +requestAccessForMediaType:completionHandler: method to request access by prompting the user.
2182
+ */
2183
+ + (AVAuthorizationStatus)authorizationStatusForMediaType:(AVMediaType)mediaType API_AVAILABLE(macos(10.14), ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0));
2184
+
2185
+ /*!
2186
+ @method requestAccessForMediaType:completionHandler:
2187
+ @abstract
2188
+ Requests access to the underlying hardware for the media type, showing a dialog to the user if necessary.
2189
+
2190
+ @param mediaType
2191
+ The media type, either AVMediaTypeVideo or AVMediaTypeAudio
2192
+ @param handler
2193
+ A block called with the result of requesting access
2194
+
2195
+ @discussion
2196
+ Use this function to request access to the hardware for a given media type. Media type constants are defined in AVMediaFormat.h. If any media type other than AVMediaTypeVideo or AVMediaTypeAudio is supplied, an NSInvalidArgumentException will be thrown.
2197
+
2198
+ This call will not block while the user is being asked for access, allowing the client to continue running. Until access has been granted, any AVCaptureDevices for the media type will vend silent audio samples or black video frames. The user is only asked for permission the first time the client requests access. Later calls use the permission granted by the user.
2199
+
2200
+ Note that the authorization dialog will automatically be shown if the status is AVAuthorizationStatusNotDetermined when creating an AVCaptureDeviceInput.
2201
+
2202
+ Invoking this method with AVMediaTypeAudio is equivalent to calling -[AVAudioSession requestRecordPermission:].
2203
+
2204
+ The completion handler is called on an arbitrary dispatch queue. It is the client's responsibility to ensure that any UIKit-related updates are called on the main queue or main thread as a result.
2205
+ */
2206
+ + (void)requestAccessForMediaType:(AVMediaType)mediaType completionHandler:(void (^)(BOOL granted))handler API_AVAILABLE(macos(10.14), ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0));
2207
+
2208
+ @end
2209
+
2210
+
2211
+ /*!
2212
+ @typedef
2213
+ @abstract
2214
+ A constant that is used to specify the transport controls' speed.
2215
+ */
2216
+ typedef float AVCaptureDeviceTransportControlsSpeed API_AVAILABLE(macos(10.7)) API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
2217
+
2218
+
2219
+ /*!
2220
+ @enum AVCaptureDeviceTransportControlsPlaybackMode
2221
+ @abstract
2222
+ Constants indicating the transport controls' current mode of play back, if it has one.
2223
+
2224
+ @constant AVCaptureDeviceTransportControlsNotPlayingMode
2225
+ Indicates that the tape transport is not threaded through the play head.
2226
+ @constant AVCaptureDeviceTransportControlsPlayingMode
2227
+ Indicates that the tape transport is threaded through the play head.
2228
+ */
2229
+ typedef NS_ENUM(NSInteger, AVCaptureDeviceTransportControlsPlaybackMode) {
2230
+ AVCaptureDeviceTransportControlsNotPlayingMode = 0,
2231
+ AVCaptureDeviceTransportControlsPlayingMode = 1,
2232
+ } API_AVAILABLE(macos(10.7)) API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
2233
+
2234
+
2235
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2236
+ @interface AVCaptureDevice (AVCaptureDeviceTransportControls)
2237
+
2238
+ /*!
2239
+ @property transportControlsSupported
2240
+ @abstract
2241
+ Returns whether the receiver supports transport control commands.
2242
+
2243
+ @discussion
2244
+ For devices with transport controls, such as AVC tape-based camcorders or pro capture devices with RS422 deck control, the value of this property is YES. If transport controls are not supported, none of the associated transport control methods and properties are available on the receiver.
2245
+ */
2246
+ @property(nonatomic, readonly) BOOL transportControlsSupported API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
2247
+
2248
+ /*!
2249
+ @property transportControlsPlaybackMode
2250
+ @abstract
2251
+ Returns the receiver's current playback mode.
2252
+
2253
+ @discussion
2254
+ For devices that support transport control, this property may be queried to discover the current playback mode.
2255
+ */
2256
+ @property(nonatomic, readonly) AVCaptureDeviceTransportControlsPlaybackMode transportControlsPlaybackMode API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
2257
+
2258
+ /*!
2259
+ @property transportControlsSpeed
2260
+ @abstract
2261
+ Returns the receiver's current playback speed as a floating point value.
2262
+
2263
+ @discussion
2264
+ For devices that support transport control, this property may be queried to discover the current playback speed of the deck.
2265
+ 0.0 -> stopped.
2266
+ 1.0 -> forward at normal speed.
2267
+ -1.0-> reverse at normal speed.
2268
+ 2.0 -> forward at 2x normal speed.
2269
+ etc.
2270
+ */
2271
+ @property(nonatomic, readonly) AVCaptureDeviceTransportControlsSpeed transportControlsSpeed API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
2272
+
2273
+ /*!
2274
+ @method setTransportControlsPlaybackMode:speed:
2275
+ @abstract
2276
+ Sets both the transport controls playback mode and speed in a single method.
2277
+
2278
+ @param mode
2279
+ A AVCaptureDeviceTransportControlsPlaybackMode indicating whether the deck should be put into play mode.
2280
+ @param speed
2281
+ A AVCaptureDeviceTransportControlsSpeed indicating the speed at which to wind or play the tape.
2282
+
2283
+ @discussion
2284
+ A method for setting the receiver's transport controls playback mode and speed. The receiver must be locked for configuration using lockForConfiguration: before clients can set this method, otherwise an NSGenericException is thrown.
2285
+ */
2286
+ - (void)setTransportControlsPlaybackMode:(AVCaptureDeviceTransportControlsPlaybackMode)mode speed:(AVCaptureDeviceTransportControlsSpeed)speed API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
2287
+
2288
+ @end
2289
+
2290
+
2291
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2292
+ @interface AVCaptureDevice (AVCaptureDeviceHighDynamicRangeSupport)
2293
+
2294
+ /*!
2295
+ @property automaticallyAdjustsVideoHDREnabled
2296
+ @abstract
2297
+ Indicates whether the receiver is allowed to turn high dynamic range streaming on or off.
2298
+
2299
+ @discussion
2300
+ The value of this property is a BOOL indicating whether the receiver is free to turn high dynamic range streaming on or off. This property defaults to YES. When automaticallyAdjustsVideoHDREnabled, the AVCaptureDevice turns videoHDR on automatically if it's a good fit for the activeFormat. -setAutomaticallyAdjustsVideoHDREnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. Clients can key-value observe videoHDREnabled to know when the receiver has automatically changed the value.
2301
+ */
2302
+ @property(nonatomic) BOOL automaticallyAdjustsVideoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2303
+
2304
+ /*!
2305
+ @property videoHDREnabled
2306
+ @abstract
2307
+ Indicates whether the receiver's streaming high dynamic range feature is enabled. See AVCaptureDeviceFormat.isVideoHDRSupported.
2308
+
2309
+ @discussion
2310
+ The value of this property is a BOOL indicating whether the receiver is currently streaming high dynamic range video buffers, also known as Extended Dynamic Range (EDR). The value of this property is ignored when device.activeColorSpace is HLG BT2020 color space since HDR is effectively always on and can't be disabled. The property may only be set if you first set automaticallyAdjustsVideoHDREnabled to NO, otherwise an NSGenericException is thrown. videoHDREnabled may only be set to YES if the receiver's activeFormat.isVideoHDRSupported property returns YES, otherwise an NSGenericException is thrown. This property may be key-value observed.
2311
+
2312
+ Note that setting this property may cause a lengthy reconfiguration of the receiver, similar to setting a new active format or AVCaptureSession sessionPreset. If you are setting either the active format or the AVCaptureSession's sessionPreset AND this property, you should bracket these operations with [session beginConfiguration] and [session commitConfiguration] to minimize reconfiguration time.
2313
+ */
2314
+ @property(nonatomic, getter=isVideoHDREnabled) BOOL videoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2315
+
2316
+ @end
2317
+
2318
+ /// Constants indicating active or supported video color space.
2319
+ typedef NS_ENUM(NSInteger, AVCaptureColorSpace) {
2320
+ /// The sRGB color space ( https://www.w3.org/Graphics/Color/srgb ).
2321
+ AVCaptureColorSpace_sRGB = 0,
2322
+ /// The P3 D65 wide color space which uses Illuminant D65 as the white point.
2323
+ AVCaptureColorSpace_P3_D65 = 1,
2324
+ /// The BT2020 wide color space which uses Illuminant D65 as the white point and Hybrid Log-Gamma as the transfer function.
2325
+ AVCaptureColorSpace_HLG_BT2020 API_AVAILABLE(ios(14.1), macCatalyst(14.1), tvos(17.0)) API_UNAVAILABLE(macos, visionos) = 2,
2326
+ /// The Apple Log Color space, which uses BT2020 as the color primaries, and an Apple defined Log curve as a transfer function. When you set this as the active color space on an ``AVCaptureDevice``, any ``AVCapturePhotoOutput`` or ``AVCaptureStillImageOutput`` connected to the same ``AVCaptureDevice`` is made inactive (its ``AVCaptureConnection/active`` property returns `false`).
2327
+ AVCaptureColorSpace_AppleLog API_AVAILABLE(ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) = 3,
2328
+ /// The Apple Log 2 Color space, which uses Apple Gamut as the color primaries, and an Apple defined Log curve as a transfer function. When you set this as the active color space on an ``AVCaptureDevice``, any ``AVCapturePhotoOutput`` or ``AVCaptureStillImageOutput`` connected to the same ``AVCaptureDevice`` is made inactive (its ``AVCaptureConnection/active`` property returns `false`).
2329
+ AVCaptureColorSpace_AppleLog2 API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos) = 4,
2330
+ } API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2331
+
2332
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2333
+ @interface AVCaptureDevice (AVCaptureDeviceColorSpaceSupport)
2334
+
2335
+ /*!
2336
+ @property activeColorSpace
2337
+ @abstract
2338
+ Indicates the receiver's current active color space.
2339
+
2340
+ @discussion
2341
+ By default, an AVCaptureDevice attached to an AVCaptureSession is automatically configured for wide color by the AVCaptureSession (see AVCaptureSession automaticallyConfiguresCaptureDeviceForWideColor). You may also set the activeColorSpace manually. To prevent the AVCaptureSession from undoing your work, remember to set AVCaptureSession's automaticallyConfiguresCaptureDeviceForWideColor property to NO. Changing the receiver's activeColorSpace while the session is running requires a disruptive reconfiguration of the capture render pipeline. Movie captures in progress will be ended immediately; unfulfilled photo requests will be aborted; video preview will temporarily freeze. -setActiveColorSpace: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:.
2342
+ */
2343
+ @property(nonatomic) AVCaptureColorSpace activeColorSpace API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
2344
+
2345
+ @end
2346
+
2347
+
2348
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2349
+ @interface AVCaptureDevice (AVCaptureDeviceDepthSupport)
2350
+
2351
+ /*!
2352
+ @property activeDepthDataFormat
2353
+ @abstract
2354
+ The currently active depth data format of the receiver.
2355
+
2356
+ @discussion
2357
+ This property can be used to get or set the device's currently active depth data format. -setActiveDepthDataFormat: throws an NSInvalidArgumentException if set to a format not present in the activeFormat's -supportedDepthDataFormats array. -setActiveDepthDataFormat: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:. Clients can observe automatic changes to the receiver's activeDepthDataFormat by key value observing this property. On devices where depth data is not supported, this property returns nil.
2358
+
2359
+ The frame rate of depth data may not be set directly. Depth data frame rate is synchronized to the device's activeMin/MaxFrameDurations. It may match the device's current frame rate, or lower, if depth data cannot be produced fast enough for the active video frame rate.
2360
+
2361
+ Delivery of depth data to a AVCaptureDepthDataOutput may increase the system load, resulting in a reduced video frame rate for thermal sustainability.
2362
+ */
2363
+ @property(nonatomic, retain, nullable) AVCaptureDeviceFormat *activeDepthDataFormat API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2364
+
2365
+ /*!
2366
+ @property activeDepthDataMinFrameDuration
2367
+ @abstract
2368
+ A property indicating the receiver's current active minimum depth data frame duration (the reciprocal of its maximum depth data frame rate).
2369
+
2370
+ @discussion
2371
+ This property may be used to set an upper limit to the frame rate at which depth data is produced. Lowering the depth data frame rate typically lowers power consumption which will increase the time the camera can run before an elevated system pressure state is reached.
2372
+
2373
+ Setting this property to kCMTimeInvalid resets it to the active depth data format's default min frame duration. Setting this property to kCMTimePositiveInfinity results in a depth data frame rate of 0.
2374
+
2375
+ The activeDepthDataMinFrameDuration gets reset whenever either the active video format or the active depth data format changes.
2376
+
2377
+ -setActiveDepthDataMinFrameDuration: throws an NSRangeException if set to a value that is outside of the active depth data format's supported frame rate range.
2378
+ -setActiveDepthDataMinFrameDuration: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2379
+ */
2380
+ @property(nonatomic) CMTime activeDepthDataMinFrameDuration API_AVAILABLE(ios(12.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2381
+
2382
+ /*!
2383
+ @property minAvailableVideoZoomFactor
2384
+ @abstract
2385
+ Indicates the minimum zoom factor available for the AVCaptureDevice's videoZoomFactor property.
2386
+
2387
+ @discussion
2388
+ On non-virtual devices the minAvailableVideoZoomFactor is always 1.0. If the device's videoZoomFactor property is assigned a value smaller than 1.0, an NSRangeException is thrown.
2389
+ On a virtual device the minAvailableVideoZoomFactor can change when the device is delivering depth data to one or more outputs (see -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery]). When depth data delivery is enabled, allowed zoom factor values are governed by -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery] and this contains the absolute minimum zoom of all allowed zoom factors.
2390
+ Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391
+ */
2392
+ @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2393
+
2394
+ /*!
2395
+ @property maxAvailableVideoZoomFactor
2396
+ @abstract
2397
+ Indicates the maximum zoom factor available for the AVCaptureDevice's videoZoomFactor property.
2398
+
2399
+ @discussion
2400
+ On non-virtual devices the maxAvailableVideoZoomFactor is always equal to the activeFormat.videoMaxZoomFactor. If the device's videoZoomFactor property is assigned a value greater than activeFormat.videoMaxZoomFactor, an NSRangeException is thrown.
2401
+ On a virtual device the maxAvailableVideoZoomFactor can change when the device is delivering depth data to one or more outputs (see -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery]). When depth data delivery is enabled, allowed zoom factor values are governed by -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery] and this contains the absolute maximum zoom of all allowed zoom factors.
2402
+ Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2403
+ */
2404
+ @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
2405
+
2406
+ @end
2407
+
2408
+
2409
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2410
+ @interface AVCaptureDevice (AVCaptureDeviceGeometricDistortionCorrection)
2411
+
2412
+ /*!
2413
+ @property geometricDistortionCorrectionSupported
2414
+ @abstract
2415
+ Indicates that geometric distortion correction is supported by the receiver.
2416
+
2417
+ @discussion
2418
+ Some AVCaptureDevices benefit from geometric distortion correction (GDC), such as devices with a very wide field of view. GDC lessens the fisheye effect at the outer edge of the frame at the cost of losing a small amount of vertical and horizontal field of view. When GDC is enabled on the AVCaptureDevice (see geometricDistortionCorrectionEnabled), the corrected image is upscaled to the original image size when needed. With respect to the AVCaptureDevice.videoZoomFactor API, the full viewable field of view is always represented with a videoZoomFactor of 1.0. Thus, when GDC is enabled, the AVCaptureDevice.activeFormat's field of view at videoZoomFactor = 1.0 will be different than when GDC is disabled. The smaller field of view is reported through the activeFormat's geometricDistortionCorrectedVideoFieldOfView property. Beware though that RAW photo captures never have GDC applied, regardless of the value of AVCaptureDevice.geometricDistortionCorrectionEnabled.
2419
+ */
2420
+ @property(nonatomic, readonly, getter=isGeometricDistortionCorrectionSupported) BOOL geometricDistortionCorrectionSupported API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
2421
+
2422
+ /*!
2423
+ @property geometricDistortionCorrectionEnabled
2424
+ @abstract
2425
+ Indicates whether geometric distortion correction is enabled by the receiver.
2426
+
2427
+ @discussion
2428
+ Where supported, the default value is YES. The receiver must be locked for configuration using lockForConfiguration: before clients can set this method, otherwise an NSGenericException is thrown.
2429
+
2430
+ In the case of ProRes RAW, when geometricDistortionCorrectionEnabled is YES, GDC is applied to your outputs in different ways:
2431
+ - It is always applied to AVCaptureVideoPreviewLayer.
2432
+ - It is applied to AVCaptureVideoDataOutput only if deliversPreviewSizedOutputBuffers is set to YES.
2433
+ - It is never applied to AVCaptureMovieFileOutput.
2434
+
2435
+ When GDC is enabled, AVCaptureVideoDataOutput buffers contain GDC metadata attachments, and AVCaptureMovieFileOutput movies contain GDC metadata which an application supporting ProRes RAW can optionally apply at playback time using the ProRes RAW SDK. To learn more about the ProRes RAW SDK, refer to the Apple ProRes and ProRes RAW Authorized Products article at https://support.apple.com/en-us/118584.
2436
+ */
2437
+ @property(nonatomic, getter=isGeometricDistortionCorrectionEnabled) BOOL geometricDistortionCorrectionEnabled API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
2438
+
2439
+ @end
2440
+
2441
+
2442
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2443
+ @interface AVCaptureDevice (AVCaptureDeviceCalibration)
2444
+
2445
+ /*!
2446
+ @method extrinsicMatrixFromDevice:toDevice:
2447
+ @abstract
2448
+ An NSData containing the relative extrinsic matrix from one AVCaptureDevice to another.
2449
+ @param fromDevice
2450
+ The AVCaptureDevice to use as the source. Must be non nil or an NSInvalidArgumentException is thrown.
2451
+ @param toDevice
2452
+ The AVCaptureDevice to use as the destination. Must be non nil or an NSInvalidArgumentException is thrown.
2453
+
2454
+ @discussion
2455
+ The extrinsic matrix consists of a unitless 3x3 rotation matrix (R) on the left and a translation (t) 3x1 column vector on the right. The translation vector's units are millimeters. The extrinsics of the "toDevice" camera are expressed with respect to a reference camera "fromDevice". If X_from is a 3D point in "fromCamera"'s coordinate system, then it can be projected into "toCamera"'s coordinate system with X_to = [R | t] * X_from. Note that a matrix_float4x3 matrix is column major with 3 rows and 4 columns. The extrinsicMatrix is only provided for physical cameras for which factory calibrations exist. Virtual device cameras return nil.
2456
+ / \
2457
+ / \ | r1,1 r1,2 r1,3 | t1 |
2458
+ |R|t| = | r2,1 r2,2 r2,3 | t2 |
2459
+ \ / | r3,1 r3,2 r3,3 | t3 |
2460
+ \ /
2461
+
2462
+ Note that if you enable video stabilization (see AVCaptureConnection.preferredVideoStabilizationMode), the pixels in stabilized video frames no longer match the relative extrinsicMatrix from one device to another due to warping. The extrinsicMatrix and camera intrinsics should only be used when video stabilization is disabled.
2463
+ */
2464
+ + (nullable NSData *)extrinsicMatrixFromDevice:(AVCaptureDevice *)fromDevice toDevice:(AVCaptureDevice *)toDevice API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
2465
+
2466
+ @end
2467
+
2468
+
2469
+ API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2470
+ @interface AVCaptureDevice (AVCaptureDeviceCenterStage)
2471
+
2472
+ /*!
2473
+ @enum AVCaptureCenterStageControlMode
2474
+ @abstract
2475
+ Constants indicating the current Center Stage control mode.
2476
+
2477
+ @constant AVCaptureCenterStageControlModeUser
2478
+ Indicates that the application is unaware of the Center Stage feature. Its enablement is entirely under user control in Control Center.
2479
+ @constant AVCaptureCenterStageControlModeApp
2480
+ Indicates that the application controls the Center Stage feature, disallowing input from the user in Control Center.
2481
+ @constant AVCaptureCenterStageControlModeCooperative
2482
+ Indicates that both the user and application cooperatively share control of the Center Stage feature.
2483
+ */
2484
+ typedef NS_ENUM(NSInteger, AVCaptureCenterStageControlMode) {
2485
+ AVCaptureCenterStageControlModeUser = 0,
2486
+ AVCaptureCenterStageControlModeApp = 1,
2487
+ AVCaptureCenterStageControlModeCooperative = 2,
2488
+ } API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2489
+
2490
+ /*!
2491
+ @property centerStageControlMode
2492
+ @abstract
2493
+ A class property indicating the current mode of Center Stage control (user, app, or cooperative).
2494
+
2495
+ @discussion
2496
+ This class property determines how the Center Stage feature is controlled. When set to the default value of AVCaptureCenterStageControlModeUser, centerStageEnabled may not be set programmatically and throws an NSInvalidArgumentException. In User mode, the feature may only be set by the user in Control Center. If you wish to take Center Stage control away from the user and exclusively enable / disable it programmatically, set this property to AVCaptureCenterStageControlModeApp. When under exclusive app control, Center Stage user control is disallowed (for instance, the toggle is grayed out in Control Center). If you wish to take control of Center Stage, but also cooperate with the user by listening for and appropriately reacting to their changes to the centerStageEnabled property, set this property to AVCaptureCenterStageControlModeCooperative. Note that in this mode, the onus is on you, the app developer, to honor user intent and conform your AVCaptureSession configuration to make Center Stage active (see the AVCaptureDevice instance property centerStageActive). In cooperative mode, the centerStageEnabled property may change at any time (such as when the user enables / disables the feature in Control Center).
2497
+ */
2498
+ @property(class) AVCaptureCenterStageControlMode centerStageControlMode API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2499
+
2500
+ /*!
2501
+ @property centerStageEnabled
2502
+ @abstract
2503
+ A class property indicating whether the Center Stage feature is currently enabled or disabled (such as in Control Center or programmatically via your app).
2504
+
2505
+ @discussion
2506
+ This property may only be set if centerStageControlMode is AVCaptureCenterStageControlModeApp or AVCaptureCenterStageControlModeCooperative, and otherwise throws an NSInvalidArgumentException. When centerStageControlMode is AVCaptureCenterStageControlModeUser or AVCaptureCenterStageControlModeCooperative, this property may change according to user desire (such as enabling / disabling the feature in Control Center), so you should key-value observe it.
2507
+ */
2508
+ @property(class, getter=isCenterStageEnabled) BOOL centerStageEnabled API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2509
+
2510
+ /*!
2511
+ @property centerStageActive
2512
+ @abstract
2513
+ Indicates whether Center Stage is currently active on a particular AVCaptureDevice.
2514
+
2515
+ @discussion
2516
+ This readonly property returns YES when Center Stage is currently active on the receiver. When active, the camera automatically adjusts to keep people optimally framed within the field of view. The field of view may pan, tighten or widen as needed. Certain restrictions come into play when Center Stage is active:
2517
+ - The device's minAvailableVideoZoomFactor and maxAvailableVideoZoomFactor become restricted (see AVCaptureDeviceFormat's videoMinZoomFactorForCenterStage and videoMaxZoomFactorForCenterStage).
2518
+ - The device's activeVideoMinFrameDuration and activeVideoMaxFrameDuration are limited (see AVCaptureDeviceFormat's videoFrameRateRangeForCenterStage).
2519
+ Center Stage may be enabled via user control or application control, depending on the current +AVCaptureDevice.centerStageControlMode. When +AVCaptureDevice.centerStageEnabled is YES, a particular AVCaptureDevice instance may return YES for this property, depending whether it supports the feature in its current configuration. Some device features are mutually exclusive to Center Stage:
2520
+ - If depth data delivery is enabled on any output, such as AVCaptureDepthDataOutput, or -AVCapturePhotoOutput.depthDataDeliveryEnabled, Center Stage is deactivated.
2521
+ - If geometricDistortionCorrectionSupported is YES, geometricDistortionCorrectionEnabled must also be YES, or Center Stage is deactivated.
2522
+ This property is key-value observable.
2523
+ */
2524
+ @property(nonatomic, readonly, getter=isCenterStageActive) BOOL centerStageActive API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2525
+
2526
+ /*!
2527
+ @property centerStageRectOfInterestSupported
2528
+ @abstract
2529
+ Indicates whether the device supports the Center Stage Rect of Interest feature.
2530
+
2531
+ @discussion
2532
+ This property returns YES if the device supports Center Stage Rect of Interest.
2533
+ */
2534
+ @property(nonatomic, readonly, getter=isCenterStageRectOfInterestSupported) BOOL centerStageRectOfInterestSupported API_UNAVAILABLE(macos, ios, macCatalyst) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos);
2535
+
2536
+ /*!
2537
+ @property centerStageRectOfInterest
2538
+ @abstract
2539
+ Specifies the effective region within the output pixel buffer that will be used to perform Center Stage framing.
2540
+
2541
+ @discussion
2542
+ Applications that wish to apply additional processing (such as cropping) on top of Center Stage's output can use this property to guide Center Stage's framing.
2543
+
2544
+ The rectangle's origin is top left and is relative to the coordinate space of the output pixel buffer. The default value of this property is the value CGRectMake(0, 0, 1, 1), where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This rectangle of interest is applied prior to rotation, mirroring or scaling.
2545
+
2546
+ Pixels outside of this rectangle of interest will be blackened out.
2547
+
2548
+ Setting this property has no impact on objects specified in the metadata output.
2549
+
2550
+ -setCenterStageRectOfInterest: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. -setCenterStageRectOfInterest: throws an NSInvalidArgumentException if none of the AVCaptureDeviceFormats supported by the receiver support CenterStage. -setCenterStageRectOfInterest: throws an NSInvalidArgumentException if +centerStageEnabled is NO on the AVCaptureDevice class. -setCenterStageRectOfInterest: throws an NSInvalidArgumentException if the provided rectOfInterest goes outside the normalized (0-1) coordinate space.
2551
+ */
2552
+ @property(nonatomic) CGRect centerStageRectOfInterest API_AVAILABLE(macos(13.3), ios(16.4), macCatalyst(16.4)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos);
2553
+
2554
+ @end
2555
+
2556
+
2557
+ API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2558
+ @interface AVCaptureDevice (AVCaptureDevicePortraitEffect)
2559
+
2560
+ /*!
2561
+ @property portraitEffectEnabled
2562
+ @abstract
2563
+ A class property indicating whether the Portrait Effect feature is currently enabled in Control Center.
2564
+
2565
+ @discussion
2566
+ This property changes to reflect the Portrait Effect state in Control Center. It is key-value observable. On iOS, Portrait Effect only applies to video conferencing apps by default (apps that use "voip" as one of their UIBackgroundModes). Non video conferencing apps may opt in for the Portrait Effect by adding the following key to their Info.plist:
2567
+ <key>NSCameraPortraitEffectEnabled</key>
2568
+ <true/>
2569
+ */
2570
+ @property(class, readonly, getter=isPortraitEffectEnabled) BOOL portraitEffectEnabled API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2571
+
2572
+ /*!
2573
+ @property portraitEffectActive
2574
+ @abstract
2575
+ Indicates whether Portrait Effect is currently active for a particular AVCaptureDevice.
2576
+
2577
+ @discussion
2578
+ This readonly property returns YES when Portrait Effect is currently active on the receiver. When active, the device blurs the background, simulating a shallow depth of field effect. Certain restrictions come into play when Portrait Effect is active:
2579
+ - The device's activeVideoMinFrameDuration and activeVideoMaxFrameDuration are limited (see AVCaptureDeviceFormat's videoFrameRateRangeForPortraitEffect).
2580
+ Note that when +AVCaptureDevice.portraitEffectEnabled is YES, a particular AVCaptureDevice instance may return YES for this property, depending whether it supports the feature in its current configuration.
2581
+ This property is key-value observable.
2582
+ */
2583
+ @property(nonatomic, readonly, getter=isPortraitEffectActive) BOOL portraitEffectActive API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2584
+
2585
+ @end
2586
+
2587
+
2588
+ API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2589
+ @interface AVCaptureDevice (AVCaptureDeviceReactionEffects)
2590
+
2591
+ /*!
2592
+ @property reactionEffectsEnabled
2593
+ @abstract
2594
+ A class property indicating whether the application is suitable for reaction effects, either by automatic gesture detection, or by calls to -[AVCaptureDevice performEffectForReaction:]. Reactions are only rendered when the device's activeFormat.reactionEffectsSupported is also YES, which will be reflected by canPerformReactionEffects when the feature is both enabled and supported.
2595
+
2596
+ @discussion
2597
+ On macOS, Reaction Effects are enabled by default for all applications. On iOS, Reaction Effects are enabled by default for video conferencing applications (apps that use "voip" as one of their UIBackgroundModes). Non video conferencing applications may opt in for Reaction Effects by adding the following key to their Info.plist:
2598
+ <key>NSCameraReactionEffectsEnabled</key>
2599
+ <true/>
2600
+ */
2601
+ @property(class, readonly) BOOL reactionEffectsEnabled API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2602
+
2603
+ /*!
2604
+ @property reactionEffectGesturesEnabled
2605
+ @abstract
2606
+ A class property indicating whether gesture detection will trigger reaction effects on the video stream. Gesture detection will only run when the device's activeFormat.reactionEffectsSupported is also YES, which will be reflected by canPerformReactionEffects.
2607
+
2608
+ @discussion
2609
+ This property changes to reflect the Gestures state in Control Center. It is key-value observable. Clients can call performEffectForReaction: independently of whether gesture detection is enabled, reaction effects from either source will be intermixed.
2610
+ By default, gesture detection is enabled. As of iOS 17.4 and macOS 14.4, applications can control the default value of this property by adding the following key to their Info.plist:
2611
+ <key>NSCameraReactionEffectGesturesEnabledDefault</key>
2612
+ A value of true enables gesture detection and a value of false disables it, until such time that the user makes their own selection in Control Center.
2613
+ */
2614
+ @property(class, readonly) BOOL reactionEffectGesturesEnabled API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2615
+
2616
+ /*!
2617
+ @property canPerformReactionEffects
2618
+ @abstract
2619
+ Indicates whether reactions can be performed on a particular AVCaptureDevice. This requires reactionEffectsEnabled to be YES, as well as using a AVCaptureDeviceFormat with reactionEffectsSupported.
2620
+
2621
+ @discussion
2622
+ This readonly property returns YES when resources for reactions are available on the device instance. When YES, calls to performEffectForReaction: will render on the video feed, otherwise those calls are ignored. It is key-value observable.
2623
+ */
2624
+ @property(nonatomic, readonly) BOOL canPerformReactionEffects API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2625
+
2626
+ /*!
2627
+ @property availableReactionTypes
2628
+ @abstract
2629
+ Returns a list of reaction types which can be passed to performEffectForReaction.
2630
+
2631
+ @discussion
2632
+ The list may differ between devices, or be affected by changes to active format, and can be key-value observed.
2633
+ */
2634
+ @property(nonatomic, readonly) NSSet<AVCaptureReactionType> *availableReactionTypes API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2635
+
2636
+ /*!
2637
+ @method performEffectForReaction:
2638
+ @abstract
2639
+ Triggers a specified reaction on the video stream.
2640
+
2641
+ @param reactionType
2642
+ Indicates which reaction to perform.
2643
+
2644
+ @discussion
2645
+ The entries in reactionEffectsInProgress may not reflect one-to-one against calls to this method. Depending on reaction style or resource limits, triggering multiple overlapping reactions of the same type may be coalesced into extending an existing reaction rather than overlaying a new one.
2646
+
2647
+ The reactionType requested must be one of those listed in availableReactionTypes or an exception will be thrown. Performing a reaction when canPerformReactionEffects is NO is ignored, and VoIP applications are encouraged to transmit and display such reactions outside of the video feed.
2648
+ */
2649
+ - (void)performEffectForReaction:(AVCaptureReactionType)reactionType NS_SWIFT_NAME(performEffect(for:)) API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2650
+
2651
+ /*!
2652
+ @property reactionEffectsInProgress
2653
+ @abstract
2654
+ Contains an array of reaction effects that are currently being performed by the device, sorted by timestamp. If observing old and new values in the KVO callback, the reaction effects which are still running in the new array will have kCMTimeInvalid as their endTime property. Reaction effects which have ended will only be in the old array, and will have their endTime property set to the presentation time of the first frame where the reaction effect was no longer present.
2655
+
2656
+ @discussion
2657
+ Reaction effects which are triggered by either a call to performEffectForReaction: or by the automatic gesture detection will be reflected in this array. It is key-value observable to be notified when reaction effects begin or end.
2658
+ */
2659
+ @property(nonatomic, readonly) NSArray<AVCaptureReactionEffectState *> *reactionEffectsInProgress API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2660
+
2661
+ @end
2662
+
2663
+
2664
+ API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2665
+ @interface AVCaptureDevice (AVCaptureDeviceBackgroundReplacement)
2666
+
2667
+ /*!
2668
+ @property backgroundReplacementEnabled
2669
+ @abstract
2670
+ A class property indicating whether the user has enabled the Background Replacement feature for this application.
2671
+ */
2672
+ @property(class, readonly, getter=isBackgroundReplacementEnabled) BOOL backgroundReplacementEnabled API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2673
+
2674
+ /*!
2675
+ @property backgroundReplacementActive
2676
+ @abstract
2677
+ Indicates whether Background Replacement is currently active on a particular AVCaptureDevice.
2678
+
2679
+ @discussion
2680
+ This property is key-value observable.
2681
+ */
2682
+ @property(nonatomic, readonly, getter=isBackgroundReplacementActive) BOOL backgroundReplacementActive API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2683
+
2684
+ @end
2685
+
2686
+
2687
+ API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2688
+ @interface AVCaptureDevice (AVCaptureDeviceContinuityCamera)
2689
+
2690
+ /*!
2691
+ @property continuityCamera
2692
+ @abstract
2693
+ A property that reports YES if the receiver is a Continuity Camera.
2694
+
2695
+ @discussion
2696
+ Access this property to discover if the receiver is a Continuity Camera (external iPhone webcam).
2697
+ */
2698
+ @property(nonatomic, readonly, getter=isContinuityCamera) BOOL continuityCamera API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2699
+
2700
+ @end
2701
+
2702
+
2703
+ API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2704
+ @interface AVCaptureDevice (AVCaptureDeviceDeskViewCamera)
2705
+
2706
+ /*!
2707
+ @property companionDeskViewCamera
2708
+ @abstract
2709
+ A reference to the Desk View Camera that is associated with and derived from this camera.
2710
+
2711
+ @discussion
2712
+ The companionDeskViewCamera property allows you to discover if the receiver has a paired Desk View Camera which derives its desk framing from the receiver's ultra wide frame. In the presence of multiple Continuity Cameras, this property allows you to pair a particular Continuity Camera with its associated Desk View Camera.
2713
+ */
2714
+ @property(nonatomic, readonly, nullable) AVCaptureDevice *companionDeskViewCamera API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2715
+
2716
+ @end
2717
+
2718
+
2719
+ API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2720
+ @interface AVCaptureDevice (AVCaptureMicrophoneMode)
2721
+
2722
+ /*!
2723
+ @enum AVCaptureMicrophoneMode
2724
+ @abstract
2725
+ Constants describing microphone filtering modes.
2726
+
2727
+ @constant AVCaptureMicrophoneModeStandard
2728
+ Indicates that microphone audio is being processed with standard voice DSP.
2729
+ @constant AVCaptureMicrophoneModeWideSpectrum
2730
+ Indicates that microphone audio processing is minimized to capture all sounds in the room.
2731
+ @constant AVCaptureMicrophoneModeVoiceIsolation
2732
+ Indicates that microphone audio is being processed to isolate the voice and attenuate other signals.
2733
+ */
2734
+ typedef NS_ENUM(NSInteger, AVCaptureMicrophoneMode) {
2735
+ AVCaptureMicrophoneModeStandard = 0,
2736
+ AVCaptureMicrophoneModeWideSpectrum = 1,
2737
+ AVCaptureMicrophoneModeVoiceIsolation = 2,
2738
+ } NS_SWIFT_NAME(AVCaptureDevice.MicrophoneMode) API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2739
+
2740
+ /*!
2741
+ @property preferredMicrophoneMode
2742
+ @abstract
2743
+ Indicates the microphone mode that has been selected by the user in Control Center.
2744
+
2745
+ @discussion
2746
+ This readonly property returns the microphone mode selected by the user in Control Center. It is key-value observable.
2747
+ */
2748
+ @property(class, readonly) AVCaptureMicrophoneMode preferredMicrophoneMode API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2749
+
2750
+ /*!
2751
+ @property activeMicrophoneMode
2752
+ @abstract
2753
+ Indicates the currently active microphone mode.
2754
+
2755
+ @discussion
2756
+ This readonly property returns the currently active microphone mode, which may differ from the preferredMicrophoneMode if the application's active audio route does not support the preferred microphone mode. This property is key-value observable.
2757
+ */
2758
+ @property(class, readonly) AVCaptureMicrophoneMode activeMicrophoneMode API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2759
+
2760
+ @end
2761
+
2762
+
2763
+ API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2764
+ @interface AVCaptureDevice (AVCaptureSystemUserInterface)
2765
+
2766
+ /*!
2767
+ @enum AVCaptureSystemUserInterface
2768
+ @abstract
2769
+ Constants describing the system user interfaces available to +showSystemUserInterface:.
2770
+
2771
+ @constant AVCaptureSystemUserInterfaceVideoEffects
2772
+ Indicates the system UI for enabling / disabling video effects.
2773
+ @constant AVCaptureSystemUserInterfaceMicrophoneModes
2774
+ Indicates the system UI for selecting microphone modes.
2775
+ */
2776
+ typedef NS_ENUM(NSInteger, AVCaptureSystemUserInterface) {
2777
+ AVCaptureSystemUserInterfaceVideoEffects = 1,
2778
+ AVCaptureSystemUserInterfaceMicrophoneModes = 2,
2779
+ } NS_SWIFT_NAME(AVCaptureDevice.SystemUserInterface) API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2780
+
2781
+ /*!
2782
+ @method showSystemUserInterface:
2783
+ @abstract
2784
+ Displays the system's user interface for video effects or microphone modes.
2785
+
2786
+ @param systemUserInterface
2787
+ The system UI to show.
2788
+
2789
+ @discussion
2790
+ This method allows the calling application to prompt the user to make changes to Video Effects (such as Center Stage or the Portrait Effect) or Microphone Modes. It brings up the system user interface and deep links to the appropriate module. This method is non-blocking. After presenting the desired system user interface, control returns immediately to the application.
2791
+ */
2792
+ + (void)showSystemUserInterface:(AVCaptureSystemUserInterface)systemUserInterface NS_SWIFT_NAME(showSystemUserInterface(_:)) API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2793
+
2794
+ @end
2795
+
2796
+
2797
+ /*!
2798
+ @group AVSpatialCaptureDiscomfortReason string constants
2799
+
2800
+ @discussion
2801
+ The AVSpatialCaptureDiscomfortReason string constants are used to report the applicability of the current scene to create a comfortable viewing experience.
2802
+ */
2803
+ typedef NSString *AVSpatialCaptureDiscomfortReason NS_TYPED_ENUM API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2804
+
2805
+ /*!
2806
+ @constant AVSpatialCaptureDiscomfortReasonNotEnoughLight
2807
+ The lighting of the current scene is not bright enough; the playback experience will likely be uncomfortable due to noise differences between the two cameras.
2808
+ */
2809
+ AVF_EXPORT AVSpatialCaptureDiscomfortReason const AVSpatialCaptureDiscomfortReasonNotEnoughLight API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2810
+
2811
+ /*!
2812
+ @constant AVSpatialCaptureDiscomfortReasonSubjectTooClose
2813
+ The focus point of the current scene is too close; the playback experience will likely be uncomfortable due to the subject being closer than the minimum focus distance of one or both of the lenses.
2814
+ */
2815
+ AVF_EXPORT AVSpatialCaptureDiscomfortReason const AVSpatialCaptureDiscomfortReasonSubjectTooClose API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2816
+
2817
+
2818
+ @interface AVCaptureDevice (AVCaptureDeviceSpatialCapture)
2819
+
2820
+ /*!
2821
+ @property spatialCaptureDiscomfortReasons
2822
+ @abstract
2823
+ Indicates whether or not the current environmental conditions are amenable to a spatial capture that is comfortable to view.
2824
+
2825
+ @discussion
2826
+ This property can be monitored in order to determine the presentation of UI elements to inform the user that they should reframe their scene for a more pleasing spatial capture ("subject is too close", "scene is too dark").
2827
+ */
2828
+ @property(nonatomic, readonly) NSSet<AVSpatialCaptureDiscomfortReason> *spatialCaptureDiscomfortReasons API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2829
+ @end
2830
+
2831
+ /// An informative status about the scene observed by the device.
2832
+ ///
2833
+ /// Some features have certain requirements on the scene (lighting condition for Cinematic Video, for example) to produce optimal results; these ``AVCaptureSceneMonitoringStatus`` string constants are used to represent such scene statuses for a given feature.
2834
+ typedef NSString *AVCaptureSceneMonitoringStatus NS_TYPED_ENUM API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2835
+
2836
+ /// The light level of the current scene is insufficient for the current set of features to function optimally.
2837
+ AVF_EXPORT AVCaptureSceneMonitoringStatus const AVCaptureSceneMonitoringStatusNotEnoughLight API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2838
+
2839
+ API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2840
+ @interface AVCaptureDevice (AVCaptureDeviceCinematicVideoCapture)
2841
+
2842
+ /// The current scene monitoring statuses related to Cinematic Video capture.
2843
+ ///
2844
+ /// Monitor this property via key-value observation to present a UI informing the user that they should reframe their scene for a better Cinematic Video experience ("scene is too dark").
2845
+ @property(nonatomic, readonly) NSSet<AVCaptureSceneMonitoringStatus> *cinematicVideoCaptureSceneMonitoringStatuses;
2846
+
2847
+ @end
2848
+
2849
+ /// String constants describing the different video aspect ratios you can configure for a particular device.
2850
+ typedef NSString *AVCaptureAspectRatio NS_TYPED_ENUM NS_SWIFT_NAME(AVCaptureDevice.AspectRatio) API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2851
+
2852
+ /// An aspect ratio of 1x1.
2853
+ AVF_EXPORT AVCaptureAspectRatio const AVCaptureAspectRatio1x1 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2854
+
2855
+ /// An aspect ratio of 16x9.
2856
+ AVF_EXPORT AVCaptureAspectRatio const AVCaptureAspectRatio16x9 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2857
+
2858
+ /// An aspect ratio of 9x16.
2859
+ AVF_EXPORT AVCaptureAspectRatio const AVCaptureAspectRatio9x16 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2860
+
2861
+ /// An aspect ratio of 4x3.
2862
+ AVF_EXPORT AVCaptureAspectRatio const AVCaptureAspectRatio4x3 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2863
+
2864
+ /// An aspect ratio of 3x4.
2865
+ AVF_EXPORT AVCaptureAspectRatio const AVCaptureAspectRatio3x4 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2866
+
2867
+
2868
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos)
2869
+ @interface AVCaptureDevice (DynamicAspectRatio)
2870
+
2871
+ /// A key-value observable property indicating the current aspect ratio for a device.
2872
+ ///
2873
+ /// This property is initialized to the first ``AVCaptureAspectRatio`` listed in the device's activeFormat's ``AVCaptureDeviceFormat/supportedDynamicAspectRatios`` property. If the activeFormat's ``AVCaptureDeviceFormat/supportedDynamicAspectRatios`` is an empty array, this property returns nil.
2874
+ @property(readonly, nullable) AVCaptureAspectRatio dynamicAspectRatio;
2875
+
2876
+ /// A key-value observable property describing the output dimensions of the video buffer based on the device's dynamic aspect ratio.
2877
+ ///
2878
+ /// If the device's activeFormat's ``AVCaptureDeviceFormat/supportedDynamicAspectRatios`` is an empty array, this property returns {0,0}.
2879
+ @property(readonly) CMVideoDimensions dynamicDimensions;
2880
+
2881
+ /// Updates the dynamic aspect ratio of the device.
2882
+ ///
2883
+ /// - Parameter dynamicAspectRatio: The new ``AVCaptureAspectRatio`` the device should output.
2884
+ /// - Parameter handler: A block called by the device when `dynamicAspectRatio` is set to the value specified. If you call ``setDynamicAspectRatio:completionHandler:`` multiple times, the completion handlers are called in FIFO order. The block receives a timestamp which matches that of the first buffer to which all settings have been applied. Note that the timestamp is synchronized to the device clock, and thus must be converted to the ``AVCaptureSession/synchronizationClock`` prior to comparison with the timestamps of buffers delivered via an ``AVCaptureVideoDataOutput``. You may pass `nil` for the `handler` parameter if you do not need to know when the operation completes.
2885
+ ///
2886
+ /// This is the only way of setting ``dynamicAspectRatio``. This method throws an `NSInvalidArgumentException` if `dynamicAspectRatio` is not a supported aspect ratio found in the device's activeFormat's ``AVCaptureDeviceFormat/supportedDynamicAspectRatios``. This method throws an `NSGenericException` if you call it without first obtaining exclusive access to the device using ``AVCaptureDevice/lockForConfiguration:``.
2887
+ - (void)setDynamicAspectRatio:(AVCaptureAspectRatio)dynamicAspectRatio completionHandler:(nullable void (^)(CMTime syncTime, NSError * _Nullable error))handler;
2888
+
2889
+ @end
2890
+
2891
+ @class AVCaptureSmartFramingMonitor;
2892
+
2893
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos)
2894
+ @interface AVCaptureDevice (AVCaptureDeviceSmartFraming)
2895
+
2896
+ /// A monitor owned by the device that recommends an optimal framing based on the content in the scene.
2897
+ ///
2898
+ /// An ultra wide camera device that supports dynamic aspect ratio configuration may also support "smart framing monitoring". If this property returns non `nil`, you may use it to listen for framing recommendations by configuring its ``AVCaptureSmartFramingMonitor/enabledFramings`` and calling ``AVCaptureSmartFramingMonitor/startMonitoringWithError:``. The smart framing monitor only makes recommendations when the current ``AVCaptureDevice/activeFormat`` supports smart framing (see ``AVCaptureDeviceFormat/smartFramingSupported``).
2899
+ @property(nonatomic, readonly, nullable) AVCaptureSmartFramingMonitor *smartFramingMonitor;
2900
+
2901
+ @end
2902
+
2903
+ @class AVCaptureFraming;
2904
+
2905
+ /// An object associated with a capture device that monitors the scene and suggests an optimal framing.
2906
+ ///
2907
+ /// A smart framing monitor observes its associated device for objects of interest entering and exiting the camera's field of view and recommends an optimal framing for good photographic composition. This framing recommendation consists of an aspect ratio and zoom factor. You may respond to the device's framing recommendation by calling ``AVCaptureDevice/setDynamicAspectRatio:completionHandler:`` and setting ``AVCaptureDevice/videoZoomFactor`` on the associated device in whatever order best matches your animation between old and new framings.
2908
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos)
2909
+ @interface AVCaptureSmartFramingMonitor : NSObject
2910
+
2911
+ AV_INIT_UNAVAILABLE
2912
+
2913
+ /// An array of framings supported by the monitor in its current configuration.
2914
+ ///
2915
+ /// The monitor is capable of recommending any of the framings in this array. This property is key-value observable and may change as the target capture device's ``AVCaptureDevice/activeFormat`` property changes. This array contains the full set of framings supported by the monitor in the device's current configuration. You must tell the monitor which smart framings you are interested in having recommended to you by setting the ``enabledFramings`` property.
2916
+ @property(nonatomic, readonly) NSArray<AVCaptureFraming *> *supportedFramings;
2917
+
2918
+ /// An array of framings that the monitor is allowed to suggest.
2919
+ ///
2920
+ /// The monitor is capable of recommending any of the framings in the ``supportedFramings`` array. This property contains the subset of ``supportedFramings`` you would like to have recommended to you. You may set this property at any time while running your ``AVCaptureSession``. This property's default value is the empty array.
2921
+ @property(nonatomic, copy) NSArray<AVCaptureFraming *> *enabledFramings;
2922
+
2923
+ /// The latest recommended framing from the monitor.
2924
+ ///
2925
+ /// While your ``AVCaptureSession`` is running, the monitor continuously observes its device's scene to recommend the best framing. This recommended framing is always one of the values in ``enabledFramings``. This property may return `nil` if smart framing isn't supported for the device in its current configuration. Its default value is `nil`. This property is key-value observable, and when you observe a change, you may respond to the new recommendation by calling ``AVCaptureDevice/setDynamicAspectRatio:completionHandler:`` and setting ``AVCaptureDevice/videoZoomFactor`` on the associated device in whatever order best matches your animation between old and new framings.
2926
+ @property(nonatomic, readonly, nullable) AVCaptureFraming *recommendedFraming;
2927
+
2928
+ /// Begins monitoring the device's active scene and making framing recommendations.
2929
+ ///
2930
+ /// - Parameter outError: A pointer to an ``NSError`` indicating why ``startMonitoringWithError:`` failed, or to a `nil` ``NSError`` on success.
2931
+ /// - Returns: `true` if successful, `false` if monitoring could not be started.
2932
+ ///
2933
+ /// The monitor's ``recommendedFraming`` is `nil` when it is not actively running. Call this method to start monitoring. You may start monitoring before or after calling ``AVCaptureSession/startRunning``, and you may stop active monitoring without stopping the capture session by calling ``stopMonitoring`` at any time, but you must set ``enabledFramings`` before running your capture session so that the monitor is prepared for your desired framing recommendations. While the monitor is running, you may set ``enabledFramings`` at any time to change the framing choices the monitor should consider in its recommendations.
2934
+ - (BOOL)startMonitoringWithError:(NSError **)outError;
2935
+
2936
+ /// Stops monitoring the device's active scene and making framing recommendations.
2937
+ ///
2938
+ /// The monitor's ``recommendedFraming`` is `nil` when it is not actively running. Call this method to stop actively monitoring the scene and making framing recommendations. You may start monitoring before or after calling ``AVCaptureSession/startRunning``, and may stop active monitoring without stopping the capture session by calling ``stopMonitoring`` at any time.
2939
+ - (void)stopMonitoring;
2940
+
2941
+ /// Yes when the receiver is actively monitoring.
2942
+ ///
2943
+ /// See ``startMonitoringWithError:`` and ``stopMonitoring``.
2944
+ @property(nonatomic, readonly, getter=isMonitoring) BOOL monitoring;
2945
+
2946
+ @end
2947
+
2948
+ /// A framing, consisting of an aspect ratio and a zoom factor.
2949
+ ///
2950
+ /// An ``AVCaptureSmartFramingMonitor`` provides framing recommendations using this object.
2951
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos)
2952
+ @interface AVCaptureFraming : NSObject
2953
+
2954
+ AV_INIT_UNAVAILABLE
2955
+
2956
+ /// An aspect ratio.
2957
+ ///
2958
+ /// One of the enumerated aspect ratios suitable for use with the ``AVCaptureDevice`` dynamic aspect ratio APIs.
2959
+ @property(atomic, readonly) AVCaptureAspectRatio aspectRatio;
2960
+
2961
+ /// A zoom factor.
2962
+ ///
2963
+ /// Suitable for use with the ``AVCaptureDevice/videoZoomFactor`` property or ``AVCaptureDevice/rampToVideoZoomFactor:withRate:``.
2964
+ @property(atomic, readonly) float zoomFactor;
2965
+
2966
+ @end
2967
+
2968
+ @interface AVCaptureDevice (AVCaptureDeviceNominalFocalLengthIn35mmFilm)
2969
+
2970
+ /// The nominal 35mm equivalent focal length of the capture device's lens.
2971
+ ///
2972
+ /// This value represents a nominal measurement of the device's field of view, expressed as a 35mm equivalent focal length, measured diagonally. The value is similar to the `FocalLengthIn35mmFormat` EXIF entry (see <doc://com.apple.documentation/documentation/imageio/kcgimagepropertyexiffocallenin35mmfilm>) for a photo captured using the device's format where ``AVCaptureDeviceFormat/highestPhotoQualitySupported`` is `true` or when you've configured the session with the ``AVCaptureSessionPresetPhoto`` preset.
2973
+ ///
2974
+ /// This property value is `0` for virtual devices and external cameras.
2975
+ @property(nonatomic, readonly) float nominalFocalLengthIn35mmFilm API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
2976
+ @end
2977
+
2978
+ API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
2979
+ @interface AVCaptureDevice (AVCaptureDeviceContinuousAutoFocusTracking)
2980
+
2981
+ /// Indicates whether the device should use continuous autofocus tracking.
2982
+ ///
2983
+ /// The default value for this property is `false`. On a device with an active format where ``isContinuousAutoFocusTrackingSupported`` returns `true` and ``continuousAutoFocusTrackingEnabled`` is set to `true`, continuous autofocus tracking will be engaged when the device's focus mode is set to ``AVCaptureFocusModeContinuousAutoFocus``. When engaged, the subject at the current ``focusPointOfInterest`` will be tracked as it moves within the scene and will be kept in focus automatically. The device's ``isContinuousAutoFocusTrackingSubjectAcquired`` property will return `true` while any tracked subject remains in the scene. However, the device's ``focusPointOfInterest`` and ``focusRectOfInterest`` are not updated while continuous autofocus tracking is active. Continuous autofocus tracking can be made inactive by setting ``continuousAutoFocusTrackingEnabled`` to `false` and then setting the device's focus mode to ``AVCaptureFocusModeContinuousAutoFocus`` or by setting the focus mode to a value other than ``AVCaptureFocusModeContinuousAutoFocus``. When made inactive, ``isContinuousAutoFocusTrackingSubjectAcquired`` changes to `false`, as no subject is being tracked. For virtual cameras, continuous autofocus tracking only works on the ``activePrimaryConstituentDevice``.
2984
+ ///
2985
+ /// To receive continuous autofocus tracking updates, it is required to connect this device to an ``AVCaptureMetadataOutput`` that is configured to deliver ``AVMetadataObjectTypeFocusTrackedObject``. If ``AVMetadataObjectTypeFocusTrackedObject`` is not subscribed, no updates will be provided for continuous autofocus tracking and the device's ``isContinuousAutoFocusTrackingSubjectAcquired`` property remains to be `false`.
2986
+ ///
2987
+ /// - Throws: `NSInvalidArgumentException` if this property is set to `true` when the active format's ``isContinuousAutoFocusTrackingSupported`` returns `false`.
2988
+ /// - Throws: `NSInvalidArgumentException` if this property is set to `true` when the device is configured for cinematic video capture.
2989
+ /// - Throws: `NSGenericException` if the device is not locked for configuration using ``lockForConfiguration:``.
2990
+ @property(nonatomic, getter=isContinuousAutoFocusTrackingEnabled) BOOL continuousAutoFocusTrackingEnabled API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
2991
+
2992
+ /// Bias applied to the lens position during continuous autofocus tracking, normalized between -1 and 1.
2993
+ ///
2994
+ /// While the device is actively tracking a subject to keep in focus, this property may be used to specify a bias applied to the lens position so that different portions of the subject are in focus. This property's default value is 0 which aims to keep the median of the subject's depth profile in focus. Values approaching -1 bias the lens position towards the closest portion of the depth profile while values approaching 1 bias the lens position towards the furthest portion of the profile. As the subject moves, the bias continues to apply to the subject's new depth profile.
2995
+ ///
2996
+ /// To apply bias updates, set the device's focus mode to ``AVCaptureFocusModeContinuousAutoFocus`` after each change. The bias value has no effect otherwise. The value will only be automatically reset to 0 if cinematic video capture is enabled.
2997
+ ///
2998
+ /// - Throws: `NSInvalidArgumentException` if this property is set to a value other than 0 when the device's ``continuousAutoFocusTrackingEnabled`` is `false`.
2999
+ /// - Throws: `NSInvalidArgumentException` if this property is set to a value less than -1 or greater than 1.
3000
+ /// - Throws: `NSInvalidArgumentException` if this property is set to a non-zero value when the device is configured for cinematic video capture.
3001
+ /// - Throws: `NSGenericException` if the device is not locked for configuration using ``lockForConfiguration:``.
3002
+ @property(nonatomic) float continuousAutoFocusTrackingLensPositionBias API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3003
+
3004
+ /// Indicates whether the device is actively tracking a subject in the scene to maintain focus.
3005
+ ///
3006
+ /// Returns `true` when the capture device is actively tracking a subject in the scene, and `false` otherwise. The subject is initially identified by ``focusPointOfInterest`` when focus mode is set to ``AVCaptureFocusModeContinuousAutoFocus`` with ``continuousAutoFocusTrackingEnabled`` set to `true`. This property is key-value observable and reflects only whether a subject is actively tracked, not which one. To identify the tracked subject, include ``AVMetadataObjectTypeFocusTrackedObject`` in the ``metadataObjectTypes`` of ``AVCaptureMetadataOutput``. The ``AVMetadataFocusTrackedObject`` delivered by the metadata output represents the subject currently tracked for continuous autofocus.
3007
+ @property(nonatomic, readonly, getter=isContinuousAutoFocusTrackingSubjectAcquired) BOOL continuousAutoFocusTrackingSubjectAcquired API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3008
+
3009
+ @end
3010
+
3011
+ #pragma mark - AVCaptureDeviceDiscoverySession
3012
+
3013
+ /*!
3014
+ @class AVCaptureDeviceDiscoverySession
3015
+ @abstract
3016
+ The AVCaptureDeviceDiscoverySession allows clients to search for devices by certain criteria.
3017
+
3018
+ @discussion
3019
+ This class allows clients to discover devices by providing certain search criteria. The objective of this class is to help find devices by device type and optionally by media type or position and allow you to key-value observe changes to the returned devices list.
3020
+ */
3021
+ API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos)
3022
+ @interface AVCaptureDeviceDiscoverySession : NSObject
3023
+
3024
+ AV_INIT_UNAVAILABLE
3025
+
3026
+ /*!
3027
+ @method discoverySessionWithDeviceTypes:
3028
+ @abstract
3029
+ Returns an AVCaptureDeviceDiscoverySession instance for the given device types, media type, and position.
3030
+
3031
+ @param deviceTypes
3032
+ An array specifying the device types to include in the list of discovered devices.
3033
+ @param mediaType
3034
+ The media type, such as AVMediaTypeVideo, AVMediaTypeAudio, or AVMediaTypeMuxed, to include in the list of discovered devices. Pass nil to search for devices with any media type.
3035
+ @param position
3036
+ The position to include in the list of discovered devices. Pass AVCaptureDevicePositionUnspecified to search for devices with any position.
3037
+ @result
3038
+ The AVCaptureDeviceDiscoverySession from which the list of devices can be obtained.
3039
+
3040
+ @discussion
3041
+ The list of device types is mandatory. This is used to make sure that clients only get access to devices of types they expect. This prevents new device types from automatically being included in the list of devices.
3042
+ */
3043
+ + (instancetype)discoverySessionWithDeviceTypes:(NSArray<AVCaptureDeviceType> *)deviceTypes mediaType:(nullable AVMediaType)mediaType position:(AVCaptureDevicePosition)position;
3044
+
3045
+ /*!
3046
+ @property devices
3047
+ @abstract
3048
+ The list of devices that comply to the search criteria specified on the discovery session.
3049
+
3050
+ @discussion
3051
+ The returned array contains only devices that are available at the time the method is called. Applications can key-value observe this property to be notified when the list of available devices has changed. For apps linked against iOS 10, the devices returned are unsorted. For apps linked against iOS 11 or later, the devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a position of AVCaptureDevicePositionUnspecified is specified, the results are further ordered by position in the AVCaptureDevicePosition enum. Starting in Mac Catalyst 14.0, clients can key value observe the value of this property to be notified when the devices change.
3052
+ */
3053
+ @property(nonatomic, readonly) NSArray<AVCaptureDevice *> *devices;
3054
+
3055
+ /*!
3056
+ @property supportedMultiCamDeviceSets
3057
+ @abstract
3058
+ An array of sets of AVCaptureDevices that are allowed to be used simultaneously in an AVCaptureMultiCamSession.
3059
+
3060
+ @discussion
3061
+ When using an AVCaptureMultiCamSession, multiple cameras may be used as device inputs to the session, so long as they are included in one of the supportedMultiCamDeviceSets. Starting in Mac Catalyst 14.0, clients can key value observe the value of this property to be notified when the device sets change.
3062
+ */
3063
+ @property(nonatomic, readonly) NSArray<NSSet<AVCaptureDevice *> *> *supportedMultiCamDeviceSets API_AVAILABLE(ios(13.0), visionos(2.1)) API_UNAVAILABLE(macos);
3064
+
3065
+ @end
3066
+
3067
+
3068
+ #pragma mark - AVCaptureDeviceRotationCoordinator
3069
+
3070
+ /*!
3071
+ @class AVCaptureDeviceRotationCoordinator
3072
+ @abstract
3073
+ The AVCaptureDeviceRotationCoordinator allows clients to monitor rotations of a given AVCaptureDevice instance and be provided the video rotation angle that should be applied for horizon-level preview and capture relative to gravity.
3074
+
3075
+ @discussion
3076
+ Each instance of AVCaptureDeviceRotationCoordinator allows a client to coordinate with changes to the rotation of an AVCaptureDevice to ensure the camera's video preview and captured output are horizon-level. The coordinator delivers key-value updates on the main queue.
3077
+ */
3078
+ API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3079
+ NS_SWIFT_NAME(AVCaptureDevice.RotationCoordinator)
3080
+ @interface AVCaptureDeviceRotationCoordinator : NSObject
3081
+
3082
+ AV_INIT_UNAVAILABLE
3083
+
3084
+ /*!
3085
+ @method initWithDevice:previewLayer:
3086
+ @abstract
3087
+ Returns an AVCaptureDeviceRotationCoordinator instance that provides updates to the amount of rotation that should be applied for horizon-level preview and capture relative to gravity.
3088
+
3089
+ @param device
3090
+ The device for which to monitor rotation.
3091
+ @param previewLayer
3092
+ A layer displaying the camera's video preview. If nil, the coordinator will return 0 degrees of rotation for horizon-level preview.
3093
+ @result
3094
+ An AVCaptureDeviceRotationCoordinator from which rotation angles for preview and capture can be obtained.
3095
+
3096
+ @discussion
3097
+ An AVCaptureDeviceRotationCoordinator is only applicable to video devices. The given device and layer determine the amount of rotation that should be applied for horizon-level preview and capture.
3098
+ */
3099
+ - (instancetype)initWithDevice:(AVCaptureDevice *)device previewLayer:(nullable CALayer *)previewLayer;
3100
+
3101
+ /*!
3102
+ @property device
3103
+ @abstract
3104
+ The the device for which the coordinator provides video rotation angles.
3105
+
3106
+ @discussion
3107
+ The value of this property is the AVCaptureDevice instance that was used to create the coordinator. The coordinator holds a weak reference to the device.
3108
+ */
3109
+ @property(nonatomic, readonly, nullable, weak) AVCaptureDevice *device;
3110
+
3111
+ /*!
3112
+ @property previewLayer
3113
+ @abstract
3114
+ The CALayer for which the coordinator calculates video rotation angles for horizon-level preview.
3115
+
3116
+ @discussion
3117
+ The value of this property is the CALayer instance that was used to create the coordinator. Clients may specify an AVCaptureVideoPreviewLayer or other CALayer instance that displays a camera's video preview. The coordinator holds a weak reference to the layer. The coordinator will return 0 degrees of rotation from -videoRotationAngleForHorizonLevelPreview if a layer was not specified at initialization, the layer is not in a view hierarchy, or the layer has been deallocated.
3118
+ */
3119
+ @property(nonatomic, readonly, nullable, weak) CALayer *previewLayer;
3120
+
3121
+ /*!
3122
+ @property videoRotationAngleForHorizonLevelPreview
3123
+ @abstract
3124
+ Returns a video rotation angle in degrees for displaying the camera's video preview in the given CALayer.
3125
+
3126
+ @discussion
3127
+ The video rotation angle represents by how much the camera's video preview should be rotated for display in the CALayer to be horizon-level relative to gravity. An angle of 0 degrees means that video will be output in the camera's unrotated, native sensor orientation. The video rotation angle for preview may differ between cameras at different positions. For example when an iOS device is held in portrait orientation, the video preview for built-in cameras may need to be rotated by 90 degrees while the video preview for an external camera should not be rotated. External cameras return 0 degrees of rotation even if they physically rotate when their position in physical space is unknown. This property is key-value observable and delivers updates on the main queue.
3128
+ */
3129
+ @property(nonatomic, readonly) CGFloat videoRotationAngleForHorizonLevelPreview;
3130
+
3131
+ /*!
3132
+ @property videoRotationAngleForHorizonLevelCapture
3133
+ @abstract
3134
+ Returns a video rotation angle in degrees for horizon-level capture from this camera.
3135
+
3136
+ @discussion
3137
+ The video rotation angle represents by how much the photos or movies captured from the camera should be rotated to be horizon-level relative to gravity. A video rotation angle of 0 degrees means that the output will be in the camera's unrotated, native sensor orientation. The video rotation angle for capture may differ between cameras. For example when an iOS device is held in portrait orientation, photos and movies captured from built-in cameras may need to be rotated by 90 degrees while the photos and movies from an external camera should not be rotated. External cameras return 0 degrees of rotation even if they physically rotate when their position in physical space is unknown. The video rotation angle returned from this property is distinct from the angle returned by -videoRotationAngleForHorizonLevelPreview because in certain combinations of device and interface orientations, the video rotation angle needed for horizon-level preview may not match the amount of rotation needed for horizon-level capture. This property is key-value observable and delivers updates on the main queue.
3138
+ */
3139
+ @property(nonatomic, readonly) CGFloat videoRotationAngleForHorizonLevelCapture;
3140
+
3141
+
3142
+ /// Returns a video rotation angle in degrees from this camera relative to the provided orientation.
3143
+ ///
3144
+ /// - Parameter orientation: Specify the device orientation, represented with the ``AVCaptureVideoOrientation`` enum.
3145
+ ///
3146
+ /// The returned video rotation angle represents the amount by which photos or movies captured from the camera should be rotated to be upright relative to the provided orientation. A returned video rotation angle of 0 degrees means that the output will be in the camera's unrotated, native sensor orientation. The returned video rotation angle for an orientation may differ between cameras. For example, some cameras are upright when the device is held with the port on the bottom, while others are upright when holding the device with the port on the left or right. External cameras return 0 degrees for all given video orientations because the relationship between the device and the camera is unknown.
3147
+ ///
3148
+ /// The angle returned from this property is distinct from the angles returned by -videoRotationAngleForHorizonLevelCapture and -videoRotationAngleForHorizonLevelPreview because those return angles relative to the horizon which change dynamically as the device is physically rotated, while this returns the static angle relative to the provided orientation regardless of how the device is physically oriented at the time this method is called.
3149
+ - (CGFloat)videoRotationAngleRelativeToDeviceOrientation:(AVCaptureVideoOrientation)deviceOrientation API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos, watchos);
3150
+
3151
+ @end
3152
+
3153
+ #pragma mark - AVExposureBiasRange
3154
+
3155
+ /*!
3156
+ @class AVExposureBiasRange
3157
+ @abstract
3158
+ An AVExposureBiasRange expresses an inclusive range of supported exposure bias values, in EV units.
3159
+
3160
+ @discussion
3161
+ This is used by AVCaptureSystemExposureBiasSlider for the range the slider uses.
3162
+ */
3163
+ API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT
3164
+ @interface AVExposureBiasRange : NSObject
3165
+
3166
+ AV_INIT_UNAVAILABLE
3167
+
3168
+ /*!
3169
+ @property minExposureBias
3170
+ @abstract
3171
+ A float indicating the minimum exposure bias in EV units supported by this range.
3172
+ */
3173
+ @property(nonatomic, readonly) float minExposureBias;
3174
+
3175
+ /*!
3176
+ @property maxExposureBias
3177
+ @abstract
3178
+ A float indicating the maximum exposure bias in EV units supported by this range.
3179
+ */
3180
+ @property(nonatomic, readonly) float maxExposureBias;
3181
+
3182
+ /*!
3183
+ @method containsExposureBias:
3184
+ @abstract
3185
+ Tests if a given exposure bias in EV units is within the exposure bias range.
3186
+
3187
+ @param exposureBias
3188
+ The exposure bias to test.
3189
+ @result
3190
+ Returns YES if the given exposure bias is within the exposure bias, NO otherwise.
3191
+
3192
+ @discussion
3193
+ Note that the exposure bias ranges are inclusive.
3194
+ */
3195
+ - (BOOL)containsExposureBias:(float)exposureBias;
3196
+
3197
+ @end
3198
+
3199
+
3200
+ #pragma mark - AVFrameRateRange
3201
+
3202
+ @class AVFrameRateRangeInternal;
3203
+
3204
+ /*!
3205
+ @class AVFrameRateRange
3206
+ @abstract
3207
+ An AVFrameRateRange expresses a range of valid frame rates as min and max rate and min and max duration.
3208
+
3209
+ @discussion
3210
+ An AVCaptureDevice exposes an array of formats, and its current activeFormat may be queried. The payload for the formats property is an array of AVCaptureDeviceFormat objects and the activeFormat property payload is an AVCaptureDeviceFormat. AVCaptureDeviceFormat wraps a CMFormatDescription and expresses a range of valid video frame rates as an NSArray of AVFrameRateRange objects. AVFrameRateRange expresses min and max frame rate as a rate in frames per second and duration (CMTime). An AVFrameRateRange object is immutable. Its values do not change for the life of the object.
3211
+ */
3212
+ API_AVAILABLE(macos(10.7), ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
3213
+ @interface AVFrameRateRange : NSObject
3214
+ {
3215
+ @private
3216
+ AVFrameRateRangeInternal *_internal;
3217
+ }
3218
+
3219
+ AV_INIT_UNAVAILABLE
3220
+
3221
+ /*!
3222
+ @property minFrameRate
3223
+ @abstract
3224
+ A Float64 indicating the minimum frame rate supported by this range.
3225
+
3226
+ @discussion
3227
+ This read-only property indicates the minimum frame rate supported by this range in frames per second.
3228
+ */
3229
+ @property(readonly) Float64 minFrameRate;
3230
+
3231
+ /*!
3232
+ @property maxFrameRate
3233
+ @abstract
3234
+ A Float64 indicating the maximum frame rate supported by this range.
3235
+
3236
+ @discussion
3237
+ This read-only property indicates the maximum frame rate supported by this range in frames per second.
3238
+ */
3239
+ @property(readonly) Float64 maxFrameRate;
3240
+
3241
+ /*!
3242
+ @property maxFrameDuration
3243
+ @abstract
3244
+ A CMTime indicating the maximum frame duration supported by this range.
3245
+
3246
+ @discussion
3247
+ This read-only property indicates the maximum frame duration supported by this range. It is the reciprocal of minFrameRate, and expresses minFrameRate as a duration.
3248
+ */
3249
+ @property(readonly) CMTime maxFrameDuration;
3250
+
3251
+ /*!
3252
+ @property minFrameDuration
3253
+ @abstract
3254
+ A CMTime indicating the minimum frame duration supported by this range.
3255
+
3256
+ @discussion
3257
+ This read-only property indicates the minimum frame duration supported by this range. It is the reciprocal of maxFrameRate, and expresses maxFrameRate as a duration.
3258
+ */
3259
+ @property(readonly) CMTime minFrameDuration;
3260
+
3261
+ @end
3262
+
3263
+
3264
+ #pragma mark - AVZoomRange
3265
+
3266
+ /*!
3267
+ @class AVZoomRange
3268
+ @abstract
3269
+ An AVZoomRange expresses an inclusive range of supported zoom factors.
3270
+
3271
+ @discussion
3272
+ This is used by features that have requirements on zoom factors falling within certain ranges.
3273
+ */
3274
+ API_AVAILABLE(macos(14.2), ios(17.2), macCatalyst(17.2), tvos(17.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT
3275
+ @interface AVZoomRange : NSObject
3276
+
3277
+ AV_INIT_UNAVAILABLE
3278
+
3279
+ /*!
3280
+ @property minZoomFactor
3281
+ @abstract
3282
+ A CGFloat indicating the minimum zoom factor supported by this range.
3283
+ */
3284
+ @property(nonatomic, readonly) CGFloat minZoomFactor;
3285
+
3286
+ /*!
3287
+ @property maxZoomFactor
3288
+ @abstract
3289
+ A CGFloat indicating the maximum zoom factor supported by this range.
3290
+ */
3291
+ @property(nonatomic, readonly) CGFloat maxZoomFactor;
3292
+
3293
+ /*!
3294
+ @method containsZoomFactor:
3295
+ @abstract
3296
+ Tests if a given zoom factor is within the zoom range.
3297
+
3298
+ @param zoomFactor
3299
+ The zoom factor to test.
3300
+ @result
3301
+ Returns YES if the given zoom factor is within the zoom range, NO otherwise.
3302
+
3303
+ @discussion
3304
+ Note that the zoom ranges are inclusive.
3305
+ */
3306
+ - (BOOL)containsZoomFactor:(CGFloat)zoomFactor;
3307
+
3308
+ @end
3309
+
3310
+ /// Constants indicating the modes of video stabilization supported by the device's format.
3311
+ typedef NS_ENUM(NSInteger, AVCaptureVideoStabilizationMode) {
3312
+ /// Indicates that video should not be stabilized.
3313
+ AVCaptureVideoStabilizationModeOff = 0,
3314
+ /// Indicates that video should be stabilized using the standard video stabilization algorithm introduced with iOS 5.0. Standard video stabilization has a reduced field of view. Enabling video stabilization may introduce additional latency into the video capture pipeline.
3315
+ AVCaptureVideoStabilizationModeStandard = 1,
3316
+ /// Indicates that video should be stabilized using the cinematic stabilization algorithm for more dramatic results. Cinematic video stabilization has a reduced field of view compared to standard video stabilization. Enabling cinematic video stabilization introduces much more latency into the video capture pipeline than standard video stabilization and consumes significantly more system memory. Use narrow or identical min and max frame durations in conjunction with this mode.
3317
+ AVCaptureVideoStabilizationModeCinematic = 2,
3318
+ /// Indicates that the video should be stabilized using the extended cinematic stabilization algorithm. Enabling extended cinematic stabilization introduces longer latency into the video capture pipeline compared to the ``AVCaptureVideoStabilizationModeCinematic`` and consumes more memory, but yields improved stability. It is recommended to use identical or similar min and max frame durations in conjunction with this mode. Cinematic extended mode is face aware when enabled on a front-facing ultra wide camera on iPhone, and prioritizes stabilization of the subject of the frame rather than the background.
3319
+ AVCaptureVideoStabilizationModeCinematicExtended API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) = 3,
3320
+ /// Indicates that video should be stabilized using the preview optimized stabilization algorithm. Preview stabilization is a low latency and low power algorithm which is supported only on connections which either have an associated preview layer or have a preview-sized ``AVCaptureVideoDataOutput``.
3321
+ AVCaptureVideoStabilizationModePreviewOptimized API_AVAILABLE(ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) = 4,
3322
+ /// Indicates that the video should be stabilized using the enhanced extended cinematic stabilization algorithm. Enhanced extended cinematic has a reduced field of view compared to extended cinematic, without any noticeable increase in latency, and it yields improved stability. It is recommended to use identical or similar min and max frame durations in conjunction with this mode. Cinematic extended enhanced mode is face aware when enabled on a front-facing ultra wide camera on iPhone, and prioritizes stabilization of the subject of the frame rather than the background.
3323
+ AVCaptureVideoStabilizationModeCinematicExtendedEnhanced API_AVAILABLE(ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(macos, visionos) = 5,
3324
+ /// Indicates that video should be stabilized using the low latency stabilization algorithm. Low Latency stabilization has a reduced field of view. Enabling low latency stabilization introduces no additional latency into the video capture pipeline.
3325
+ AVCaptureVideoStabilizationModeLowLatency API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) = 6,
3326
+ /// Indicates that the most appropriate video stabilization mode for the device and format should be chosen.
3327
+ AVCaptureVideoStabilizationModeAuto = -1,
3328
+ } API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3329
+
3330
+ /*!
3331
+ @enum AVCaptureAutoFocusSystem
3332
+ @abstract
3333
+ Constants indicating the autofocus system.
3334
+
3335
+ @constant AVCaptureAutoFocusSystemNone
3336
+ Indicates that autofocus is not available.
3337
+ @constant AVCaptureAutoFocusSystemContrastDetection
3338
+ Indicates that autofocus is achieved by contrast detection. Contrast detection performs a focus scan to find the optimal position.
3339
+ @constant AVCaptureAutoFocusSystemPhaseDetection
3340
+ Indicates that autofocus is achieved by phase detection. Phase detection has the ability to achieve focus in many cases without a focus scan. Phase detection autofocus is typically less visually intrusive than contrast detection autofocus.
3341
+ */
3342
+ typedef NS_ENUM(NSInteger, AVCaptureAutoFocusSystem) {
3343
+ AVCaptureAutoFocusSystemNone = 0,
3344
+ AVCaptureAutoFocusSystemContrastDetection = 1,
3345
+ AVCaptureAutoFocusSystemPhaseDetection = 2,
3346
+ } API_AVAILABLE(macos(10.15), ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3347
+
3348
+
3349
+ #pragma mark - AVCaptureDeviceFormat
3350
+
3351
+ @class AVCaptureOutput;
3352
+ @class AVCaptureDeviceFormatInternal;
3353
+
3354
+ /*!
3355
+ @class AVCaptureDeviceFormat
3356
+ @abstract
3357
+ An AVCaptureDeviceFormat wraps a CMFormatDescription and other format-related information, such as min and max framerate.
3358
+
3359
+ @discussion
3360
+ An AVCaptureDevice exposes an array of formats, and its current activeFormat may be queried. The payload for the formats property is an array of AVCaptureDeviceFormat objects and the activeFormat property payload is an AVCaptureDeviceFormat. AVCaptureDeviceFormat is a thin wrapper around a CMFormatDescription, and can carry associated device format information that doesn't go in a CMFormatDescription, such as min and max frame rate. An AVCaptureDeviceFormat object is immutable. Its values do not change for the life of the object.
3361
+ */
3362
+ API_AVAILABLE(macos(10.7), ios(7.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
3363
+ @interface AVCaptureDeviceFormat : NSObject
3364
+ {
3365
+ @private
3366
+ AVCaptureDeviceFormatInternal *_internal;
3367
+ }
3368
+
3369
+ AV_INIT_UNAVAILABLE
3370
+
3371
+ /*!
3372
+ @property mediaType
3373
+ @abstract
3374
+ An NSString describing the media type of an AVCaptureDevice active or supported format.
3375
+
3376
+ @discussion
3377
+ Supported mediaTypes are listed in AVMediaFormat.h. This is a read-only property. The caller assumes no ownership of the returned value and should not CFRelease it.
3378
+ */
3379
+ @property(nonatomic, readonly) AVMediaType mediaType;
3380
+
3381
+ /*!
3382
+ @property formatDescription
3383
+ @abstract
3384
+ A CMFormatDescription describing an AVCaptureDevice active or supported format.
3385
+
3386
+ @discussion
3387
+ A CMFormatDescription describing an AVCaptureDevice active or supported format. This is a read-only property. The caller assumes no ownership of the returned value and should not CFRelease it.
3388
+ */
3389
+ @property(nonatomic, readonly) CMFormatDescriptionRef formatDescription;
3390
+
3391
+ /*!
3392
+ @property videoSupportedFrameRateRanges
3393
+ @abstract
3394
+ A property indicating the format's supported frame rate ranges.
3395
+
3396
+ @discussion
3397
+ videoSupportedFrameRateRanges is an array of AVFrameRateRange objects, one for each of the format's supported video frame rate ranges.
3398
+ */
3399
+ @property(nonatomic, readonly) NSArray<AVFrameRateRange *> *videoSupportedFrameRateRanges;
3400
+
3401
+ /*!
3402
+ @property videoFieldOfView
3403
+ @abstract
3404
+ A property indicating the format's horizontal field of view.
3405
+
3406
+ @discussion
3407
+ videoFieldOfView is a float value indicating the receiver's field of view in degrees. If field of view is unknown, a value of 0 is returned.
3408
+ */
3409
+ @property(nonatomic, readonly) float videoFieldOfView API_UNAVAILABLE(macos, visionos);
3410
+
3411
+ /*!
3412
+ @property videoBinned
3413
+ @abstract
3414
+ A property indicating whether the format is binned.
3415
+
3416
+ @discussion
3417
+ videoBinned is a BOOL indicating whether the format is a binned format. Binning is a pixel-combining process which can result in greater low light sensitivity at the cost of reduced resolution.
3418
+ */
3419
+ @property(nonatomic, readonly, getter=isVideoBinned) BOOL videoBinned API_UNAVAILABLE(macos, visionos);
3420
+
3421
+ /*!
3422
+ @method isVideoStabilizationModeSupported
3423
+ @abstract
3424
+ Returns whether the format supports the given video stabilization mode.
3425
+
3426
+ @param videoStabilizationMode
3427
+ An AVCaptureVideoStabilizationMode to be checked.
3428
+
3429
+ @discussion
3430
+ isVideoStabilizationModeSupported: returns a boolean value indicating whether the format can be stabilized using the given mode with -[AVCaptureConnection setPreferredVideoStabilizationMode:]. In the case of ProRes RAW formats, video stabilization metadata is attached to the unstabilized video buffers instead.
3431
+ */
3432
+ - (BOOL)isVideoStabilizationModeSupported:(AVCaptureVideoStabilizationMode)videoStabilizationMode API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3433
+
3434
+ /*!
3435
+ @property videoStabilizationSupported
3436
+ @abstract
3437
+ A property indicating whether the format supports video stabilization.
3438
+
3439
+ @discussion
3440
+ videoStabilizationSupported is a BOOL indicating whether the format can be stabilized using AVCaptureConnection -setEnablesVideoStabilizationWhenAvailable. This property is deprecated. Use isVideoStabilizationModeSupported: instead.
3441
+ */
3442
+ @property(nonatomic, readonly, getter=isVideoStabilizationSupported) BOOL videoStabilizationSupported API_DEPRECATED("Use isVideoStabilizationModeSupported: instead.", ios(7.0, 8.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
3443
+
3444
+ /*!
3445
+ @property videoMaxZoomFactor
3446
+ @abstract
3447
+ Indicates the maximum zoom factor available for the AVCaptureDevice's videoZoomFactor property.
3448
+
3449
+ @discussion
3450
+ If the device's videoZoomFactor property is assigned a larger value, an NSRangeException will be thrown. A maximum zoom factor of 1 indicates no zoom is available.
3451
+ */
3452
+ @property(nonatomic, readonly) CGFloat videoMaxZoomFactor API_UNAVAILABLE(macos, visionos);
3453
+
3454
+ /*!
3455
+ @property videoZoomFactorUpscaleThreshold
3456
+ @abstract
3457
+ Indicates the value of AVCaptureDevice's videoZoomFactor property at which the image output begins to require upscaling.
3458
+
3459
+ @discussion
3460
+ In some cases the image sensor's dimensions are larger than the dimensions reported by the video AVCaptureDeviceFormat. As long as the sensor crop is larger than the reported dimensions of the AVCaptureDeviceFormat, the image will be downscaled. Setting videoZoomFactor to the value of videoZoomFactorUpscalingThreshold will provide a center crop of the sensor image data without any scaling. If a greater zoom factor is used, then the sensor data will be upscaled to the device format's dimensions.
3461
+ */
3462
+ @property(nonatomic, readonly) CGFloat videoZoomFactorUpscaleThreshold API_UNAVAILABLE(macos, visionos);
3463
+
3464
+ /*!
3465
+ @property systemRecommendedVideoZoomRange
3466
+ @abstract
3467
+ Indicates the system's recommended zoom range for this device format.
3468
+
3469
+ @discussion
3470
+ This property can be used to create a slider in your app's user interface to control the device's zoom with a system-recommended video zoom range. When a recommendation is not available, this property returns nil. Clients can key value observe AVCaptureDevice's minAvailableVideoZoomFactor and maxAvailableVideoZoomFactor properties to know when a device's supported zoom is restricted within the recommended zoom range.
3471
+
3472
+ The value of this property is also used for the AVCaptureSystemZoomSlider's range.
3473
+ */
3474
+ @property(nonatomic, readonly, nullable) AVZoomRange *systemRecommendedVideoZoomRange API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) NS_REFINED_FOR_SWIFT;
3475
+ /** Reports if the given set of exposure parameters are supported by this format.
3476
+
3477
+ The intended use of this method is to query which combinations of "Auto" parameters (``AVFCapture/AVCaptureLensApertureAuto``, ``AVFCapture/AVCaptureExposureDurationAuto``, ``AVFCapture/AVCaptureISOAuto``) are supported by this format.
3478
+ If you pass a numeric constant it will be range checked against the parameter's supported min and max. However you can also pass the "Current" constants (``AVFCapture/AVCaptureLensApertureCurrent``, ``AVFCapture/AVCaptureExposureDurationCurrent``, ``AVFCapture/AVCaptureISOCurrent``) to generically query locked vs. auto parameter support without picking arbitrary lock values.
3479
+
3480
+ > Example: to query support for "shutter priority" where the exposure duration is locked but auto-exposure continues to manage aperture and ISO:
3481
+ > ```swift
3482
+ > format.supportsExposureModeCustom(lensAperture: AVCaptureDevice.autoLensAperture, duration: AVCaptureDevice.currentExposureDuration, iso: AVCaptureDevice.autoISO)
3483
+ > ```
3484
+
3485
+ Devices that have fixed aperture will have equivalent support for ``AVFCapture/AVCaptureLensApertureAuto`` and ``AVFCapture/AVCaptureLensApertureCurrent``.
3486
+ */
3487
+ - (BOOL)supportsExposureModeCustomWithLensAperture:(float)lensAperture duration:(CMTime)duration ISO:(float)ISO NS_SWIFT_NAME(supportsExposureModeCustom(lensAperture:duration:iso:)) API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos);
3488
+
3489
+ /** A sorted array of recommended values for the ``AVCaptureDevice/lensAperture`` property.
3490
+
3491
+ If this array contains a single item, the aperture is fixed at that value and cannot be changed.
3492
+ If this array contains multiple items, the first will be the minimum recommended 𝑓-stop and the last will be the maximum recommended 𝑓-stop.
3493
+
3494
+ Using values from this list may provide optimal calibration and lens characteristics.
3495
+ */
3496
+ @property(nonatomic, readonly) NSArray<NSNumber *> *recommendedLensApertureStops API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
3497
+
3498
+ /// The minimum supported value for the ``AVCaptureDevice/lensAperture`` property.
3499
+ @property(nonatomic, readonly) float minLensAperture API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3500
+
3501
+ /// The maximum supported value for the ``AVCaptureDevice/lensAperture`` property.
3502
+ @property(nonatomic, readonly) float maxLensAperture API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3503
+
3504
+ /// The default value for the ``AVCaptureDevice/lensAperture`` property.
3505
+ @property(nonatomic, readonly) float defaultLensAperture API_AVAILABLE(ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3506
+
3507
+ /*!
3508
+ @property minExposureDuration
3509
+ @abstract
3510
+ A CMTime indicating the minimum supported exposure duration.
3511
+
3512
+ @discussion
3513
+ This read-only property indicates the minimum supported exposure duration.
3514
+ */
3515
+ @property(nonatomic, readonly) CMTime minExposureDuration API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3516
+
3517
+ /*!
3518
+ @property maxExposureDuration
3519
+ @abstract
3520
+ A CMTime indicating the maximum supported exposure duration.
3521
+
3522
+ @discussion
3523
+ This read-only property indicates the maximum supported exposure duration.
3524
+ */
3525
+ @property(nonatomic, readonly) CMTime maxExposureDuration API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3526
+
3527
+ /*!
3528
+ @property systemRecommendedExposureBiasRange
3529
+ @abstract
3530
+ Indicates the system's recommended exposure bias range for this device format.
3531
+
3532
+ @discussion
3533
+ This property can be used to create a slider in your app's user interface to control the device's exposure bias with a system-recommended exposure bias range. When a recommendation is not available, this property returns nil.
3534
+
3535
+ The value of this property is also used for the AVCaptureSystemExposureBiasSlider's range.
3536
+ */
3537
+ @property(nonatomic, readonly, nullable) AVExposureBiasRange *systemRecommendedExposureBiasRange API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) NS_REFINED_FOR_SWIFT;
3538
+
3539
+ /*!
3540
+ @property minISO
3541
+ @abstract
3542
+ A float indicating the minimum supported exposure ISO value.
3543
+
3544
+ @discussion
3545
+ This read-only property indicates the minimum supported exposure ISO value.
3546
+ */
3547
+ @property(nonatomic, readonly) float minISO API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3548
+
3549
+ /*!
3550
+ @property maxISO
3551
+ @abstract
3552
+ An float indicating the maximum supported exposure ISO value.
3553
+
3554
+ @discussion
3555
+ This read-only property indicates the maximum supported exposure ISO value.
3556
+ */
3557
+ @property(nonatomic, readonly) float maxISO API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3558
+
3559
+ /*!
3560
+ @property globalToneMappingSupported
3561
+ @abstract
3562
+ A property indicating whether the format supports global tone mapping.
3563
+
3564
+ @discussion
3565
+ globalToneMappingSupported is a BOOL indicating whether the format supports global tone mapping. See AVCaptureDevice's globalToneMappingEnabled property.
3566
+ */
3567
+ @property(nonatomic, readonly, getter=isGlobalToneMappingSupported) BOOL globalToneMappingSupported API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3568
+
3569
+ /*!
3570
+ @property videoHDRSupported
3571
+ @abstract
3572
+ A property indicating whether the format supports high dynamic range streaming.
3573
+
3574
+ @discussion
3575
+ videoHDRSupported is a BOOL indicating whether the format supports high dynamic range streaming, also known as Extended Dynamic Range (EDR). When enabled, the device streams at twice the published frame rate, capturing an under-exposed frame and correctly exposed frame for each frame time at the published rate. Portions of the under-exposed frame are combined with the correctly exposed frame to recover detail in darker areas of the scene. EDR is a separate and distinct feature from 10-bit HDR video (first seen in 2020 iPhones). 10-bit formats with HLG BT2020 color space have greater dynamic range by virtue of their expanded bit depth and HLG transfer function, and when captured in movies, contain Dolby Vision metadata. They are, in effect, "always on" HDR. And thus the videoHDRSupported property is always NO for 10-bit formats only supporting HLG BT2020 colorspace, since HDR cannot be enabled or disabled. To enable videoHDR (EDR), set the AVCaptureDevice.videoHDREnabled property.
3576
+ */
3577
+ @property(nonatomic, readonly, getter=isVideoHDRSupported) BOOL videoHDRSupported API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3578
+
3579
+ /*!
3580
+ @property highResolutionStillImageDimensions
3581
+ @abstract
3582
+ CMVideoDimensions indicating the highest resolution still image that can be produced by this format.
3583
+
3584
+ @discussion
3585
+ By default, AVCapturePhotoOutput and AVCaptureStillImageOutput emit images with the same dimensions as their source AVCaptureDevice's activeFormat.formatDescription property. Some device formats support high resolution photo output. That is, they can stream video to an AVCaptureVideoDataOutput or AVCaptureMovieFileOutput at one resolution while outputting photos to AVCapturePhotoOutput at a higher resolution. You may query this property to discover a video format's supported high resolution still image dimensions. See -[AVCapturePhotoOutput highResolutionPhotoEnabled], -[AVCapturePhotoSettings highResolutionPhotoEnabled], and -[AVCaptureStillImageOutput highResolutionStillImageOutputEnabled].
3586
+
3587
+ AVCaptureDeviceFormats of type AVMediaTypeDepthData may also support the delivery of a higher resolution depth data map to an AVCapturePhotoOutput. Chief differences are:
3588
+ - Depth data accompanying still images is not supported by AVCaptureStillImageOutput. You must use AVCapturePhotoOutput.
3589
+ - By opting in for depth data ( -[AVCapturePhotoSettings setDepthDataDeliveryEnabled:YES] ), you implicitly opt in for high resolution depth data if it's available. You may query the -[AVCaptureDevice activeDepthDataFormat]'s highResolutionStillImageDimensions to discover the depth data resolution that will be delivered with captured photos.
3590
+ */
3591
+ @property(nonatomic, readonly) CMVideoDimensions highResolutionStillImageDimensions API_DEPRECATED("Use supportedMaxPhotoDimensions instead.", ios(8.0, 16.0), macCatalyst(14.0, 16.0)) API_UNAVAILABLE(macos, tvos, visionos);
3592
+
3593
+ /*!
3594
+ @property highPhotoQualitySupported
3595
+ @abstract
3596
+ A boolean value specifying whether this format supports high photo quality when selecting an AVCapturePhotoQualityPrioritization of .balanced or .quality.
3597
+
3598
+ @discussion
3599
+ If an AVCaptureDeviceFormat's highPhotoQualitySupported property is YES, the format produces higher image quality when selecting .balanced or .quality AVCapturePhotoQualityPrioritization compared to .speed. Such formats adhere to the following rules:
3600
+ - Photo requests with a prioritization of .speed produce the fastest image result (suitable for burst captures).
3601
+ - Photo requests with a prioritization of .balanced produce higher image quality without dropping frames if a video recording is underway.
3602
+ - Photo requests with a prioritization of .quality produce high image quality and may cause frame drops if a video recording is underway. For maximum backward compatibility, photo requests on high photo quality formats set to .quality only cause video frame drops if your app is linked on or after iOS 15.
3603
+ Formats that don't support high photo quality produce the same image quality whether you select .speed, .balanced, or .quality. Note that high photo quality is only attainable when using the AVCapturePhotoOutput with these supported formats.
3604
+ */
3605
+ @property(nonatomic, readonly, getter=isHighPhotoQualitySupported) BOOL highPhotoQualitySupported API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3606
+
3607
+ /*!
3608
+ @property highestPhotoQualitySupported
3609
+ @abstract
3610
+ A boolean value specifying whether this format supports the highest possible photo quality that can be delivered on the current platform.
3611
+
3612
+ @discussion
3613
+ Of the many formats supported by an AVCaptureDevice, only a few of them are designated as "photo" formats which can produce the highest possible quality, such as still image stabilization and Live Photos. If you intend to connect an AVCaptureDeviceInput to an AVCapturePhotoOutput and receive the best possible images, you should ensure that you are either using the AVCaptureSessionPresetPhoto as your preset, or if using the parallel AVCaptureDevice activeFormat API, select as your activeFormat one for which this property is YES.
3614
+ */
3615
+ @property(nonatomic, readonly, getter=isHighestPhotoQualitySupported) BOOL highestPhotoQualitySupported API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3616
+
3617
+ /*!
3618
+ @property autoFocusSystem
3619
+ @abstract
3620
+ A property indicating the autofocus system.
3621
+
3622
+ @discussion
3623
+ This read-only property indicates the autofocus system.
3624
+ */
3625
+ @property(nonatomic, readonly) AVCaptureAutoFocusSystem autoFocusSystem API_AVAILABLE(macos(10.15), ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
3626
+
3627
+ /*!
3628
+ @property supportedColorSpaces
3629
+ @abstract
3630
+ A property indicating the receiver's supported color spaces.
3631
+
3632
+ @discussion
3633
+ This read-only property indicates the receiver's supported color spaces as an array of AVCaptureColorSpace constants sorted from narrow to wide color.
3634
+ */
3635
+ @property(nonatomic, readonly) NSArray<NSNumber *> *supportedColorSpaces API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
3636
+
3637
+ /*!
3638
+ @property videoMinZoomFactorForDepthDataDelivery
3639
+ @abstract
3640
+ A deprecated property. Please use supportedVideoZoomFactorsForDepthDataDelivery instead
3641
+ */
3642
+ @property(nonatomic, readonly) CGFloat videoMinZoomFactorForDepthDataDelivery API_DEPRECATED_WITH_REPLACEMENT("supportedVideoZoomFactorsForDepthDataDelivery", ios(11.0,16.0), macCatalyst(14.0,16.0)) API_UNAVAILABLE(macos, tvos, visionos);
3643
+
3644
+ /*!
3645
+ @property videoMaxZoomFactorForDepthDataDelivery
3646
+ @abstract
3647
+ A deprecated property. Please use supportedVideoZoomFactorsForDepthDataDelivery instead
3648
+ */
3649
+ @property(nonatomic, readonly) CGFloat videoMaxZoomFactorForDepthDataDelivery API_DEPRECATED_WITH_REPLACEMENT("supportedVideoZoomFactorsForDepthDataDelivery", ios(11.0,16.0), macCatalyst(14.0,16.0)) API_UNAVAILABLE(macos, tvos, visionos);
3650
+
3651
+ /*!
3652
+ @property supportedVideoZoomFactorsForDepthDataDelivery
3653
+ @abstract
3654
+ A deprecated property. Please use supportedVideoZoomRangesForDepthDataDelivery
3655
+ */
3656
+ @property(nonatomic, readonly) NSArray<NSNumber *> *supportedVideoZoomFactorsForDepthDataDelivery API_DEPRECATED_WITH_REPLACEMENT("supportedVideoZoomRangesForDepthDataDelivery", ios(16.0, 17.2), macCatalyst(16.0, 17.2), tvos(17.0, 17.2)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
3657
+
3658
+ /*!
3659
+ @property supportedVideoZoomRangesForDepthDataDelivery
3660
+ @abstract
3661
+ This property returns the zoom ranges within which depth data can be delivered.
3662
+
3663
+ @discussion
3664
+ Virtual devices support limited zoom ranges when delivering depth data to any output. If this device format has no -supportedDepthDataFormats, this property returns an empty array.
3665
+ The presence of one or more ranges where the min and max zoom factors are not equal means that "continuous zoom" with depth is supported.
3666
+ For example:
3667
+ a) ranges: @[ [2..2], [4..4] ]
3668
+ only zoom factors 2 and 4 are allowed to be set when depthDataDelivery is enabled. Any other zoom factor results in an exception.
3669
+ b) ranges: @[ [2..5] ]
3670
+ depthDataDelivery is supported with zoom factors [2..5]. Zoom factors outside of this range may be set, but will result in loss of depthDataDeliery. Whenever zoom is set back to a value within the range of [2..5], depthDataDelivery will resume.
3671
+
3672
+ When depth data delivery is enabled, the effective videoZoomFactorUpscaleThreshold will be 1.0, meaning that all zoom factors that are not native zoom factors (see AVCaptureDevice.virtualDeviceSwitchOverVideoZoomFactors and AVCaptureDevice.secondaryNativeResolutionZoomFactors) result in digital upscaling.
3673
+ */
3674
+ @property(nonatomic, readonly) NSArray<AVZoomRange *> *supportedVideoZoomRangesForDepthDataDelivery API_AVAILABLE(macos(14.2), ios(17.2), macCatalyst(17.2), tvos(17.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
3675
+
3676
+ /*!
3677
+ @property zoomFactorsOutsideOfVideoZoomRangesForDepthDeliverySupported
3678
+ @abstract
3679
+ This property returns whether the format supports zoom factors outside of the supportedVideoZoomFactorRangesForDepthDataDelivery.
3680
+
3681
+ @discussion
3682
+ When a zoom factor outside of the supportedVideoZoomFactorRangesForDepthDataDelivery is set, depth data delivery will be suspended until a zoom factor within the supportedVideoZoomFactorRangesForDepthDataDelivery is set.
3683
+ */
3684
+ @property(nonatomic, readonly) BOOL zoomFactorsOutsideOfVideoZoomRangesForDepthDeliverySupported API_AVAILABLE(macos(14.2), ios(17.2), macCatalyst(17.2), tvos(17.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3685
+
3686
+ /*!
3687
+ @property supportedDepthDataFormats
3688
+ @abstract
3689
+ Indicates this format's companion depth data formats.
3690
+
3691
+ @discussion
3692
+ If no depth data formats are supported by the receiver, an empty array is returned. On virtual devices, the supportedDepthDataFormats list items always match the aspect ratio of their paired video format. When the receiver is set as the device's activeFormat, you may set the device's activeDepthDataFormat to one of these supported depth data formats.
3693
+ */
3694
+ @property(nonatomic, readonly) NSArray<AVCaptureDeviceFormat *> *supportedDepthDataFormats API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3695
+
3696
+ /*!
3697
+ @property unsupportedCaptureOutputClasses
3698
+ @abstract
3699
+ A property indicating AVCaptureOutput subclasses the receiver does not support.
3700
+
3701
+ @discussion
3702
+ As a rule, AVCaptureDeviceFormats of a given mediaType are available for use with all AVCaptureOutputs that accept that media type, but there are exceptions. For instance, on apps linked against iOS versions earlier than 12.0, the photo resolution video formats may not be used as sources for AVCaptureMovieFileOutput due to bandwidth limitations. On DualCamera devices, AVCaptureDepthDataOutput is not supported when outputting full resolution (i.e. 12 MP) video due to bandwidth limitations. In order to stream depth data plus video data from a photo format, ensure that your AVCaptureVideoDataOutput's deliversPreviewSizedOutputBuffers property is set to YES. Likewise, to stream depth data while capturing video to a movie file using AVCaptureMovieFileOutput, call -[AVCaptureSession setSessionPreset:AVCaptureSessionPresetPhoto]. When using the photo preset, video is captured at preview resolution rather than the full sensor resolution.
3703
+ */
3704
+ @property(nonatomic, readonly) NSArray<Class> *unsupportedCaptureOutputClasses API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
3705
+
3706
+ /*!
3707
+ @property supportedMaxPhotoDimensions
3708
+ @abstract
3709
+ This property lists all of the supported maximum photo dimensions for this format. The array contains CMVideoDimensions structs encoded as NSValues.
3710
+
3711
+ @discussion
3712
+ Enumerate all supported resolution settings for which this format may be configured to capture photos. Use these values to set AVCapturePhotoOutput.maxPhotoDimensions and AVCapturePhotoSettings.maxPhotoDimensions.
3713
+ */
3714
+ @property(nonatomic, readonly) NSArray<NSValue *> *supportedMaxPhotoDimensions API_AVAILABLE(ios(16.0), macos(13.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
3715
+
3716
+ /*!
3717
+ @property secondaryNativeResolutionZoomFactors
3718
+ @abstract
3719
+ Indicates zoom factors at which this device transitions to secondary native resolution modes.
3720
+
3721
+ @discussion
3722
+ Devices with this property have the means to switch their pixel sampling mode on the fly to produce a high-fidelity, non-upsampled images at a fixed zoom factor beyond 1.0x.
3723
+ */
3724
+ @property(nonatomic, readonly) NSArray<NSNumber *> *secondaryNativeResolutionZoomFactors API_AVAILABLE(ios(16.0), macos(13.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
3725
+
3726
+ /*!
3727
+ @property autoVideoFrameRateSupported
3728
+ @abstract
3729
+ Indicates whether the device format supports auto video frame rate.
3730
+
3731
+ @discussion
3732
+ See -[AVCaptureDevice autoVideoFrameRateEnabled] (above) for a detailed description of the feature.
3733
+ */
3734
+ @property(nonatomic, readonly, getter=isAutoVideoFrameRateSupported) BOOL autoVideoFrameRateSupported API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3735
+
3736
+ @end
3737
+
3738
+
3739
+ API_AVAILABLE(macos(10.7), ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3740
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatDepthDataAdditions)
3741
+
3742
+ /*
3743
+ @property portraitEffectsMatteStillImageDeliverySupported
3744
+ @abstract
3745
+ Indicates whether this depth format supports the delivery of a portrait effects matte.
3746
+
3747
+ @discussion
3748
+ Some depth formats are capable of producing an auxiliary matting image (similar to an auxiliary depth image) tuned for high quality portrait effects rendering (see AVPortraitEffectsMatte.h). If this property's value is YES, you may request portrait effects matte delivery in your photos using the AVCapturePhotoOutput, provided this format is selected as the activeDepthDataFormat.
3749
+ */
3750
+ @property(nonatomic, readonly, getter=isPortraitEffectsMatteStillImageDeliverySupported) BOOL portraitEffectsMatteStillImageDeliverySupported API_AVAILABLE(ios(12.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3751
+
3752
+ @end
3753
+
3754
+
3755
+ API_AVAILABLE(macos(10.7), ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3756
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatMultiCamAdditions)
3757
+
3758
+ /*!
3759
+ @property multiCamSupported
3760
+ @abstract
3761
+ A property indicating whether this format is supported in an AVCaptureMultiCamSession.
3762
+
3763
+ @discussion
3764
+ When using an AVCaptureSession (single camera capture), any of the formats in the device's -formats array may be set as the -activeFormat. However, when used with an AVCaptureMultiCamSession, the device's -activeFormat may only be set to one of the formats for which multiCamSupported answers YES. This limited subset of capture formats are known to run sustainably in a multi camera capture scenario.
3765
+ */
3766
+ @property(nonatomic, readonly, getter=isMultiCamSupported) BOOL multiCamSupported API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos);
3767
+
3768
+ @end
3769
+
3770
+
3771
+ API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3772
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatSpatialVideoCapture)
3773
+
3774
+ /*!
3775
+ @property spatialVideoCaptureSupported
3776
+ @abstract
3777
+ Returns whether or not the format supports capturing spatial video to a file.
3778
+ */
3779
+ @property(nonatomic, readonly, getter=isSpatialVideoCaptureSupported) BOOL spatialVideoCaptureSupported;
3780
+
3781
+ @end
3782
+
3783
+
3784
+ API_AVAILABLE(macos(10.7), ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3785
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatGeometricDistortionCorrection)
3786
+
3787
+ /*!
3788
+ @property geometricDistortionCorrectedVideoFieldOfView
3789
+ @abstract
3790
+ A property indicating the format's horizontal field of view post geometric distortion correction.
3791
+
3792
+ @discussion
3793
+ If the receiver's AVCaptureDevice does not support GDC, geometricDistortionCorrectedVideoFieldOfView matches the videoFieldOfView property.
3794
+ */
3795
+ @property(nonatomic, readonly) float geometricDistortionCorrectedVideoFieldOfView API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
3796
+
3797
+ @end
3798
+
3799
+
3800
+ API_AVAILABLE(macos(10.7), ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3801
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatCenterStage)
3802
+
3803
+ /*!
3804
+ @property centerStageSupported
3805
+ @abstract
3806
+ Indicates whether the format supports the Center Stage feature.
3807
+
3808
+ @discussion
3809
+ This property returns YES if the format supports "Center Stage", which automatically adjusts the camera to keep people optimally framed within the field of view. See +AVCaptureDevice.centerStageEnabled for a detailed discussion.
3810
+ */
3811
+ @property(nonatomic, readonly, getter=isCenterStageSupported) BOOL centerStageSupported API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3812
+
3813
+ /*!
3814
+ @property videoMinZoomFactorForCenterStage
3815
+ @abstract
3816
+ Indicates the minimum zoom factor available for the AVCaptureDevice's videoZoomFactor property when centerStageActive is YES.
3817
+
3818
+ @discussion
3819
+ Devices support a limited zoom range when Center Stage is active. If this device format does not support Center Stage, this property returns 1.0.
3820
+ */
3821
+ @property(nonatomic, readonly) CGFloat videoMinZoomFactorForCenterStage API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3822
+
3823
+ /*!
3824
+ @property videoMaxZoomFactorForCenterStage
3825
+ @abstract
3826
+ Indicates the maximum zoom factor available for the AVCaptureDevice's videoZoomFactor property when centerStageActive is YES.
3827
+
3828
+ @discussion
3829
+ Devices support a limited zoom range when Center Stage is active. If this device format does not support Center Stage, this property returns videoMaxZoomFactor.
3830
+ */
3831
+ @property(nonatomic, readonly) CGFloat videoMaxZoomFactorForCenterStage API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3832
+
3833
+ /*!
3834
+ @property videoFrameRateRangeForCenterStage
3835
+ @abstract
3836
+ Indicates the minimum / maximum frame rates available when centerStageActive is YES.
3837
+
3838
+ @discussion
3839
+ Devices may support a limited frame rate range when Center Stage is active. If this device format does not support Center Stage, this property returns nil.
3840
+ */
3841
+ @property(nonatomic, readonly, nullable) AVFrameRateRange *videoFrameRateRangeForCenterStage API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3842
+
3843
+ @end
3844
+
3845
+
3846
+ API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3847
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatPortraitEffect)
3848
+
3849
+ /*!
3850
+ @property portraitEffectSupported
3851
+ @abstract
3852
+ Indicates whether the format supports the Portrait Effect feature.
3853
+
3854
+ @discussion
3855
+ This property returns YES if the format supports Portrait Effect, the application of a shallow depth of field effect to objects in the background. See +AVCaptureDevice.portraitEffectEnabled for a detailed discussion.
3856
+ */
3857
+ @property(nonatomic, readonly, getter=isPortraitEffectSupported) BOOL portraitEffectSupported API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3858
+
3859
+ /*!
3860
+ @property videoFrameRateRangeForPortraitEffect
3861
+ @abstract
3862
+ Indicates the minimum / maximum frame rates available when portraitEffectActive is YES.
3863
+
3864
+ @discussion
3865
+ Devices may support a limited frame rate range when Portrait Effect is active. If this device format does not support Portrait Effect, this property returns nil.
3866
+ */
3867
+ @property(nonatomic, readonly, nullable) AVFrameRateRange *videoFrameRateRangeForPortraitEffect API_AVAILABLE(macos(12.0), ios(15.0), macCatalyst(15.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3868
+
3869
+ @end
3870
+
3871
+
3872
+ API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3873
+ @interface AVCaptureDevice (AVCaptureDeviceStudioLight)
3874
+
3875
+ /*!
3876
+ @property studioLightEnabled
3877
+ @abstract
3878
+ A class property indicating whether the Studio Light feature is currently enabled in Control Center.
3879
+
3880
+ @discussion
3881
+ This property changes to reflect the Studio Light state in Control Center. It is key-value observable. On iOS, Studio Light only applies to video conferencing apps by default (apps that use "voip" as one of their UIBackgroundModes). Non video conferencing apps may opt in for Studio Light by adding the following key to their Info.plist:
3882
+ <key>NSCameraStudioLightEnabled</key>
3883
+ <true/>
3884
+ */
3885
+ @property(class, readonly, getter=isStudioLightEnabled) BOOL studioLightEnabled API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3886
+
3887
+ /*!
3888
+ @property studioLightActive
3889
+ @abstract
3890
+ Indicates whether Studio Light is currently active on a particular AVCaptureDevice.
3891
+
3892
+ @discussion
3893
+ This readonly property returns YES when Studio Light is currently active on the receiver. When active, the subject's face is artificially lit to simulate the presence of a studio light near the camera.
3894
+ */
3895
+ @property(nonatomic, readonly, getter=isStudioLightActive) BOOL studioLightActive API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3896
+
3897
+ @end
3898
+
3899
+ API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3900
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatStudioLight)
3901
+
3902
+ /*!
3903
+ @property studioLightSupported
3904
+ @abstract
3905
+ Indicates whether the format supports the Studio Light feature.
3906
+
3907
+ @discussion
3908
+ This property returns YES if the format supports Studio Light (artificial re-lighting of the subject's face). See +AVCaptureDevice.studioLightEnabled.
3909
+ */
3910
+ @property(nonatomic, readonly, getter=isStudioLightSupported) BOOL studioLightSupported API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3911
+
3912
+ /*!
3913
+ @property videoFrameRateRangeForStudioLight
3914
+ @abstract
3915
+ Indicates the minimum / maximum frame rates available when studioLight is YES.
3916
+
3917
+ @discussion
3918
+ Devices may support a limited frame rate range when Studio Light is active. If this device format does not support Studio Light, this property returns nil.
3919
+ */
3920
+ @property(nonatomic, readonly, nullable) AVFrameRateRange *videoFrameRateRangeForStudioLight API_AVAILABLE(macos(13.0), ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3921
+
3922
+ @end
3923
+
3924
+
3925
+ API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3926
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatReactionEffects)
3927
+
3928
+ /*!
3929
+ @property reactionEffectsSupported
3930
+ @abstract
3931
+ Indicates whether the format supports the Reaction Effects feature.
3932
+
3933
+ @discussion
3934
+ This property returns YES if the format supports Reaction Effects. See +AVCaptureDevice.reactionEffectsEnabled.
3935
+ */
3936
+ @property(nonatomic, readonly) BOOL reactionEffectsSupported API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3937
+
3938
+ /*!
3939
+ @property videoFrameRateRangeForReactionEffectsInProgress
3940
+ @abstract
3941
+ Indicates the minimum / maximum frame rates available when a reaction effect is running.
3942
+
3943
+ @discussion
3944
+ Unlike the other video effects, enabling reaction effects does not limit the stream's frame rate because most of the time no rendering is being performed. The frame rate will only ramp down when a reaction is actually being rendered on the stream (see AVCaptureDevice.reactionEffectsInProgress)
3945
+ */
3946
+ @property(nonatomic, readonly, nullable) AVFrameRateRange *videoFrameRateRangeForReactionEffectsInProgress API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3947
+
3948
+ @end
3949
+
3950
+
3951
+ API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3952
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatBackgroundReplacement)
3953
+
3954
+ /*!
3955
+ @property backgroundReplacementSupported
3956
+ @abstract
3957
+ Indicates whether the format supports the Background Replacement feature.
3958
+
3959
+ @discussion
3960
+ This property returns YES if the format supports Background Replacement background replacement. See +AVCaptureDevice.backgroundReplacementEnabled.
3961
+ */
3962
+ @property(nonatomic, readonly, getter=isBackgroundReplacementSupported) BOOL backgroundReplacementSupported API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3963
+
3964
+ /*!
3965
+ @property videoFrameRateRangeForBackgroundReplacement
3966
+ @abstract
3967
+ Indicates the minimum / maximum frame rates available when background replacement is active.
3968
+
3969
+ @discussion
3970
+ Devices may support a limited frame rate range when Background Replacement is active. If this device format does not support Background Replacement, this property returns nil.
3971
+ */
3972
+ @property(nonatomic, readonly, nullable) AVFrameRateRange *videoFrameRateRangeForBackgroundReplacement API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3973
+
3974
+ @end
3975
+
3976
+
3977
+ API_AVAILABLE(macos(26.2), ios(26.2), macCatalyst(26.2), tvos(26.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3978
+ @interface AVCaptureDevice (AVCaptureDeviceEdgeLight)
3979
+
3980
+ /// A class property indicating whether the Edge Light feature is currently enabled in Control Center.
3981
+ ///
3982
+ /// This readonly property changes to reflect the Edge Light state in Control Center. It is key-value observable.
3983
+ @property(class, readonly, getter=isEdgeLightEnabled) BOOL edgeLightEnabled API_AVAILABLE(macos(26.2), ios(26.2), macCatalyst(26.2), tvos(26.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3984
+
3985
+ /// A class property indicating whether the edge light UI is actively being shown on a screen.
3986
+ ///
3987
+ /// This readonly property reflects whether the edge light UI is actively being shown on a screen. It is key-value observable.
3988
+ @property(class, readonly, getter=isEdgeLightActive) BOOL edgeLightActive API_AVAILABLE(macos(26.2), ios(26.2), macCatalyst(26.2), tvos(26.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
3989
+
3990
+ @end
3991
+
3992
+
3993
+ API_AVAILABLE(macos(26.2), ios(26.2), macCatalyst(26.2), tvos(26.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
3994
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatEdgeLight)
3995
+
3996
+ /// Indicates whether the format supports the Edge Light feature.
3997
+ ///
3998
+ /// This property returns YES if the device supports the Edge Light feature. See +AVCaptureDevice.edgeLightEnabled.
3999
+ @property(nonatomic, readonly, getter=isEdgeLightSupported) BOOL edgeLightSupported API_AVAILABLE(macos(26.2), ios(26.2), macCatalyst(26.2), tvos(26.2)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4000
+
4001
+ @end
4002
+
4003
+
4004
+ API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
4005
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatCinematicVideoSupport)
4006
+
4007
+ /// Indicates whether the format supports Cinematic Video capture.
4008
+ ///
4009
+ ///This property returns `true` if the format supports Cinematic Video that produces a controllable, simulated depth of field and adds beautiful focus transitions for a cinema-grade look.
4010
+ @property(nonatomic, readonly, getter=isCinematicVideoCaptureSupported) BOOL cinematicVideoCaptureSupported API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4011
+
4012
+ /// Default shallow depth of field simulated aperture.
4013
+ ///
4014
+ /// This property return a non-zero value on devices that support the shallow depth of field effect.
4015
+ @property(nonatomic, readonly) float defaultSimulatedAperture API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4016
+
4017
+ /// Minimum supported shallow depth of field simulated aperture.
4018
+ ///
4019
+ /// On devices that do not support changing the simulated aperture value, this returns a value of `0`.
4020
+ @property(nonatomic, readonly) float minSimulatedAperture API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4021
+
4022
+ /// Maximum supported shallow depth of field simulated aperture.
4023
+ ///
4024
+ /// On devices that do not support changing the simulated aperture value, this returns a value of `0`.
4025
+ @property(nonatomic, readonly) float maxSimulatedAperture API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4026
+
4027
+ /// Indicates the minimum zoom factor available for the ``AVCaptureDevice/videoZoomFactor`` property when Cinematic Video capture is enabled on the device input.
4028
+ ///
4029
+ /// Devices support a limited zoom range when Cinematic Video capture is active. If this device format does not support Cinematic Video capture, this property returns `1.0`.
4030
+ @property(nonatomic, readonly) CGFloat videoMinZoomFactorForCinematicVideo API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4031
+
4032
+ /// Indicates the maximum zoom factor available for the ``AVCaptureDevice/videoZoomFactor`` property when Cinematic Video capture is enabled on the device input.
4033
+ ///
4034
+ /// Devices support a limited zoom range when Cinematic Video capture is active. If this device format does not support Cinematic Video capture, this property returns `1.0`.
4035
+ @property(nonatomic, readonly) CGFloat videoMaxZoomFactorForCinematicVideo API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4036
+
4037
+ /// Indicates the minimum / maximum frame rates available when Cinematic Video capture is enabled on the device input.
4038
+ ///
4039
+ /// Devices may support a limited frame rate range when Cinematic Video capture is active. If this device format does not support Cinematic Video capture, this property returns `nil`.
4040
+ @property(nonatomic, readonly, nullable) AVFrameRateRange *videoFrameRateRangeForCinematicVideo API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4041
+
4042
+ /// Indicates whether the format supports Cinematic Video Metadata capture.
4043
+ ///
4044
+ /// This property returns `true` if the format supports capturing cinematic video metadata alongside video. The metadata enables post-capture cinematic video editing using the Cinematic framework.
4045
+ @property(nonatomic, readonly, getter=isCinematicVideoMetadataCaptureSupported) BOOL cinematicVideoMetadataCaptureSupported API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4046
+
4047
+ @end
4048
+
4049
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos)
4050
+ @interface AVCaptureDeviceFormat (DynamicAspectRatio)
4051
+
4052
+ /// Indicates the supported aspect ratios for the device format.
4053
+ ///
4054
+ /// An array that describes the aspect ratios that are supported for this format. If this device format does not support dynamic aspect ratio, this property returns an empty array.
4055
+ @property(readonly, copy) NSArray<AVCaptureAspectRatio> *supportedDynamicAspectRatios;
4056
+
4057
+ /// Indicates the horizontal field of view for an aspect ratio, either uncorrected or corrected for geometric distortion.
4058
+ ///
4059
+ /// A float indicating the field of view for the corresponding ``AVCaptureAspectRatio``. Set ``AVCaptureDevice/geometricDistortionCorrected`` to `true` to receive the field of view corrected for geometric distortion. If this device format does not support dynamic aspect ratio, this function returns `0`.
4060
+ - (float)videoFieldOfViewForAspectRatio:(AVCaptureAspectRatio)aspectRatio geometricDistortionCorrected:(BOOL)geometricDistortionCorrected NS_SWIFT_NAME(videoFieldOfView(for:geometricDistortionCorrected:));
4061
+
4062
+ @end
4063
+
4064
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos)
4065
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatSmartFraming)
4066
+
4067
+ /// Returns `true` if smart framing is supported by the current format.
4068
+ ///
4069
+ /// An ultra wide camera device that supports dynamic aspect ratio configuration may also support "smart framing monitoring" on particular formats.
4070
+ @property(nonatomic, readonly, getter=isSmartFramingSupported) BOOL smartFramingSupported;
4071
+
4072
+ @end
4073
+
4074
+ API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
4075
+ @interface AVCaptureDeviceFormat (CameraLensSmudgeDetection)
4076
+
4077
+ /// Whether camera lens smudge detection is supported.
4078
+ ///
4079
+ /// This property returns `true` if the session's current configuration supports lens smudge detection. When switching cameras or formats, this property may change. When this property changes from `true` to `false`, ``AVCaptureDevice/cameraLensSmudgeDetectionEnabled`` also reverts to `false`. If you opt in for lens smudge detection and then change configurations, you should set ``AVCaptureDevice/cameraLensSmudgeDetectionEnabled`` to `true` again.
4080
+ @property(nonatomic, readonly, getter=isCameraLensSmudgeDetectionSupported) BOOL cameraLensSmudgeDetectionSupported API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4081
+
4082
+ @end
4083
+
4084
+ API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
4085
+ @interface AVCaptureDevice (CameraLensSmudgeDetection)
4086
+
4087
+ /// Specify whether to enable camera lens smudge detection, and the interval time between each run of detections.
4088
+ ///
4089
+ /// - Parameter cameraLensSmudgeDetectionEnabled: Specify whether camera lens smudge detection should be enabled.
4090
+ /// - Parameter detectionInterval: The detection running interval if detection is enabled.
4091
+ ///
4092
+ /// Each run of detection processes frames over a short period, and produces one detection result. Use `detectionInterval` to specify the interval time between each run of detections. For example, when ``cameraLensSmudgeDetectionEnabled`` is set to `true` and `detectionInterval` is set to 1 minute, detection runs once per minute, and updates ``AVCaptureCameraLensSmudgeDetectionStatus``. If `detectionInterval` is set to ``kCMTimeInvalid``, detection runs only once after the session starts. If `detectionInterval` is set to ``kCMTimeZero``, detection runs continuously.
4093
+ ///
4094
+ /// ``AVCaptureDevice`` throws an `NSInvalidArgumentException` if the ``AVCaptureDeviceFormat/cameraLensSmudgeDetectionSupported`` property on the current active format returns `false`. Enabling detection requires a lengthy reconfiguration of the capture render pipeline, so you should enable detection before calling ``AVCaptureSession/startRunning`` or within ``AVCaptureSession/beginConfiguration`` and ``AVCaptureSession/commitConfiguration`` while running.
4095
+ - (void)setCameraLensSmudgeDetectionEnabled:(BOOL)cameraLensSmudgeDetectionEnabled detectionInterval:(CMTime)detectionInterval API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4096
+
4097
+ /// Whether camera lens smudge detection is enabled.
4098
+ ///
4099
+ /// You enable lens smudge detection by calling ``setCameraLensSmudgeDetectionEnabled:detectionInterval:``. By default, this property is returns `false`.
4100
+ @property(nonatomic, readonly, getter=isCameraLensSmudgeDetectionEnabled) BOOL cameraLensSmudgeDetectionEnabled API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4101
+
4102
+ /// The camera lens smudge detection interval.
4103
+ ///
4104
+ /// ``cameraLensSmudgeDetectionInterval`` is set by calling ``setCameraLensSmudgeDetectionEnabled:detectionInterval:``. By default, this property returns `kCMTimeInvalid`.
4105
+ @property(nonatomic, readonly) CMTime cameraLensSmudgeDetectionInterval API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4106
+
4107
+ /// Constants indicating the current camera lens smudge detection status.
4108
+ typedef NS_ENUM(NSInteger, AVCaptureCameraLensSmudgeDetectionStatus) {
4109
+ /// Indicates that the detection is not enabled.
4110
+ AVCaptureCameraLensSmudgeDetectionStatusDisabled = 0,
4111
+ /// Indicates that the most recent detection found no smudge on the camera lens.
4112
+ AVCaptureCameraLensSmudgeDetectionStatusSmudgeNotDetected = 1,
4113
+ /// Indicates that the most recent detection found the camera lens to be smudged.
4114
+ AVCaptureCameraLensSmudgeDetectionStatusSmudged = 2,
4115
+ /// Indicates that the detection result has not settled, commonly caused by excessive camera movement or the content of the scene.
4116
+ AVCaptureCameraLensSmudgeDetectionStatusUnknown = 3,
4117
+ } API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4118
+
4119
+ /// A value specifying the status of camera lens smudge detection.
4120
+ ///
4121
+ /// During initial detection execution, ``cameraLensSmudgeDetectionStatus`` returns ``AVCaptureCameraLensSmudgeDetectionStatusUnknown`` until the detection result settles. Once a detection result is produced, ``cameraLensSmudgeDetectionStatus`` returns the most recent detection result. This property can be key-value observed.
4122
+ @property(nonatomic, readonly) AVCaptureCameraLensSmudgeDetectionStatus cameraLensSmudgeDetectionStatus API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4123
+
4124
+ @end
4125
+
4126
+
4127
+ API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
4128
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatContinuousAutoFocusTracking)
4129
+
4130
+ /// Indicates whether the device format supports continuous autofocus tracking.
4131
+ ///
4132
+ /// Continuous autofocus tracking allows the device to keep a subject in focus by monitoring it as it moves throughout the scene. The device's ``continuousAutoFocusTrackingEnabled`` property can only be set if this property returns `true`.
4133
+ @property(nonatomic, readonly, getter=isContinuousAutoFocusTrackingSupported) BOOL continuousAutoFocusTrackingSupported API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
4134
+
4135
+ @end
4136
+
4137
+ API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(watchos)
4138
+ @interface AVCaptureDeviceFormat (AVCaptureDeviceFormatLowLightVideoNoiseReduction)
4139
+
4140
+ /// Indicates whether the format supports low light video noise reduction.
4141
+ ///
4142
+ /// This property returns `true` if the format supports low light video noise reduction.
4143
+ @property(nonatomic, readonly, getter=isLowLightVideoNoiseReductionSupported) BOOL lowLightVideoNoiseReductionSupported API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(watchos);
4144
+
4145
+ @end
4146
+
4147
+ #pragma mark - AVCaptureDeviceInputSource
4148
+
4149
+ @class AVCaptureDeviceInputSourceInternal;
4150
+
4151
+ /*!
4152
+ @class AVCaptureDeviceInputSource
4153
+ @abstract
4154
+ An AVCaptureDeviceInputSource represents a distinct input source on an AVCaptureDevice object.
4155
+
4156
+ @discussion
4157
+ An AVCaptureDevice may optionally present an array of inputSources, representing distinct mutually exclusive inputs to the device, for example, an audio AVCaptureDevice might have ADAT optical and analog input sources. A video AVCaptureDevice might have an HDMI input source, or a component input source.
4158
+ */
4159
+ API_AVAILABLE(macos(10.7)) API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos)
4160
+ @interface AVCaptureDeviceInputSource : NSObject
4161
+ {
4162
+ @private
4163
+ AVCaptureDeviceInputSourceInternal *_internal;
4164
+ }
4165
+
4166
+ AV_INIT_UNAVAILABLE
4167
+
4168
+ /*!
4169
+ @property inputSourceID
4170
+ @abstract
4171
+ An ID unique among the inputSources exposed by a given AVCaptureDevice.
4172
+
4173
+ @discussion
4174
+ An AVCaptureDevice's inputSources array must contain AVCaptureInputSource objects with unique inputSourceIDs.
4175
+ */
4176
+ @property(nonatomic, readonly) NSString *inputSourceID;
4177
+
4178
+ /*!
4179
+ @property localizedName
4180
+ @abstract
4181
+ A localized human-readable name for the receiver.
4182
+
4183
+ @discussion
4184
+ This property can be used for displaying the name of the capture device input source in a user interface.
4185
+ */
4186
+ @property(nonatomic, readonly) NSString *localizedName;
4187
+
4188
+ @end
4189
+
4190
+ NS_ASSUME_NONNULL_END
4191
+
4192
+ #else
4193
+ #import <AVFCapture/AVCaptureDevice.h>
4194
+ #endif