peachsim 0.1.1744 → 0.1.1801
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/cli/account-gate.ts +97 -0
- package/cli/app-catalog.ts +24 -0
- package/cli/app-stubs.ts +7 -0
- package/cli/auth.ts +48 -18
- package/cli/bin.ts +35 -2
- package/cli/bridge-flow-runner.ts +174 -6
- package/cli/cloud-dispatch.ts +0 -3
- package/cli/command-registry.ts +2 -6
- package/cli/commands/auth.ts +68 -3
- package/cli/commands/compat.ts +1116 -0
- package/cli/commands/control.ts +90 -13
- package/cli/commands/coverage.ts +85 -116
- package/cli/commands/detox.ts +20 -20
- package/cli/commands/device.ts +31 -27
- package/cli/commands/doctor.ts +76 -1032
- package/cli/commands/flow.ts +80 -41
- package/cli/commands/guest-host.ts +2 -2
- package/cli/commands/inspect/core.ts +8 -7
- package/cli/commands/inspect/settling.ts +60 -25
- package/cli/commands/inspect/wait-ready.ts +6 -4
- package/cli/commands/inspect/wait-selector.ts +32 -18
- package/cli/commands/inspect.ts +8 -6
- package/cli/commands/kotlin.ts +15 -6
- package/cli/commands/logout.ts +4 -2
- package/cli/commands/maestro-compare.ts +19 -37
- package/cli/commands/maestro-generate.ts +4 -4
- package/cli/commands/maestro.ts +56 -37
- package/cli/commands/package.ts +136 -57
- package/cli/commands/preview.ts +10 -1
- package/cli/commands/{film.ts → record-three.ts} +33 -28
- package/cli/commands/record.ts +41 -39
- package/cli/commands/screenshots.ts +4 -0
- package/cli/commands/setup.ts +38 -1
- package/cli/commands/shell-url.ts +49 -24
- package/cli/commands/swift.ts +29 -11
- package/cli/commands/test.ts +43 -13
- package/cli/commands/upload.ts +12 -9
- package/cli/drivers/playwright-core-pin.ts +2 -2
- package/cli/flow-export.ts +1 -1
- package/cli/flow-file.ts +1 -1
- package/cli/internal-child.ts +3 -8
- package/cli/maestro-compare.ts +73 -7
- package/cli/maestro-js.ts +1 -1
- package/cli/maestro-report.ts +1 -1
- package/cli/maestro-workspace.ts +66 -4
- package/cli/main.ts +22 -55
- package/cli/native-input.ts +13 -20
- package/cli/outbound-endpoints.ts +40 -7
- package/cli/output-redaction.ts +8 -3
- package/cli/packaged-app-launcher.ts +40 -28
- package/cli/prompt.ts +20 -0
- package/cli/recording-access.ts +7 -7
- package/cli/run-registry.ts +1 -1
- package/cli/scene-video.ts +0 -4
- package/cli/ws-bridge.ts +7 -4
- package/detox/index.ts +293 -50
- package/detox/jest-preset.cjs +6 -0
- package/detox/launch-permissions.ts +1 -21
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -8
- package/dist-lib/bridge-contract.mjs +2 -7
- package/dist-lib/bundle-channel.cjs +45273 -38265
- package/dist-lib/capture-contract.cjs +37 -14
- package/dist-lib/capture-contract.mjs +36 -13
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +2 -2
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +562 -126
- package/dist-lib/detox/jest-preset.cjs +6 -0
- package/dist-lib/dev-bundle-resolution.cjs +18 -13
- package/dist-lib/expo-swift-bundle.cjs +28566 -23874
- package/dist-lib/expo-swift-metadata.cjs +104 -2
- package/dist-lib/expo-swift-metadata.mjs +104 -2
- package/dist-lib/home-paths.cjs +8 -5
- package/dist-lib/host/bridge-host.cjs +36618 -29846
- package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +5 -2
- package/dist-lib/index.cjs +1921 -1549
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +21 -7
- package/dist-lib/menu.mjs +21 -7
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1877 -1584
- package/dist-lib/native-app-identity-project.cjs +1274 -951
- package/dist-lib/native-app-identity-project.mjs +1414 -963
- package/dist-lib/native-app-identity.cjs +64 -58
- package/dist-lib/native-app-identity.mjs +64 -58
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -33
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +484 -280
- package/dist-lib/react-native-host-modules.cjs +3 -1
- package/dist-lib/react-native-host-modules.mjs +3 -1
- package/dist-lib/reap-browser.cjs +23 -26
- package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
- package/dist-lib/sdk.cjs +69 -36
- package/dist-lib/sdk.mjs +69 -36
- package/dist-lib/skills.cjs +33781 -27141
- package/dist-lib/swift-compile.cjs +3759 -2520
- package/dist-lib/swift-compile.mjs +3680 -2441
- package/dist-lib/swift-package.cjs +33 -1
- package/dist-lib/swift-package.mjs +31 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +102 -5
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16480 -14579
- package/dist-lib/vite.cjs +269 -295
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
- package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
- package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
- package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
- package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
- package/install.sh +20 -1
- package/package.json +6 -5
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
- package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
- package/sdk/ios/usr/include/MacTypes.h +8 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
- package/sdk/ios/wasm/include/fcntl.h +1 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/native-hashes.json +11 -1
- package/skills/contrast/SKILL.md +4 -9
- package/skills/peach-perf/SKILL.md +3 -1
- package/skills/peach-perf/references/profiling.md +1 -1
- package/skills/peach-test/SKILL.md +20 -17
- package/skills/peach-test/references/detox.md +7 -7
- package/skills/peach-test/references/maestro.md +20 -18
- package/src/admitted-mac-build.ts +7 -0
- package/src/android-autolinking.ts +2 -2
- package/src/android-drawables.ts +5 -5
- package/src/android-string-value.ts +1 -1
- package/src/android-strings.ts +1 -1
- package/src/android-theme.ts +2 -2
- package/src/appPackageContract.ts +1 -1
- package/src/bridge-contract.ts +12 -16
- package/src/build-cache.ts +65 -0
- package/src/bundle-channel.mjs +69 -9
- package/src/capture-contract.ts +55 -17
- package/src/chromium-admission.ts +24 -21
- package/src/conformance-comparison-contract.ts +105 -40
- package/src/dev-bundle-resolution.ts +23 -10
- package/src/device-catalog.ts +35 -2
- package/src/disk-cleanup.ts +18 -8
- package/src/expo-autolinking.ts +24 -0
- package/src/expo-discovery-cache.ts +168 -23
- package/src/expo-native-workspace.ts +551 -191
- package/src/expo-swift-host.ts +711 -314
- package/src/expo-swift-ready.ts +39 -5
- package/src/expo-widget-assets.ts +2 -2
- package/src/expo-widgets-bundle.ts +56 -0
- package/src/expo-workspace-exclusion.ts +62 -0
- package/src/expoSwiftContract.ts +27 -4
- package/src/forked-script-contract.ts +3 -0
- package/src/home-paths.ts +10 -6
- package/src/host/bridge-host.ts +27 -0
- package/src/host/network-policy.ts +1 -1
- package/src/kotlin-app.ts +9 -11
- package/src/kotlin-host.ts +2 -2
- package/src/launchMetadataContract.ts +5 -0
- package/src/menu.ts +19 -5
- package/src/native-app-identity-project.ts +35 -49
- package/src/native-app-identity.ts +5 -6
- package/src/native-firebase-config.ts +10 -48
- package/src/native-prebuilt.ts +3 -2
- package/src/native-slices.ts +39 -0
- package/src/native-static-libraries.ts +73 -0
- package/src/nitro-adapter.lock.json +249 -249
- package/src/nitro-adapter.ts +16 -5
- package/src/nitro-bundle.ts +35 -16
- package/src/nitro-compile.ts +254 -16
- package/src/nitro-compiler-digest.ts +39 -0
- package/src/nitro-dependencies.ts +368 -28
- package/src/nitro-source.ts +432 -77
- package/src/nitro-superset.lock.json +27 -36
- package/src/nitro-superset.ts +6 -0
- package/src/nitroAdapterContract.ts +52 -0
- package/src/nitroContract.ts +40 -4
- package/src/numbered-lock.ts +2 -2
- package/src/one-native-app-accent.ts +32 -0
- package/src/one-widget-discovery.ts +6 -1
- package/src/one-widget-metadata.ts +2 -2
- package/src/portable-expo-contract.ts +103 -0
- package/src/portable-expo-workspace.ts +94 -0
- package/src/prepared-native-inventory.ts +93 -0
- package/src/prepared-xcode-phases.ts +194 -0
- package/src/process-group.ts +8 -15
- package/src/process-table.ts +117 -0
- package/src/react-native-bridge-modules.ts +240 -14
- package/src/react-native-coverage/native-typescript-parser.ts +11 -2
- package/src/react-native-coverage/verified-reach.ts +12 -6
- package/src/react-native-host-modules.ts +2 -0
- package/src/reap-browser.ts +13 -9
- package/src/retired-cache-directory.ts +34 -0
- package/src/runtime-assets.ts +1 -0
- package/src/screenshots/orchestrate.ts +4 -0
- package/src/screenshots/schema.ts +2 -2
- package/src/storageSnapshotContract.ts +9 -2
- package/src/stub-pattern-matcher.ts +53 -19
- package/src/swift-compile.ts +1011 -327
- package/src/swift-compiler-digest.ts +3 -0
- package/src/swift-coverage/indexing.ts +1 -1
- package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
- package/src/swift-coverage/xcode-assets.ts +2 -1
- package/src/swift-cxx-declarations.ts +114 -130
- package/src/swift-cxx-standin.ts +3 -3
- package/src/swift-darwin-records.ts +88 -0
- package/src/swift-distribution.lock.json +15 -12
- package/src/swift-distribution.ts +25 -9
- package/src/swift-host.ts +443 -142
- package/src/swift-icu.ts +72 -4
- package/src/swift-link-roots.ts +2 -0
- package/src/swift-objc-compile.ts +312 -65
- package/src/swift-objc-import.ts +8 -1
- package/src/swift-objc-standin.ts +20 -2
- package/src/swift-package-manifest.ts +189 -57
- package/src/swift-package.ts +51 -0
- package/src/swift-packages.ts +117 -45
- package/src/swift-pdf-raster.ts +7 -4
- package/src/swift-project-user.ts +183 -0
- package/src/swift-reproducible.ts +26 -0
- package/src/swift-root-lock.ts +34 -62
- package/src/swift-shared-sdk.ts +232 -21
- package/src/swift-source-pods.ts +9 -2
- package/src/swift-standin-emit.ts +248 -7
- package/src/swift-standins.ts +130 -108
- package/src/swift-submit.ts +3 -0
- package/src/swift-toolchain.ts +109 -8
- package/src/swift-wasm-prune.ts +210 -55
- package/src/swiftContract.ts +14 -0
- package/src/swiftGuestImageContract.ts +113 -0
- package/src/turbo-bundle.ts +5 -8
- package/src/turbo-codegen-intake.ts +134 -0
- package/src/turbo-compile.ts +198 -21
- package/src/turbo-native-libraries.ts +98 -0
- package/src/turbo-runtime.lock.json +25 -18
- package/src/turbo-source.ts +1519 -147
- package/src/vite-plugin-one.ts +25 -3
- package/src/vite-plugin-swift.ts +5 -1
- package/src/vite-plugin.ts +40 -18
- package/src/worker-system-chunks.ts +103 -15
- package/src/worklets-babel.ts +50 -29
- package/src/xcode-header-search.ts +15 -5
- package/src/xcode-project.ts +444 -88
- package/src/xcode-target-members.ts +72 -63
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
|
@@ -0,0 +1,1360 @@
|
|
|
1
|
+
#if !__has_include(<AVFCapture/AVCaptureSession.h>)
|
|
2
|
+
/*
|
|
3
|
+
File: AVCaptureSession.h
|
|
4
|
+
|
|
5
|
+
Framework: AVFoundation
|
|
6
|
+
|
|
7
|
+
Copyright 2010-2024 Apple Inc. All rights reserved.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#import <AVFoundation/AVBase.h>
|
|
11
|
+
#import <AVFoundation/AVCaptureDevice.h>
|
|
12
|
+
#import <AVFoundation/AVCaptureSessionPreset.h>
|
|
13
|
+
#import <Foundation/Foundation.h>
|
|
14
|
+
#import <CoreMedia/CMSync.h>
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
/*!
|
|
19
|
+
@constant AVCaptureSessionRuntimeErrorNotification
|
|
20
|
+
@abstract
|
|
21
|
+
Posted when an unexpected error occurs while an AVCaptureSession instance is running.
|
|
22
|
+
|
|
23
|
+
@discussion
|
|
24
|
+
The notification object is the AVCaptureSession instance that encountered a runtime error. The userInfo dictionary contains an NSError for the key AVCaptureSessionErrorKey.
|
|
25
|
+
*/
|
|
26
|
+
AVF_EXPORT NSNotificationName const AVCaptureSessionRuntimeErrorNotification NS_SWIFT_NAME(AVCaptureSession.runtimeErrorNotification) API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
@constant AVCaptureSessionErrorKey
|
|
30
|
+
@abstract
|
|
31
|
+
The key used to provide an NSError describing the failure condition in an AVCaptureSessionRuntimeErrorNotification.
|
|
32
|
+
|
|
33
|
+
@discussion
|
|
34
|
+
AVCaptureSessionErrorKey may be found in the userInfo dictionary provided with an AVCaptureSessionRuntimeErrorNotification. The NSError associated with the notification gives greater detail on the nature of the error, and in some cases recovery suggestions.
|
|
35
|
+
*/
|
|
36
|
+
AVF_EXPORT NSString *const AVCaptureSessionErrorKey API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
37
|
+
|
|
38
|
+
/*!
|
|
39
|
+
@constant AVCaptureSessionDidStartRunningNotification
|
|
40
|
+
@abstract
|
|
41
|
+
Posted when an instance of AVCaptureSession successfully starts running.
|
|
42
|
+
|
|
43
|
+
@discussion
|
|
44
|
+
Clients may observe the AVCaptureSessionDidStartRunningNotification to know when an instance of AVCaptureSession starts running.
|
|
45
|
+
*/
|
|
46
|
+
AVF_EXPORT NSNotificationName const AVCaptureSessionDidStartRunningNotification NS_SWIFT_NAME(AVCaptureSession.didStartRunningNotification) API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
47
|
+
|
|
48
|
+
/*!
|
|
49
|
+
@constant AVCaptureSessionDidStopRunningNotification
|
|
50
|
+
@abstract
|
|
51
|
+
Posted when an instance of AVCaptureSession stops running.
|
|
52
|
+
|
|
53
|
+
@discussion
|
|
54
|
+
Clients may observe the AVCaptureSessionDidStopRunningNotification to know when an instance of AVCaptureSession stops running. An AVCaptureSession instance may stop running automatically due to external system conditions, such as the device going to sleep, or being locked by a user.
|
|
55
|
+
*/
|
|
56
|
+
AVF_EXPORT NSNotificationName const AVCaptureSessionDidStopRunningNotification NS_SWIFT_NAME(AVCaptureSession.didStopRunningNotification) API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
57
|
+
|
|
58
|
+
/*!
|
|
59
|
+
@constant AVCaptureSessionWasInterruptedNotification
|
|
60
|
+
@abstract
|
|
61
|
+
Posted when an instance of AVCaptureSession becomes interrupted.
|
|
62
|
+
|
|
63
|
+
@discussion
|
|
64
|
+
Clients may observe the AVCaptureSessionWasInterruptedNotification to know when an instance of AVCaptureSession has been interrupted, for example, by an incoming phone call, or alarm, or another application taking control of needed hardware resources. When appropriate, the AVCaptureSession instance will stop running automatically in response to an interruption.
|
|
65
|
+
|
|
66
|
+
Beginning in iOS 9.0, the AVCaptureSessionWasInterruptedNotification userInfo dictionary contains an AVCaptureSessionInterruptionReasonKey indicating the reason for the interruption.
|
|
67
|
+
*/
|
|
68
|
+
AVF_EXPORT NSNotificationName const AVCaptureSessionWasInterruptedNotification NS_SWIFT_NAME(AVCaptureSession.wasInterruptedNotification) API_AVAILABLE(macos(10.14), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/// Constants indicating interruption reason. One of these is returned with the ``AVCaptureSessionWasInterruptedNotification`` (see ``AVCaptureSessionInterruptionReasonKey``).
|
|
72
|
+
typedef NS_ENUM(NSInteger, AVCaptureSessionInterruptionReason) {
|
|
73
|
+
/// An interruption caused by the app being sent to the background while using a camera. Camera usage is prohibited while in the background. Beginning in iOS 9.0, ``AVCaptureSession`` no longer produces an ``AVCaptureSessionRuntimeErrorNotification`` if you attempt to start running a camera while in the background. Instead, it sends an ``AVCaptureSessionWasInterruptedNotification`` with ``AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground``. Provided you don't explicitly call ``AVCaptureSession/stopRunning``, your ``AVCaptureSession/startRunning`` request is preserved, and when your app comes back to foreground, you receive ``AVCaptureSessionInterruptionEndedNotification`` and your session starts running.
|
|
74
|
+
AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground = 1,
|
|
75
|
+
/// An interruption caused by the audio hardware temporarily being made unavailable, for instance, for a phone call, or alarm.
|
|
76
|
+
AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient = 2,
|
|
77
|
+
/// An interruption caused by the video device temporarily being made unavailable, for instance, when stolen away by another ``AVCaptureSession``.
|
|
78
|
+
AVCaptureSessionInterruptionReasonVideoDeviceInUseByAnotherClient = 3,
|
|
79
|
+
/// An interruption caused when the app is running in a multi-app layout, causing resource contention and degraded recording quality of service. Given your present ``AVCaptureSession`` configuration, the session may only be run if your app occupies the full screen.
|
|
80
|
+
AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps = 4,
|
|
81
|
+
/// An interruption caused by the video device temporarily being made unavailable due to system pressure, such as thermal duress. See ``AVCaptureDevice/systemPressureState`` for more information.
|
|
82
|
+
AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure API_AVAILABLE(ios(11.1), macCatalyst(14.0), visionos(1.0)) = 5,
|
|
83
|
+
/// An interruption caused by a ``SCVideoStreamAnalyzer`` when it detects sensitive content on an associated ``AVCaptureDeviceInput``. To resume your capture session, call your analyzer's ``SCVideoStreamAnalyzer/continueStream`` method.
|
|
84
|
+
AVCaptureSessionInterruptionReasonSensitiveContentMitigationActivated API_AVAILABLE(ios(26.0), macCatalyst(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(macos) = 6,
|
|
85
|
+
} API_AVAILABLE(ios(9.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos);
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/*!
|
|
89
|
+
@constant AVCaptureSessionInterruptionReasonKey
|
|
90
|
+
@abstract
|
|
91
|
+
The key used to provide an NSNumber describing the interruption reason in an AVCaptureSessionWasInterruptedNotification.
|
|
92
|
+
|
|
93
|
+
@discussion
|
|
94
|
+
AVCaptureSessionInterruptionReasonKey may be found in the userInfo dictionary provided with an AVCaptureSessionWasInterruptedNotification. The NSNumber associated with the notification tells you why the interruption occurred.
|
|
95
|
+
*/
|
|
96
|
+
AVF_EXPORT NSString *const AVCaptureSessionInterruptionReasonKey API_AVAILABLE(ios(9.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos);
|
|
97
|
+
|
|
98
|
+
/*!
|
|
99
|
+
@constant AVCaptureSessionInterruptionSystemPressureStateKey
|
|
100
|
+
@abstract
|
|
101
|
+
The key used to provide an AVCaptureSystemPressureState indicating the system pressure level and contributing factors that caused the interruption.
|
|
102
|
+
|
|
103
|
+
@discussion
|
|
104
|
+
This key is only present when the AVCaptureSessionInterruptionReasonKey equals AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure.
|
|
105
|
+
*/
|
|
106
|
+
AVF_EXPORT NSString *const AVCaptureSessionInterruptionSystemPressureStateKey API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos);
|
|
107
|
+
|
|
108
|
+
/*!
|
|
109
|
+
@constant AVCaptureSessionInterruptionEndedNotification
|
|
110
|
+
@abstract
|
|
111
|
+
Posted when an instance of AVCaptureSession ceases to be interrupted.
|
|
112
|
+
|
|
113
|
+
@discussion
|
|
114
|
+
Clients may observe the AVCaptureSessionInterruptionEndedNotification to know when an instance of AVCaptureSession ceases to be interrupted, for example, when a phone call ends, and hardware resources needed to run the session are again available. When appropriate, the AVCaptureSession instance that was previously stopped in response to an interruption will automatically restart once the interruption ends.
|
|
115
|
+
*/
|
|
116
|
+
AVF_EXPORT NSNotificationName const AVCaptureSessionInterruptionEndedNotification NS_SWIFT_NAME(AVCaptureSession.interruptionEndedNotification) API_AVAILABLE(macos(10.14), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
117
|
+
|
|
118
|
+
#pragma mark - AVCaptureSession
|
|
119
|
+
|
|
120
|
+
@class AVCaptureInput;
|
|
121
|
+
@class AVCaptureOutput;
|
|
122
|
+
@class AVCaptureConnection;
|
|
123
|
+
@class AVCaptureControl;
|
|
124
|
+
@class AVCaptureSessionInternal;
|
|
125
|
+
@protocol AVCaptureSessionControlsDelegate;
|
|
126
|
+
@protocol AVCaptureSessionDeferredStartDelegate;
|
|
127
|
+
|
|
128
|
+
/*!
|
|
129
|
+
@class AVCaptureSession
|
|
130
|
+
@abstract
|
|
131
|
+
AVCaptureSession is the central hub of the AVFoundation capture classes.
|
|
132
|
+
|
|
133
|
+
@discussion
|
|
134
|
+
To perform a real-time capture, a client may instantiate AVCaptureSession and add appropriate AVCaptureInputs, such as AVCaptureDeviceInput, and outputs, such as AVCaptureMovieFileOutput. [AVCaptureSession startRunning] starts the flow of data from the inputs to the outputs, and [AVCaptureSession stopRunning] stops the flow. A client may set the sessionPreset property to customize the quality level or bitrate of the output.
|
|
135
|
+
*/
|
|
136
|
+
API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
|
|
137
|
+
@interface AVCaptureSession : NSObject
|
|
138
|
+
{
|
|
139
|
+
@private
|
|
140
|
+
AVCaptureSessionInternal *_internal;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/*!
|
|
144
|
+
@method canSetSessionPreset:
|
|
145
|
+
@abstract
|
|
146
|
+
Returns whether the receiver can be configured with the given preset.
|
|
147
|
+
|
|
148
|
+
@param preset
|
|
149
|
+
An AVCaptureSession preset.
|
|
150
|
+
@result
|
|
151
|
+
YES if the receiver can be set to the given preset, NO otherwise.
|
|
152
|
+
|
|
153
|
+
@discussion
|
|
154
|
+
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 supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
|
|
155
|
+
*/
|
|
156
|
+
- (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
|
|
157
|
+
|
|
158
|
+
/*!
|
|
159
|
+
@property sessionPreset
|
|
160
|
+
@abstract
|
|
161
|
+
Indicates the session preset currently in use by the receiver.
|
|
162
|
+
|
|
163
|
+
@discussion
|
|
164
|
+
The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
|
|
165
|
+
*/
|
|
166
|
+
@property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
|
|
167
|
+
|
|
168
|
+
/*!
|
|
169
|
+
@property inputs
|
|
170
|
+
@abstract
|
|
171
|
+
An NSArray of AVCaptureInputs currently added to the receiver.
|
|
172
|
+
|
|
173
|
+
@discussion
|
|
174
|
+
The value of this property is an NSArray of AVCaptureInputs currently added to the receiver. Clients can add AVCaptureInputs to a session by calling -addInput:.
|
|
175
|
+
*/
|
|
176
|
+
@property(nonatomic, readonly) NSArray<__kindof AVCaptureInput *> *inputs;
|
|
177
|
+
|
|
178
|
+
/*!
|
|
179
|
+
@method canAddInput:
|
|
180
|
+
@abstract
|
|
181
|
+
Returns whether the proposed input can be added to the receiver.
|
|
182
|
+
|
|
183
|
+
@param input
|
|
184
|
+
An AVCaptureInput instance.
|
|
185
|
+
@result
|
|
186
|
+
YES if the proposed input can be added to the receiver, NO otherwise.
|
|
187
|
+
|
|
188
|
+
@discussion
|
|
189
|
+
An AVCaptureInput instance can only be added to a session using -addInput: if -canAddInput: returns YES, otherwise an NSInvalidArgumentException is thrown.
|
|
190
|
+
*/
|
|
191
|
+
- (BOOL)canAddInput:(AVCaptureInput *)input;
|
|
192
|
+
|
|
193
|
+
/*!
|
|
194
|
+
@method addInput:
|
|
195
|
+
@abstract
|
|
196
|
+
Adds an AVCaptureInput to the session.
|
|
197
|
+
|
|
198
|
+
@param input
|
|
199
|
+
An AVCaptureInput instance.
|
|
200
|
+
|
|
201
|
+
@discussion
|
|
202
|
+
An AVCaptureInput instance can only be added to a session using -addInput: if -canAddInput: returns YES, otherwise an NSInvalidArgumentException is thrown. -addInput: may be called while the session is running.
|
|
203
|
+
*/
|
|
204
|
+
- (void)addInput:(AVCaptureInput *)input;
|
|
205
|
+
|
|
206
|
+
/*!
|
|
207
|
+
@method removeInput:
|
|
208
|
+
@abstract
|
|
209
|
+
Removes an AVCaptureInput from the session.
|
|
210
|
+
|
|
211
|
+
@param input
|
|
212
|
+
An AVCaptureInput instance.
|
|
213
|
+
|
|
214
|
+
@discussion
|
|
215
|
+
-removeInput: may be called while the session is running.
|
|
216
|
+
*/
|
|
217
|
+
- (void)removeInput:(AVCaptureInput *)input;
|
|
218
|
+
|
|
219
|
+
/*!
|
|
220
|
+
@property outputs
|
|
221
|
+
@abstract
|
|
222
|
+
An NSArray of AVCaptureOutputs currently added to the receiver.
|
|
223
|
+
|
|
224
|
+
@discussion
|
|
225
|
+
The value of this property is an NSArray of AVCaptureOutputs currently added to the receiver. Clients can add AVCaptureOutputs to a session by calling -addOutput:.
|
|
226
|
+
*/
|
|
227
|
+
@property(nonatomic, readonly) NSArray<__kindof AVCaptureOutput *> *outputs;
|
|
228
|
+
|
|
229
|
+
/*!
|
|
230
|
+
@method canAddOutput:
|
|
231
|
+
@abstract
|
|
232
|
+
Returns whether the proposed output can be added to the receiver.
|
|
233
|
+
|
|
234
|
+
@param output
|
|
235
|
+
An AVCaptureOutput instance.
|
|
236
|
+
@result
|
|
237
|
+
YES if the proposed output can be added to the receiver, NO otherwise.
|
|
238
|
+
|
|
239
|
+
@discussion
|
|
240
|
+
An AVCaptureOutput instance can only be added to a session using -addOutput: if -canAddOutput: returns YES, otherwise an NSInvalidArgumentException is thrown.
|
|
241
|
+
|
|
242
|
+
On iOS and Mac Catalyst, some limitations to adding combinations of different types of outputs apply:
|
|
243
|
+
- A maximum of one output of each type may be added. For applications linked on or after iOS 16.0, this restriction no longer applies to AVCaptureVideoDataOutputs. When adding more than one AVCaptureVideoDataOutput, AVCaptureSession.hardwareCost must be taken into account.
|
|
244
|
+
- A session cannot contain both an AVCaptureStillImageOutput and an AVCapturePhotoOutput at the same time.
|
|
245
|
+
- Prior to iOS 16.0, an AVCaptureVideoDataOutput and an AVCaptureMovieFileOutput may be added to the same session, but only one may have its connection active. When both have their connections enabled, the AVCaptureMovieFileOutput "wins" and the AVCaptureVideoDataOutput's connection becomes inactive. For applications linked on or after iOS 16.0, this restriction has been lifted. When adding multiple AVCaptureVideoDataOutputs or a combination of AVCaptureVideoDataOutputs and an AVCaptureMovieFileOutput, AVCaptureSession.hardwareCost must be taken into account.
|
|
246
|
+
- Similarly, prior to iOS 16.0, an AVCaptureAudioDataOutput and an AVCaptureMovieFileOutput may be added to the same session, but only one may have its connection active. When both have their connections enabled, the AVCaptureMovieFileOutput "wins" and the AVCaptureAudioDataOutput's connection becomes inactive. For applications linked on or after iOS 16.0, this restriction has been lifted.
|
|
247
|
+
*/
|
|
248
|
+
- (BOOL)canAddOutput:(AVCaptureOutput *)output;
|
|
249
|
+
|
|
250
|
+
/*!
|
|
251
|
+
@method addOutput:
|
|
252
|
+
@abstract
|
|
253
|
+
Adds an AVCaptureOutput to the session.
|
|
254
|
+
|
|
255
|
+
@param output
|
|
256
|
+
An AVCaptureOutput instance.
|
|
257
|
+
|
|
258
|
+
@discussion
|
|
259
|
+
An AVCaptureOutput instance can only be added to a session using -addOutput: if -canAddOutput: returns YES, otherwise an NSInvalidArgumentException is thrown. -addOutput: may be called while the session is running.
|
|
260
|
+
*/
|
|
261
|
+
- (void)addOutput:(AVCaptureOutput *)output;
|
|
262
|
+
|
|
263
|
+
/*!
|
|
264
|
+
@method removeOutput:
|
|
265
|
+
@abstract
|
|
266
|
+
Removes an AVCaptureOutput from the session.
|
|
267
|
+
|
|
268
|
+
@param output
|
|
269
|
+
An AVCaptureOutput instance.
|
|
270
|
+
|
|
271
|
+
@discussion
|
|
272
|
+
-removeOutput: may be called while the session is running.
|
|
273
|
+
*/
|
|
274
|
+
- (void)removeOutput:(AVCaptureOutput *)output;
|
|
275
|
+
|
|
276
|
+
/*!
|
|
277
|
+
@method addInputWithNoConnections:
|
|
278
|
+
@abstract
|
|
279
|
+
Adds an AVCaptureInput to the session without forming any connections.
|
|
280
|
+
|
|
281
|
+
@param input
|
|
282
|
+
An AVCaptureInput instance.
|
|
283
|
+
|
|
284
|
+
@discussion
|
|
285
|
+
An AVCaptureInput instance can only be added to a session using -addInputWithNoConnections: if -canAddInput: returns YES, otherwise an NSInvalidArgumentException is thrown. -addInputWithNoConnections: may be called while the session is running. The -addInput: method is the preferred method for adding an input to an AVCaptureSession. -addInputWithNoConnections: may be called if you need fine-grained control over which inputs are connected to which outputs.
|
|
286
|
+
*/
|
|
287
|
+
- (void)addInputWithNoConnections:(AVCaptureInput *)input API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
288
|
+
|
|
289
|
+
/*!
|
|
290
|
+
@method addOutputWithNoConnections:
|
|
291
|
+
@abstract
|
|
292
|
+
Adds an AVCaptureOutput to the session without forming any connections.
|
|
293
|
+
|
|
294
|
+
@param output
|
|
295
|
+
An AVCaptureOutput instance.
|
|
296
|
+
|
|
297
|
+
@discussion
|
|
298
|
+
An AVCaptureOutput instance can only be added to a session using -addOutputWithNoConnections: if -canAddOutput: returns YES, otherwise an NSInvalidArgumentException is thrown. -addOutputWithNoConnections: may be called while the session is running. The -addOutput: method is the preferred method for adding an output to an AVCaptureSession. -addOutputWithNoConnections: may be called if you need fine-grained control over which inputs are connected to which outputs.
|
|
299
|
+
*/
|
|
300
|
+
- (void)addOutputWithNoConnections:(AVCaptureOutput *)output API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
301
|
+
|
|
302
|
+
/*!
|
|
303
|
+
@property connections
|
|
304
|
+
@abstract
|
|
305
|
+
An NSArray of AVCaptureConnections currently added to the receiver.
|
|
306
|
+
|
|
307
|
+
@discussion
|
|
308
|
+
The value of this property is an NSArray of AVCaptureConnections currently added to the receiver. Connections are formed implicitly by the receiver when a client calls -addInput: or -addOutput:. Connections are formed explicitly when a client calls -addConnection:.
|
|
309
|
+
*/
|
|
310
|
+
@property(nonatomic, readonly) NSArray<AVCaptureConnection *> *connections API_AVAILABLE(macos(10.15), ios(13.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos);
|
|
311
|
+
|
|
312
|
+
/*!
|
|
313
|
+
@method canAddConnection:
|
|
314
|
+
@abstract
|
|
315
|
+
Returns whether the proposed connection can be added to the receiver.
|
|
316
|
+
|
|
317
|
+
@param connection
|
|
318
|
+
An AVCaptureConnection instance.
|
|
319
|
+
|
|
320
|
+
@discussion
|
|
321
|
+
An AVCaptureConnection instance can only be added to a session using -addConnection: if -canAddConnection: returns YES, otherwise an NSInvalidArgumentException is thrown. When using -addInput: or -addOutput:, connections are formed automatically between all compatible inputs and outputs. Manually adding connections is only necessary when adding an input or output with no connections.
|
|
322
|
+
*/
|
|
323
|
+
- (BOOL)canAddConnection:(AVCaptureConnection *)connection API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
324
|
+
|
|
325
|
+
/*!
|
|
326
|
+
@method addConnection:
|
|
327
|
+
@abstract
|
|
328
|
+
Adds an AVCaptureConnection to the session.
|
|
329
|
+
|
|
330
|
+
@param connection
|
|
331
|
+
An AVCaptureConnection instance.
|
|
332
|
+
|
|
333
|
+
@discussion
|
|
334
|
+
An AVCaptureConnection instance can only be added to a session using -addConnection: if canAddConnection: returns YES, otherwise an NSInvalidArgumentException is thrown. When using -addInput: or -addOutput:, connections are formed automatically between all compatible inputs and outputs. Manually adding connections is only necessary when adding an input or output with no connections. -addConnection: may be called while the session is running.
|
|
335
|
+
*/
|
|
336
|
+
- (void)addConnection:(AVCaptureConnection *)connection API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
337
|
+
|
|
338
|
+
/*!
|
|
339
|
+
@method removeConnection:
|
|
340
|
+
@abstract
|
|
341
|
+
Removes an AVCaptureConnection from the session.
|
|
342
|
+
|
|
343
|
+
@param connection
|
|
344
|
+
An AVCaptureConnection instance.
|
|
345
|
+
|
|
346
|
+
@discussion
|
|
347
|
+
-removeConnection: may be called while the session is running.
|
|
348
|
+
*/
|
|
349
|
+
- (void)removeConnection:(AVCaptureConnection *)connection API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
350
|
+
|
|
351
|
+
/*!
|
|
352
|
+
@property supportsControls
|
|
353
|
+
@abstract
|
|
354
|
+
Indicates whether session controls are supported on this platform.
|
|
355
|
+
|
|
356
|
+
@discussion
|
|
357
|
+
`AVCaptureControl`s are only supported on platforms with necessary hardware.
|
|
358
|
+
*/
|
|
359
|
+
@property(nonatomic, readonly) BOOL supportsControls API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
360
|
+
|
|
361
|
+
/*!
|
|
362
|
+
@property maxControlsCount
|
|
363
|
+
@abstract
|
|
364
|
+
Specifies the maximum number of controls that can be added to a session.
|
|
365
|
+
*/
|
|
366
|
+
@property(nonatomic, readonly) NSInteger maxControlsCount API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
367
|
+
|
|
368
|
+
/*!
|
|
369
|
+
@method setControlsDelegate:queue:
|
|
370
|
+
@abstract
|
|
371
|
+
Sets the receiver's controls delegate that receives events about the session's controls and the dispatch queue on which the delegate is called.
|
|
372
|
+
|
|
373
|
+
@param controlsDelegate
|
|
374
|
+
An object conforming to the `AVCaptureSessionControlsDelegate` protocol that receives events about the session's controls.
|
|
375
|
+
@param controlsDelegateCallbackQueue
|
|
376
|
+
A dispatch queue on which all delegate methods are called.
|
|
377
|
+
|
|
378
|
+
@discussion
|
|
379
|
+
Users can interact with an `AVCaptureSession`'s controls by performing specific gestures to enable their visibility. A delegate may be specified to be informed when the controls can be interacted with and are dismissed. All delegate methods will be called on the specified dispatch queue.
|
|
380
|
+
|
|
381
|
+
A serial dispatch queue must be used to guarantee that delegate callbacks will be delivered in order. The `controlsDelegateCallbackQueue` parameter may not be `NULL`, except when setting the `controlsDelegate` to `nil` otherwise `-setControlsDelegate:queue:` throws an `NSInvalidArgumentException`.
|
|
382
|
+
*/
|
|
383
|
+
- (void)setControlsDelegate:(nullable id<AVCaptureSessionControlsDelegate>)controlsDelegate queue:(nullable dispatch_queue_t)controlsDelegateCallbackQueue API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
384
|
+
|
|
385
|
+
/*!
|
|
386
|
+
@property controlsDelegate
|
|
387
|
+
@abstract
|
|
388
|
+
The receiver's controls delegate.
|
|
389
|
+
|
|
390
|
+
@discussion
|
|
391
|
+
The value of this property is an object conforming to the `AVCaptureSessionControlsDelegate` protocol that receives events about the session's controls. The delegate is set using the `-setControlsDelegate:queue:` method.
|
|
392
|
+
|
|
393
|
+
A controls delegate must be specified for controls to become active.
|
|
394
|
+
*/
|
|
395
|
+
@property(nonatomic, readonly, nullable) id<AVCaptureSessionControlsDelegate> controlsDelegate API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
396
|
+
|
|
397
|
+
/*!
|
|
398
|
+
@property controlsDelegateCallbackQueue
|
|
399
|
+
@abstract
|
|
400
|
+
The dispatch queue on which all controls delegate methods will be called.
|
|
401
|
+
|
|
402
|
+
@discussion
|
|
403
|
+
The value of this property is a `dispatch_queue_t`. The queue is set using the `-setControlsDelegate:queue:` method.
|
|
404
|
+
*/
|
|
405
|
+
@property(nonatomic, readonly, nullable) dispatch_queue_t controlsDelegateCallbackQueue API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
406
|
+
|
|
407
|
+
/*!
|
|
408
|
+
@property controls
|
|
409
|
+
@abstract
|
|
410
|
+
An `NSArray` of `AVCaptureControl`s currently added to the session.
|
|
411
|
+
|
|
412
|
+
@discussion
|
|
413
|
+
The value of this property is an `NSArray` of `AVCaptureControl`s currently added to the session. Clients can add `AVCaptureControl`s to a session by calling `-addControl:`.
|
|
414
|
+
*/
|
|
415
|
+
@property(nonatomic, readonly) NSArray<__kindof AVCaptureControl *> *controls API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
416
|
+
|
|
417
|
+
/*!
|
|
418
|
+
@method canAddControl:
|
|
419
|
+
@abstract
|
|
420
|
+
Returns whether the proposed control can be added to the session.
|
|
421
|
+
|
|
422
|
+
@param control
|
|
423
|
+
An `AVCaptureControl` instance.
|
|
424
|
+
@result
|
|
425
|
+
`YES` if the proposed control can be added to the session, `NO` otherwise.
|
|
426
|
+
|
|
427
|
+
@discussion
|
|
428
|
+
An `AVCaptureControl` instance can only be added to a session using `-addControl:` if `-canAddControl:` returns `YES`. For example, some platforms do not support controls. Instances of `AVCaptureSlider`, `AVCaptureToggle` and `AVCaptureIndexPicker` must have an action and an action queue set before being added to a session.
|
|
429
|
+
*/
|
|
430
|
+
- (BOOL)canAddControl:(AVCaptureControl *)control API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
431
|
+
|
|
432
|
+
/*!
|
|
433
|
+
@method addControl:
|
|
434
|
+
@abstract
|
|
435
|
+
Adds an `AVCaptureControl` instance to the session.
|
|
436
|
+
|
|
437
|
+
@param control
|
|
438
|
+
An `AVCaptureControl` instance.
|
|
439
|
+
|
|
440
|
+
@discussion
|
|
441
|
+
An `AVCaptureControl` instance can only be added to a session using `-addControl:` if `-canAddControl:` returns `YES`, otherwise an `NSInvalidArgumentException` is thrown. `-addControl:` may be called while the session is running.
|
|
442
|
+
|
|
443
|
+
For an `AVCaptureControl` instance to become active, an `AVCaptureSessionControlsDelegate` must be set on the session.
|
|
444
|
+
*/
|
|
445
|
+
- (void)addControl:(AVCaptureControl *)control API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
446
|
+
|
|
447
|
+
/*!
|
|
448
|
+
@method removeControl:
|
|
449
|
+
@abstract
|
|
450
|
+
Removes an `AVCaptureControl` instance from the session.
|
|
451
|
+
|
|
452
|
+
@param control
|
|
453
|
+
An `AVCaptureControl` instance.
|
|
454
|
+
|
|
455
|
+
@discussion
|
|
456
|
+
`-removeControl:` may be called while the session is running.
|
|
457
|
+
*/
|
|
458
|
+
- (void)removeControl:(AVCaptureControl *)control API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos);
|
|
459
|
+
|
|
460
|
+
/*!
|
|
461
|
+
@method beginConfiguration
|
|
462
|
+
@abstract
|
|
463
|
+
When paired with commitConfiguration, allows a client to batch multiple configuration operations on a running session into atomic updates.
|
|
464
|
+
|
|
465
|
+
@discussion
|
|
466
|
+
-beginConfiguration / -commitConfiguration are AVCaptureSession's mechanism for batching multiple configuration operations on a running session into atomic updates. After calling [session beginConfiguration], clients may add or remove outputs, alter the sessionPreset, or configure individual AVCaptureInput or Output properties. All changes will be pended until the client calls [session commitConfiguration], at which time they will be applied together. -beginConfiguration / -commitConfiguration pairs may be nested, and will only be applied when the outermost commit is invoked. If you've called -beginConfiguration, you must call -commitConfiguration before invoking -startRunning or -stopRunning, otherwise an NSGenericException is thrown.
|
|
467
|
+
*/
|
|
468
|
+
- (void)beginConfiguration;
|
|
469
|
+
|
|
470
|
+
/*!
|
|
471
|
+
@method commitConfiguration
|
|
472
|
+
@abstract
|
|
473
|
+
When preceded by beginConfiguration, allows a client to batch multiple configuration operations on a running session into atomic updates.
|
|
474
|
+
|
|
475
|
+
@discussion
|
|
476
|
+
-beginConfiguration / -commitConfiguration are AVCaptureSession's mechanism for batching multiple configuration operations on a running session into atomic updates. After calling [session beginConfiguration], clients may add or remove outputs, alter the sessionPreset, or configure individual AVCaptureInput or Output properties. All changes will be pended until the client calls [session commitConfiguration], at which time they will be applied together. -beginConfiguration / -commitConfiguration pairs may be nested, and will only be applied when the outermost commit is invoked. If you've called -beginConfiguration, you must call -commitConfiguration before invoking -startRunning or -stopRunning, otherwise an NSGenericException is thrown.
|
|
477
|
+
*/
|
|
478
|
+
- (void)commitConfiguration;
|
|
479
|
+
|
|
480
|
+
/*!
|
|
481
|
+
@property running
|
|
482
|
+
@abstract
|
|
483
|
+
Indicates whether the session is currently running.
|
|
484
|
+
|
|
485
|
+
@discussion
|
|
486
|
+
The value of this property is a BOOL indicating whether the receiver is running. Clients can key value observe the value of this property to be notified when the session automatically starts or stops running.
|
|
487
|
+
*/
|
|
488
|
+
@property(nonatomic, readonly, getter=isRunning) BOOL running;
|
|
489
|
+
|
|
490
|
+
/*!
|
|
491
|
+
@property interrupted
|
|
492
|
+
@abstract
|
|
493
|
+
Indicates whether the session is being interrupted.
|
|
494
|
+
|
|
495
|
+
@discussion
|
|
496
|
+
The value of this property is a BOOL indicating whether the receiver is currently being interrupted, such as by a phone call or alarm. Clients can key value observe the value of this property to be notified when the session ceases to be interrupted and again has access to needed hardware resources.
|
|
497
|
+
*/
|
|
498
|
+
@property(nonatomic, readonly, getter=isInterrupted) BOOL interrupted API_AVAILABLE(ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(macos);
|
|
499
|
+
|
|
500
|
+
/*!
|
|
501
|
+
@property multitaskingCameraAccessSupported
|
|
502
|
+
@abstract
|
|
503
|
+
Returns whether the session can be configured to use the camera while multitasking.
|
|
504
|
+
|
|
505
|
+
@discussion
|
|
506
|
+
This property can be used to determine whether multitaskingCameraAccessEnabled may be set to YES. When this property changes from YES to NO, multitaskingCameraAccessEnabled also reverts to NO.
|
|
507
|
+
|
|
508
|
+
Prior to iOS 18, this property returns YES on iPads that support Stage Manager with an extended display. In applications linked on or after iOS 18, this property returns YES for video conferencing applications (apps that use "voip" as one of their UIBackgroundModes).
|
|
509
|
+
|
|
510
|
+
This property also returns YES for iOS applications that have the com.apple.developer.avfoundation.multitasking-camera-access entitlement.
|
|
511
|
+
|
|
512
|
+
This property returns YES on Apple TV.
|
|
513
|
+
|
|
514
|
+
This property is key-value observable.
|
|
515
|
+
*/
|
|
516
|
+
@property(nonatomic, readonly, getter=isMultitaskingCameraAccessSupported) BOOL multitaskingCameraAccessSupported API_AVAILABLE(ios(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(macos, macCatalyst, watchos);
|
|
517
|
+
|
|
518
|
+
/*!
|
|
519
|
+
@property multitaskingCameraAccessEnabled
|
|
520
|
+
@abstract
|
|
521
|
+
Indicates whether the session is configured to use the camera while multitasking.
|
|
522
|
+
|
|
523
|
+
@discussion
|
|
524
|
+
The default value is NO. This property may only be set if -isMultitaskingCameraAccessSupported returns YES. This property must be set before the session starts running.
|
|
525
|
+
|
|
526
|
+
AVCaptureSessions that are configured to use the camera while multitasking will not be interrupted with AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps.
|
|
527
|
+
|
|
528
|
+
For applications that have the com.apple.developer.avfoundation.multitasking-camera-access entitlement, this property defaults to YES if -isMultitaskingCameraAccessSupported returns YES.
|
|
529
|
+
|
|
530
|
+
To learn about best practices for using the camera while multitasking, refer to the Accessing the Camera While Multitasking article on developer.apple.com. See https://developer.apple.com/documentation/avkit/accessing_the_camera_while_multitasking\.
|
|
531
|
+
|
|
532
|
+
This property is key-value observable.
|
|
533
|
+
*/
|
|
534
|
+
@property(nonatomic, getter=isMultitaskingCameraAccessEnabled) BOOL multitaskingCameraAccessEnabled API_AVAILABLE(ios(16.0),tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(macos, macCatalyst, watchos);
|
|
535
|
+
|
|
536
|
+
/*!
|
|
537
|
+
@property usesApplicationAudioSession
|
|
538
|
+
@abstract
|
|
539
|
+
Indicates whether the receiver will use the application's AVAudioSession for recording.
|
|
540
|
+
|
|
541
|
+
@discussion
|
|
542
|
+
The value of this property is a BOOL indicating whether the receiver is currently using the application's AVAudioSession (see AVAudioSession.h). Prior to iOS 7, AVCaptureSession uses its own audio session, which can lead to unwanted interruptions when interacting with the application's audio session. In applications linked on or after iOS 7, AVCaptureSession shares the application's audio session, allowing for simultaneous play back and recording without unwanted interruptions. Clients desiring the pre-iOS 7 behavior may opt out by setting usesApplicationAudioSession to NO. The default value is YES.
|
|
543
|
+
*/
|
|
544
|
+
@property(nonatomic) BOOL usesApplicationAudioSession API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
545
|
+
|
|
546
|
+
/*!
|
|
547
|
+
@property automaticallyConfiguresApplicationAudioSession
|
|
548
|
+
@abstract
|
|
549
|
+
Indicates whether the receiver should configure the application's audio session for recording.
|
|
550
|
+
|
|
551
|
+
@discussion
|
|
552
|
+
The value of this property is a BOOL indicating whether the receiver should configure the application's audio session when needed for optimal recording. When set to YES, the receiver ensures the application's audio session is set to the PlayAndRecord category, and picks an appropriate microphone and polar pattern to match the video camera being used. When set to NO, and -usesApplicationAudioSession is set to YES, the receiver will use the application's audio session, but will not change any of its properties. If the session is not set up correctly for input, audio recording may fail. The default value is YES.
|
|
553
|
+
*/
|
|
554
|
+
@property(nonatomic) BOOL automaticallyConfiguresApplicationAudioSession API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
555
|
+
|
|
556
|
+
/*!
|
|
557
|
+
@property configuresApplicationAudioSessionToMixWithOthers
|
|
558
|
+
@abstract
|
|
559
|
+
Indicates whether the receiver should configure the application's audio session to mix with others.
|
|
560
|
+
|
|
561
|
+
@discussion
|
|
562
|
+
The value of this property is a BOOL indicating whether the receiver should configure the application's audio session to mix with, instead of interrupting, any ongoing audio sessions. It has no effect when usesApplicationAudioSession is set to NO. It also has no effect on Live Photo movie complement capture (where music is always mixed with). The default value is NO.
|
|
563
|
+
*/
|
|
564
|
+
@property(nonatomic) BOOL configuresApplicationAudioSessionToMixWithOthers API_AVAILABLE(ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(macos, visionos);
|
|
565
|
+
|
|
566
|
+
/// Indicates whether the receiver should configure the application's audio session for bluetooth high quality recording.
|
|
567
|
+
///
|
|
568
|
+
/// The value of this property is a `BOOL` indicating whether the receiver should configure the application's audio session for bluetooth high quality recording (AirPods as a high quality microphone). When this property is set to `true`, the ``AVCaptureSession`` will opt in for high quality bluetooth recording, allowing users of your app to select AirPods as the active mic source for capture. This property has no effect when ``usesApplicationAudioSession`` is set to `false`. The default value is `false`.
|
|
569
|
+
@property(nonatomic) BOOL configuresApplicationAudioSessionForBluetoothHighQualityRecording API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macos, macCatalyst, tvos, visionos);
|
|
570
|
+
/*!
|
|
571
|
+
@property automaticallyConfiguresCaptureDeviceForWideColor
|
|
572
|
+
@abstract
|
|
573
|
+
Indicates whether the receiver automatically configures its video device's activeFormat and activeColorSpace properties, preferring wide color for photos.
|
|
574
|
+
|
|
575
|
+
@discussion
|
|
576
|
+
The default value is YES. By default, the receiver automatically adjusts its source video AVCaptureDevice's activeFormat and activeColorSpace properties based on the supportedColorSpaces of the device's formats and the current AVCaptureSession topology. Wide color spaces are preferred over sRGB if an AVCapturePhotoOutput is present in the session. If you wish to set AVCaptureDevice's activeColorSpace manually, and prevent the AVCaptureSession from undoing your work, you must set automaticallyConfiguresCaptureDeviceForWideColor to NO. If the receiver's sessionPreset is set to AVCaptureSessionPresetInputPriority, the session will not alter the capture device's activeFormat, but might still alter its activeColorSpace.
|
|
577
|
+
*/
|
|
578
|
+
@property(nonatomic) BOOL automaticallyConfiguresCaptureDeviceForWideColor API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
579
|
+
|
|
580
|
+
/*!
|
|
581
|
+
@method startRunning
|
|
582
|
+
@abstract
|
|
583
|
+
Starts an AVCaptureSession instance running.
|
|
584
|
+
|
|
585
|
+
@discussion
|
|
586
|
+
Clients invoke -startRunning to start the flow of data from inputs to outputs connected to the AVCaptureSession instance. This call blocks until the session object has completely started up or failed. A failure to start running is reported through the AVCaptureSessionRuntimeErrorNotification mechanism. If you've called -beginConfiguration, you must call -commitConfiguration before invoking -startRunning, otherwise an NSGenericException is thrown.
|
|
587
|
+
*/
|
|
588
|
+
- (void)startRunning;
|
|
589
|
+
|
|
590
|
+
/*!
|
|
591
|
+
@method stopRunning
|
|
592
|
+
@abstract
|
|
593
|
+
Stops an AVCaptureSession instance that is currently running.
|
|
594
|
+
|
|
595
|
+
@discussion
|
|
596
|
+
Clients invoke -stopRunning to stop the flow of data from inputs to outputs connected to the AVCaptureSession instance. This call blocks until the session object has completely stopped. -stopRunning may not be called while the session is being configured. If you've called -beginConfiguration, you must call -commitConfiguration before invoking -stopRunning, otherwise an NSGenericException is thrown.
|
|
597
|
+
*/
|
|
598
|
+
- (void)stopRunning;
|
|
599
|
+
|
|
600
|
+
/*!
|
|
601
|
+
@property synchronizationClock
|
|
602
|
+
@abstract
|
|
603
|
+
Provides the clock being used for synchronization.
|
|
604
|
+
@discussion
|
|
605
|
+
synchronizationClock is readonly. Use synchronizationClock to synchronize AVCaptureOutput data with external data sources (e.g motion samples). All capture output sample buffer timestamps are on the synchronizationClock timebase.
|
|
606
|
+
|
|
607
|
+
For example, if you want to reverse synchronize the output timestamps to the original timestamps, you can do the following: In captureOutput:didOutputSampleBuffer:fromConnection:
|
|
608
|
+
|
|
609
|
+
AVCaptureInputPort *port = [[connection inputPorts] objectAtIndex:0];
|
|
610
|
+
CMClockRef originalClock = [port clock];
|
|
611
|
+
|
|
612
|
+
CMTime syncedPTS = CMSampleBufferGetPresentationTime( sampleBuffer );
|
|
613
|
+
CMTime originalPTS = CMSyncConvertTime( syncedPTS, [session synchronizationClock], originalClock );
|
|
614
|
+
|
|
615
|
+
This property is key-value observable.
|
|
616
|
+
*/
|
|
617
|
+
@property(nonatomic, readonly, nullable) __attribute__((NSObject)) CMClockRef synchronizationClock API_AVAILABLE(macos(12.3), ios(15.4), macCatalyst(15.4), tvos(17.0), visionos(1.0));
|
|
618
|
+
|
|
619
|
+
/*!
|
|
620
|
+
@property masterClock
|
|
621
|
+
@abstract
|
|
622
|
+
Provides the clock being used for synchronization.
|
|
623
|
+
@discussion
|
|
624
|
+
Deprecated. Please use synchronizationClock instead.
|
|
625
|
+
*/
|
|
626
|
+
@property(nonatomic, readonly, nullable) __attribute__((NSObject)) CMClockRef masterClock API_DEPRECATED_WITH_REPLACEMENT("synchronizationClock", macos(10.9, 12.3), ios(7.0, 15.4), macCatalyst(14.0, 15.4)) API_UNAVAILABLE(tvos, visionos);
|
|
627
|
+
|
|
628
|
+
/*!
|
|
629
|
+
@property hardwareCost
|
|
630
|
+
@abstract
|
|
631
|
+
Indicates the percentage of the session's available hardware budget currently in use.
|
|
632
|
+
|
|
633
|
+
@discussion
|
|
634
|
+
The value of this property is a float from 0.0 => 1.0 indicating how much of the session's available hardware is in use as a percentage, given the currently connected inputs and outputs and the features for which you've opted in. When your hardwareCost is greater than 1.0, the capture session cannot run your desired configuration due to hardware constraints, so you receive an AVCaptureSessionRuntimeErrorNotification when attempting to start it running. Default value is 0.
|
|
635
|
+
|
|
636
|
+
Contributors to hardwareCost include:
|
|
637
|
+
- Whether the source device's active format uses the full sensor (4:3) or a crop (16:9). Cropped formats require lower hardware bandwidth, and therefore lower the cost.
|
|
638
|
+
- The max frame rate supported by the source device's active format. The higher the max frame rate, the higher the cost.
|
|
639
|
+
- Whether the source device's active format is binned or not. Binned formats require substantially less hardware bandwidth, and therefore result in a lower cost.
|
|
640
|
+
- The number of sources configured to deliver streaming disparity / depth via AVCaptureDepthDataOutput. The higher the number of cameras configured to produce depth, the higher the cost.
|
|
641
|
+
For AVCaptureMultiCamSessions, all of the source devices' active formats contribute to hardwareCost.
|
|
642
|
+
In order to reduce hardwareCost, consider picking a sensor-cropped activeFormat, or a binned format. You may also use AVCaptureDeviceInput's videoMinFrameDurationOverride property to artificially limit the max frame rate (which is the reciprocal of the min frame duration) of a source device to a lower value. By doing so, you only pay the hardware cost for the max frame rate you intend to use.
|
|
643
|
+
|
|
644
|
+
AVCaptureMultiCamSessions always computes this hardwareCost. AVCaptureSessions only computes a non-zero hardwareCost when multiple AVCaptureVideoDataOutputs or an AVCaptureMovieFileOutput and one or more AVCaptureVideoDataOutputs are added to the session.
|
|
645
|
+
*/
|
|
646
|
+
@property(nonatomic, readonly) float hardwareCost API_AVAILABLE(ios(16.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
|
|
647
|
+
|
|
648
|
+
/// A `BOOL` value that indicates whether the session supports manually running deferred start.
|
|
649
|
+
///
|
|
650
|
+
/// Deferred Start is a feature that allows you to control, on a per-output basis, whether output objects start when or after the session is started. The session defers starting an output when its ``deferredStartEnabled`` property is set to `true`, and starts it after the session is started.
|
|
651
|
+
///
|
|
652
|
+
/// You can only set the ``automaticallyRunsDeferredStart`` property value to `false` if the session supports manual deferred start.
|
|
653
|
+
@property(nonatomic, readonly, getter=isManualDeferredStartSupported) BOOL manualDeferredStartSupported API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
654
|
+
|
|
655
|
+
/// A `BOOL` value that indicates whether deferred start runs automatically.
|
|
656
|
+
///
|
|
657
|
+
/// Deferred Start is a feature that allows you to control, on a per-output basis, whether output objects start when or after the session is started. The session defers starting an output when its ``AVCaptureOutput/deferredStartEnabled`` property is set to `true`, and starts it after the session is started.
|
|
658
|
+
///
|
|
659
|
+
/// When this value is `true`, ``AVCaptureSession`` automatically runs deferred start. If only ``AVCaptureVideoPreviewLayer`` objects have ``AVCaptureVideoPreviewLayer/deferredStartEnabled`` set to `false`, the session runs deferred start a short time after displaying the first frame. If there are ``AVCaptureOutput`` objects that have ``AVCaptureOutput/deferredStartEnabled`` set to `false`, then the session waits until each output that provides streaming data to your app sends its first frame.
|
|
660
|
+
///
|
|
661
|
+
/// If you set this value to `false`, call ``runDeferredStartWhenNeeded`` to indicate when to run deferred start.
|
|
662
|
+
///
|
|
663
|
+
/// By default, for apps that are linked on or after iOS 26, this value is `true`.
|
|
664
|
+
///
|
|
665
|
+
/// - Note: If ``manualDeferredStartSupported`` is `false`, setting this property value to `false` results in the session throwing an `NSInvalidArgumentException`.
|
|
666
|
+
///
|
|
667
|
+
/// - Note: Set this value before committing the configuration.
|
|
668
|
+
@property(nonatomic) BOOL automaticallyRunsDeferredStart API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
669
|
+
|
|
670
|
+
/// Tells the session to run deferred start when appropriate.
|
|
671
|
+
///
|
|
672
|
+
/// For best perceived startup performance, call this after displaying the first frame, so that deferred start processing doesn't interfere with other initialization operations. For example, if using a <doc://com.apple.documentation/documentation/quartzcore/cametallayer> to draw camera frames, add a `presentHandler` (using <doc://com.apple.documentation/metal/mtldrawable/addpresentedhandler>) to the first drawable and call ``runDeferredStartWhenNeeded`` from there.
|
|
673
|
+
///
|
|
674
|
+
/// If one or more outputs need to start to perform a capture operation, and ``runDeferredStartWhenNeeded`` has not run yet, the session runs the deferred start on your app's behalf. Only call this method once for each configuration commit - after the first call, subsequent calls to ``runDeferredStartWhenNeeded`` have no effect. The deferred start runs asynchronously, so this method returns immediately.
|
|
675
|
+
///
|
|
676
|
+
/// - Note: You can only call this when ``automaticallyRunsDeferredStart`` is `false`. Otherwise, the session throws an `NSInvalidArgumentException`.
|
|
677
|
+
///
|
|
678
|
+
/// - Important: To avoid blocking your app's UI, don't call this method from the application's main actor or queue.
|
|
679
|
+
- (void)runDeferredStartWhenNeeded API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
680
|
+
|
|
681
|
+
/// A delegate object that observes events about deferred start.
|
|
682
|
+
///
|
|
683
|
+
/// Call the ``setDeferredStartDelegate:deferredStartDelegateCallbackQueue:`` method to set the deferred start delegate for a session.
|
|
684
|
+
@property(nonatomic, readonly, nullable) id<AVCaptureSessionDeferredStartDelegate> deferredStartDelegate API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
685
|
+
|
|
686
|
+
/// The dispatch queue on which the session calls deferred start delegate methods.
|
|
687
|
+
///
|
|
688
|
+
/// Call the ``setDeferredStartDelegate:deferredStartDelegateCallbackQueue:`` method to specify the dispatch queue on which to call the deferred start delegate methods.
|
|
689
|
+
@property(nonatomic, readonly, nullable) dispatch_queue_t deferredStartDelegateCallbackQueue API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
690
|
+
|
|
691
|
+
/// Sets a delegate object for the session to call when performing deferred start.
|
|
692
|
+
///
|
|
693
|
+
/// This delegate receives a call to the ``AVCaptureSessionDeferredStartDelegate/sessionWillRunDeferredStart:`` method when deferred start is about to run. It is non-blocking, so by the time this method is called, the deferred start may already be underway. If you want your app to perform initialization (potentially) concurrently with deferred start (e.g. user-facing camera features that are not needed to display the first preview frame, but are available to the user as soon as possible) it may be done in the delegate's ``AVCaptureSessionDeferredStartDelegate/sessionWillRunDeferredStart:`` method. To wait until deferred start is finished to perform some remaining initialization work, use the ``AVCaptureSessionDeferredStartDelegate/sessionDidRunDeferredStart:`` method instead.
|
|
694
|
+
///
|
|
695
|
+
/// The delegate receives a call to the ``AVCaptureSessionDeferredStartDelegate/sessionDidRunDeferredStart:`` method when the deferred start finishes running. This allows you to run less-critical application initialization code. For example, if you've deferred an ``AVCapturePhotoOutput`` by setting its ``AVCaptureOutput/deferredStartEnabled`` property to `true`, and you'd like to do some app-specific initialization related to still capture, here might be a good place to put it.
|
|
696
|
+
///
|
|
697
|
+
/// If the delegate is non-nil, the session still calls the ``AVCaptureSessionDeferredStartDelegate/sessionWillRunDeferredStart:`` and ``AVCaptureSessionDeferredStartDelegate/sessionDidRunDeferredStart:`` methods regardless of the value of the session's ``automaticallyRunsDeferredStart`` property.
|
|
698
|
+
///
|
|
699
|
+
/// To minimize the capture session's startup latency, defer all unnecessary work until after the session starts. This delegate provides callbacks for you to schedule deferred work without impacting session startup performance.
|
|
700
|
+
///
|
|
701
|
+
/// To perform initialization prior to deferred start but after the user interface displays, set ``automaticallyRunsDeferredStart`` to `false`, and then run the custom initialization prior to calling ``runDeferredStartWhenNeeded``.
|
|
702
|
+
///
|
|
703
|
+
/// If ``deferredStartDelegate`` is not `NULL`, the session throws an exception if ``deferredStartDelegateCallbackQueue`` is `nil`.
|
|
704
|
+
///
|
|
705
|
+
/// - Parameter deferredStartDelegate: An object conforming to the ``AVCaptureSessionDeferredStartDelegate`` protocol that receives events about deferred start.
|
|
706
|
+
/// - Parameter deferredStartDelegateCallbackQueue: A dispatch queue on which deferredStart delegate methods are called.
|
|
707
|
+
- (void)setDeferredStartDelegate:(nullable id<AVCaptureSessionDeferredStartDelegate>)deferredStartDelegate deferredStartDelegateCallbackQueue:(nullable dispatch_queue_t)deferredStartDelegateCallbackQueue API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
|
|
708
|
+
@end
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
/*!
|
|
712
|
+
@protocol AVCaptureSessionControlsDelegate
|
|
713
|
+
@abstract
|
|
714
|
+
Defines an interface for delegates of `AVCaptureSession` to receive events about the session's controls.
|
|
715
|
+
*/
|
|
716
|
+
API_AVAILABLE(macos(15.0), ios(18.0), macCatalyst(18.0), tvos(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
|
|
717
|
+
@protocol AVCaptureSessionControlsDelegate <NSObject>
|
|
718
|
+
|
|
719
|
+
@required
|
|
720
|
+
|
|
721
|
+
/*!
|
|
722
|
+
@method sessionControlsDidBecomeActive:
|
|
723
|
+
@abstract
|
|
724
|
+
Called when the controls of an `AVCaptureSession` instance become active and are available for interaction.
|
|
725
|
+
|
|
726
|
+
@param session
|
|
727
|
+
The `AVCaptureSession` instance whose controls are active.
|
|
728
|
+
|
|
729
|
+
@discussion
|
|
730
|
+
Delegates receive this message when the controls of an `AVCaptureSession` instance become active and are available for interaction.
|
|
731
|
+
*/
|
|
732
|
+
- (void)sessionControlsDidBecomeActive:(AVCaptureSession *)session;
|
|
733
|
+
|
|
734
|
+
/*!
|
|
735
|
+
@method sessionControlsWillEnterFullscreenAppearance:
|
|
736
|
+
@abstract
|
|
737
|
+
Called when the controls of an `AVCaptureSession` instance will enter a fullscreen appearance.
|
|
738
|
+
|
|
739
|
+
@param session
|
|
740
|
+
The `AVCaptureSession` instance whose controls will enter a fullscreen appearance.
|
|
741
|
+
|
|
742
|
+
@discussion
|
|
743
|
+
When the controls enter a fullscreen appearance, applications are encouraged to hide portions of their user interface including zoom or exposure sliders and shutter buttons. Few on-screen elements should be visible so users can focus on the controls they are interacting with and view the camera preview unobstructed.
|
|
744
|
+
*/
|
|
745
|
+
- (void)sessionControlsWillEnterFullscreenAppearance:(AVCaptureSession *)session;
|
|
746
|
+
|
|
747
|
+
/*!
|
|
748
|
+
@method sessionControlsWillExitFullscreenAppearance:
|
|
749
|
+
@abstract
|
|
750
|
+
Called when the controls of an `AVCaptureSession` instance will exit a fullscreen appearance.
|
|
751
|
+
|
|
752
|
+
@param session
|
|
753
|
+
The `AVCaptureSession` instance whose controls will exit a fullscreen appearance.
|
|
754
|
+
|
|
755
|
+
@discussion
|
|
756
|
+
Delegates receive this message when the controls of an `AVCaptureSession` instance should resume showing portions of their user interface that were hidden in response to receiving `-sessionControlsWillEnterFullscreenAppearance:`. This message is sent before `sessionControlsDidBecomeInactive:`.
|
|
757
|
+
*/
|
|
758
|
+
- (void)sessionControlsWillExitFullscreenAppearance:(AVCaptureSession *)session;
|
|
759
|
+
|
|
760
|
+
/*!
|
|
761
|
+
@method sessionControlsDidBecomeInactive:
|
|
762
|
+
@abstract
|
|
763
|
+
Called when the controls of an `AVCaptureSession` instance become inactive and are no longer available for interaction.
|
|
764
|
+
|
|
765
|
+
@param session
|
|
766
|
+
The `AVCaptureSession` instance whose controls are inactive.
|
|
767
|
+
|
|
768
|
+
@discussion
|
|
769
|
+
Delegates receive this message when the controls of an `AVCaptureSession` instance become inactive and are no longer available for interaction.
|
|
770
|
+
*/
|
|
771
|
+
- (void)sessionControlsDidBecomeInactive:(AVCaptureSession *)session;
|
|
772
|
+
|
|
773
|
+
@end
|
|
774
|
+
|
|
775
|
+
/// Defines an interface for delegates of the capture session to receive events about the session's deferred start.
|
|
776
|
+
API_AVAILABLE(macos(26.0), ios(26.0), macCatalyst(26.0), tvos(26.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
|
|
777
|
+
@protocol AVCaptureSessionDeferredStartDelegate <NSObject>
|
|
778
|
+
|
|
779
|
+
/// This method gets called by the session when deferred start is about to run.
|
|
780
|
+
///
|
|
781
|
+
/// Delegates receive this message when the session has finished the deferred start. This message will be sent regardless of whether the session's ``AVCaptureSession/automaticallyRunsDeferredStart`` property is set. See ``AVCaptureSession/setDeferredStartDelegate:deferredStartDelegateCallbackQueue:`` documentation for more information.
|
|
782
|
+
///
|
|
783
|
+
/// - Parameter session: The ``AVCaptureSession`` instance that runs the deferred start.
|
|
784
|
+
- (void)sessionWillRunDeferredStart:(AVCaptureSession *)session;
|
|
785
|
+
|
|
786
|
+
/// This method gets called by the session when deferred start has finished running.
|
|
787
|
+
///
|
|
788
|
+
/// - Parameter session: The ``AVCaptureSession`` instance that runs the deferred start.
|
|
789
|
+
- (void)sessionDidRunDeferredStart:(AVCaptureSession *)session;
|
|
790
|
+
|
|
791
|
+
@end
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
#pragma mark - AVCaptureMultiCamSession
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
/*!
|
|
798
|
+
@class AVCaptureMultiCamSession
|
|
799
|
+
@abstract
|
|
800
|
+
A subclass of AVCaptureSession which supports simultaneous capture from multiple inputs of the same media type.
|
|
801
|
+
|
|
802
|
+
@discussion
|
|
803
|
+
AVCaptureMultiCamSession's sessionPreset is always AVCaptureSessionPresetInputPriority and may not be set to any other value. Each input's device.activeFormat must be set manually to achieve the desired quality of service.
|
|
804
|
+
|
|
805
|
+
AVCaptureMultiCamSession supports dynamic enabling and disabling of individual camera inputs without interrupting preview. In order to stop an individual camera input, set the enabled property on all of its connections or connected ports to NO. When the last active connection or port is disabled, the source camera stops streaming to save power and bandwidth. Other inputs streaming data through the session are unaffected.
|
|
806
|
+
|
|
807
|
+
Prior to iOS 26, AVCaptureMultiCamSession requires all input devices to have an activeFormat where multiCamSupported returns YES. In applications linked on or after iOS 26, this requirement is not enforced when only a single input device is used.
|
|
808
|
+
*/
|
|
809
|
+
API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos)
|
|
810
|
+
@interface AVCaptureMultiCamSession : AVCaptureSession
|
|
811
|
+
|
|
812
|
+
/*!
|
|
813
|
+
@property multiCamSupported
|
|
814
|
+
@abstract
|
|
815
|
+
Indicates whether multicam session is supported on this platform.
|
|
816
|
+
|
|
817
|
+
@discussion
|
|
818
|
+
AVCaptureMultiCamSession is intended to be used with multiple cameras and is only supported on platforms with sufficient hardware bandwidth, system memory, and thermal performance. For single-camera use cases, AVCaptureSession should be used instead.
|
|
819
|
+
*/
|
|
820
|
+
@property(class, nonatomic, readonly, getter=isMultiCamSupported) BOOL multiCamSupported;
|
|
821
|
+
|
|
822
|
+
/*!
|
|
823
|
+
@property hardwareCost
|
|
824
|
+
@abstract
|
|
825
|
+
Indicates the percentage of the session's available hardware budget currently in use.
|
|
826
|
+
|
|
827
|
+
@discussion
|
|
828
|
+
The value of this property is a float from 0.0 => 1.0 indicating how much of the session's available hardware is in use as a percentage, given the currently connected inputs and outputs and the features for which you've opted in. When your hardwareCost is greater than 1.0, the capture session cannot run your desired configuration due to hardware constraints, so you receive an AVCaptureSessionRuntimeErrorNotification when attempting to start it running. Default value is 0.
|
|
829
|
+
|
|
830
|
+
Contributors to hardwareCost include:
|
|
831
|
+
- Whether the source devices' active formats use the full sensor (4:3) or a crop (16:9). Cropped formats require lower hardware bandwidth, and therefore lower the cost.
|
|
832
|
+
- The max frame rate supported by the source devices' active formats. The higher the max frame rate, the higher the cost.
|
|
833
|
+
- Whether the source devices' active formats are binned or not. Binned formats require substantially less hardware bandwidth, and therefore result in a lower cost.
|
|
834
|
+
- The number of sources configured to deliver streaming disparity / depth via AVCaptureDepthDataOutput. The higher the number of cameras configured to produce depth, the higher the cost.
|
|
835
|
+
In order to reduce hardwareCost, consider picking a sensor-cropped activeFormat, or a binned format. You may also use AVCaptureDeviceInput's videoMinFrameDurationOverride property to artificially limit the max frame rate (which is the reciprocal of the min frame duration) of a source device to a lower value. By doing so, you only pay the hardware cost for the max frame rate you intend to use.
|
|
836
|
+
*/
|
|
837
|
+
@property(nonatomic, readonly) float hardwareCost API_UNAVAILABLE(visionos);
|
|
838
|
+
|
|
839
|
+
/*!
|
|
840
|
+
@property systemPressureCost
|
|
841
|
+
@abstract
|
|
842
|
+
Indicates the system pressure cost of your current configuration.
|
|
843
|
+
|
|
844
|
+
@discussion
|
|
845
|
+
The value of this property is a float whose nominal range is 0.0 => 1.0 indicating the system pressure cost of your current configuration. When your systemPressureCost is greater than 1.0, the capture session cannot run sustainably. It may be able to run for a brief period before needing to stop due to high system pressure. While running in an unsustainable configuration, you may monitor the session's systemPressureState and reduce pressure by reducing the frame rate, throttling your use of the GPU, etc. When the session reaches critical system pressure state, it must temporarily shut down, and you receive an AVCaptureSessionWasInterruptedNotification indicating the reason your session needed to stop. When system pressure alleviates, the session interruption ends.
|
|
846
|
+
*/
|
|
847
|
+
@property(nonatomic, readonly) float systemPressureCost API_UNAVAILABLE(visionos);
|
|
848
|
+
|
|
849
|
+
@end
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
/*!
|
|
853
|
+
@enum AVVideoFieldMode
|
|
854
|
+
@abstract
|
|
855
|
+
Constants indicating video field mode, for use with AVCaptureConnection's videoFieldMode property (see below).
|
|
856
|
+
|
|
857
|
+
@constant AVVideoFieldModeBoth
|
|
858
|
+
Indicates that both top and bottom video fields in interlaced content should be passed thru.
|
|
859
|
+
@constant AVVideoFieldModeTopOnly
|
|
860
|
+
Indicates that only the top video field in interlaced content should be passed thru.
|
|
861
|
+
@constant AVVideoFieldModeBottomOnly
|
|
862
|
+
Indicates that the bottom video field only in interlaced content should be passed thru.
|
|
863
|
+
@constant AVVideoFieldModeDeinterlace
|
|
864
|
+
Indicates that top and bottom video fields in interlaced content should be deinterlaced.
|
|
865
|
+
*/
|
|
866
|
+
typedef NS_ENUM(NSInteger, AVVideoFieldMode) {
|
|
867
|
+
AVVideoFieldModeBoth = 0,
|
|
868
|
+
AVVideoFieldModeTopOnly = 1,
|
|
869
|
+
AVVideoFieldModeBottomOnly = 2,
|
|
870
|
+
AVVideoFieldModeDeinterlace = 3,
|
|
871
|
+
} API_AVAILABLE(macos(10.7)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(ios, macCatalyst, watchos, tvos);
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
#pragma mark - AVCaptureConnection
|
|
875
|
+
|
|
876
|
+
@class AVCaptureAudioChannel;
|
|
877
|
+
@class AVCaptureVideoPreviewLayer;
|
|
878
|
+
@class AVCaptureInputPort;
|
|
879
|
+
@class AVCaptureConnectionInternal;
|
|
880
|
+
|
|
881
|
+
/*!
|
|
882
|
+
@class AVCaptureConnection
|
|
883
|
+
@abstract
|
|
884
|
+
AVCaptureConnection represents a connection between an AVCaptureInputPort or ports, and an AVCaptureOutput or AVCaptureVideoPreviewLayer present in an AVCaptureSession.
|
|
885
|
+
|
|
886
|
+
@discussion
|
|
887
|
+
AVCaptureInputs have one or more AVCaptureInputPorts. AVCaptureOutputs can accept data from one or more sources (example - an AVCaptureMovieFileOutput accepts both video and audio data). AVCaptureVideoPreviewLayers can accept data from one AVCaptureInputPort whose mediaType is AVMediaTypeVideo. When an input or output is added to a session, or a video preview layer is associated with a session, the session greedily forms connections between all the compatible AVCaptureInputs' ports and AVCaptureOutputs or AVCaptureVideoPreviewLayers. Iterating through an output's connections or a video preview layer's sole connection, a client may enable or disable the flow of data from a given input to a given output or preview layer.
|
|
888
|
+
|
|
889
|
+
Connections involving audio expose an array of AVCaptureAudioChannel objects, which can be used for monitoring levels.
|
|
890
|
+
|
|
891
|
+
Connections involving video expose video specific properties, such as videoMirrored and videoRotationAngle.
|
|
892
|
+
*/
|
|
893
|
+
API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
|
|
894
|
+
@interface AVCaptureConnection : NSObject
|
|
895
|
+
{
|
|
896
|
+
@private
|
|
897
|
+
AVCaptureConnectionInternal *_internal;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
AV_INIT_UNAVAILABLE
|
|
901
|
+
|
|
902
|
+
/*!
|
|
903
|
+
@method connectionWithInputPorts:output:
|
|
904
|
+
@abstract
|
|
905
|
+
Returns an AVCaptureConnection instance describing a connection between the specified inputPorts and the specified output.
|
|
906
|
+
|
|
907
|
+
@param ports
|
|
908
|
+
An array of AVCaptureInputPort objects associated with AVCaptureInput objects.
|
|
909
|
+
@param output
|
|
910
|
+
An AVCaptureOutput object.
|
|
911
|
+
@result
|
|
912
|
+
An AVCaptureConnection instance joining the specified inputPorts to the specified output port.
|
|
913
|
+
|
|
914
|
+
@discussion
|
|
915
|
+
This method returns an instance of AVCaptureConnection that may be subsequently added to an AVCaptureSession instance using AVCaptureSession's -addConnection: method. When using -addInput: or -addOutput:, connections are formed between all compatible inputs and outputs automatically. You do not need to manually create and add connections to the session unless you use the primitive -addInputWithNoConnections: or -addOutputWithNoConnections: methods.
|
|
916
|
+
*/
|
|
917
|
+
+ (instancetype)connectionWithInputPorts:(NSArray<AVCaptureInputPort *> *)ports output:(AVCaptureOutput *)output API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
918
|
+
|
|
919
|
+
/*!
|
|
920
|
+
@method connectionWithInputPort:videoPreviewLayer:
|
|
921
|
+
@abstract
|
|
922
|
+
Returns an AVCaptureConnection instance describing a connection between the specified inputPort and the specified AVCaptureVideoPreviewLayer instance.
|
|
923
|
+
|
|
924
|
+
@param port
|
|
925
|
+
An AVCaptureInputPort object associated with an AVCaptureInput object.
|
|
926
|
+
@param layer
|
|
927
|
+
An AVCaptureVideoPreviewLayer object.
|
|
928
|
+
@result
|
|
929
|
+
An AVCaptureConnection instance joining the specified inputPort to the specified video preview layer.
|
|
930
|
+
|
|
931
|
+
@discussion
|
|
932
|
+
This method returns an instance of AVCaptureConnection that may be subsequently added to an AVCaptureSession instance using AVCaptureSession's -addConnection: method. When using AVCaptureVideoPreviewLayer's -initWithSession: or -setSession:, a connection is formed between the first compatible input port and the video preview layer automatically. You do not need to manually create and add connections to the session unless you use AVCaptureVideoPreviewLayer's primitive -initWithSessionWithNoConnection: or -setSessionWithNoConnection: methods.
|
|
933
|
+
*/
|
|
934
|
+
+ (instancetype)connectionWithInputPort:(AVCaptureInputPort *)port videoPreviewLayer:(AVCaptureVideoPreviewLayer *)layer API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
|
|
935
|
+
|
|
936
|
+
/*!
|
|
937
|
+
@method initWithInputPorts:output:
|
|
938
|
+
@abstract
|
|
939
|
+
Returns an AVCaptureConnection instance describing a connection between the specified inputPorts and the specified output.
|
|
940
|
+
|
|
941
|
+
@param ports
|
|
942
|
+
An array of AVCaptureInputPort objects associated with AVCaptureInput objects.
|
|
943
|
+
@param output
|
|
944
|
+
An AVCaptureOutput object.
|
|
945
|
+
@result
|
|
946
|
+
An AVCaptureConnection instance joining the specified inputPorts to the specified output port.
|
|
947
|
+
|
|
948
|
+
@discussion
|
|
949
|
+
This method returns an instance of AVCaptureConnection that may be subsequently added to an AVCaptureSession instance using AVCaptureSession's -addConnection: method. When using -addInput: or -addOutput:, connections are formed between all compatible inputs and outputs automatically. You do not need to manually create and add connections to the session unless you use the primitive -addInputWithNoConnections: or -addOutputWithNoConnections: methods.
|
|
950
|
+
*/
|
|
951
|
+
- (instancetype)initWithInputPorts:(NSArray<AVCaptureInputPort *> *)ports output:(AVCaptureOutput *)output API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0), visionos(2.1));
|
|
952
|
+
|
|
953
|
+
/*!
|
|
954
|
+
@method initWithInputPort:videoPreviewLayer:
|
|
955
|
+
@abstract
|
|
956
|
+
Returns an AVCaptureConnection instance describing a connection between the specified inputPort
|
|
957
|
+
and the specified AVCaptureVideoPreviewLayer instance.
|
|
958
|
+
|
|
959
|
+
@param port
|
|
960
|
+
An AVCaptureInputPort object associated with an AVCaptureInput object.
|
|
961
|
+
@param layer
|
|
962
|
+
An AVCaptureVideoPreviewLayer object.
|
|
963
|
+
@result
|
|
964
|
+
An AVCaptureConnection instance joining the specified inputPort to the specified video preview layer.
|
|
965
|
+
|
|
966
|
+
@discussion
|
|
967
|
+
This method returns an instance of AVCaptureConnection that may be subsequently added to an AVCaptureSession instance using AVCaptureSession's -addConnection: method. When using AVCaptureVideoPreviewLayer's -initWithSession: or -setSession:, a connection is formed between the first compatible input port and the video preview layer automatically. You do not need to manually create and add connections to the session unless you use AVCaptureVideoPreviewLayer's primitive -initWithSessionWithNoConnection: or -setSessionWithNoConnection: methods.
|
|
968
|
+
*/
|
|
969
|
+
- (instancetype)initWithInputPort:(AVCaptureInputPort *)port videoPreviewLayer:(AVCaptureVideoPreviewLayer *)layer API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
|
|
970
|
+
|
|
971
|
+
/*!
|
|
972
|
+
@property inputPorts
|
|
973
|
+
@abstract
|
|
974
|
+
An array of AVCaptureInputPort instances providing data through this connection.
|
|
975
|
+
|
|
976
|
+
@discussion
|
|
977
|
+
An AVCaptureConnection may involve one or more AVCaptureInputPorts producing data to the connection's AVCaptureOutput. This property is read-only. An AVCaptureConnection's inputPorts remain static for the life of the object.
|
|
978
|
+
*/
|
|
979
|
+
@property(nonatomic, readonly) NSArray<AVCaptureInputPort *> *inputPorts API_AVAILABLE(visionos(2.1));
|
|
980
|
+
|
|
981
|
+
/*!
|
|
982
|
+
@property output
|
|
983
|
+
@abstract
|
|
984
|
+
The AVCaptureOutput instance consuming data from this connection's inputPorts.
|
|
985
|
+
|
|
986
|
+
@discussion
|
|
987
|
+
An AVCaptureConnection may involve one or more AVCaptureInputPorts producing data to the connection's AVCaptureOutput. This property is read-only. An AVCaptureConnection's output remains static for the life of the object. Note that a connection can either be to an output or a video preview layer, but never to both.
|
|
988
|
+
*/
|
|
989
|
+
@property(nonatomic, readonly, nullable) AVCaptureOutput *output API_AVAILABLE(visionos(2.1));
|
|
990
|
+
|
|
991
|
+
/*!
|
|
992
|
+
@property videoPreviewLayer
|
|
993
|
+
@abstract
|
|
994
|
+
The AVCaptureVideoPreviewLayer instance consuming data from this connection's inputPort.
|
|
995
|
+
|
|
996
|
+
@discussion
|
|
997
|
+
An AVCaptureConnection may involve one AVCaptureInputPort producing data to an AVCaptureVideoPreviewLayer object. This property is read-only. An AVCaptureConnection's videoPreviewLayer remains static for the life of the object. Note that a connection can either be to an output or a video preview layer, but never to both.
|
|
998
|
+
*/
|
|
999
|
+
@property(nonatomic, readonly, nullable) AVCaptureVideoPreviewLayer *videoPreviewLayer API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
|
|
1000
|
+
|
|
1001
|
+
/*!
|
|
1002
|
+
@property enabled
|
|
1003
|
+
@abstract
|
|
1004
|
+
Indicates whether the connection's output should consume data.
|
|
1005
|
+
|
|
1006
|
+
@discussion
|
|
1007
|
+
The value of this property is a BOOL that determines whether the receiver's output should consume data from its connected inputPorts when a session is running. Clients can set this property to stop the flow of data to a given output during capture. The default value is YES.
|
|
1008
|
+
*/
|
|
1009
|
+
@property(nonatomic, getter=isEnabled) BOOL enabled API_UNAVAILABLE(visionos);
|
|
1010
|
+
|
|
1011
|
+
/*!
|
|
1012
|
+
@property active
|
|
1013
|
+
@abstract
|
|
1014
|
+
Indicates whether the receiver's output is currently capable of consuming data through this connection.
|
|
1015
|
+
|
|
1016
|
+
@discussion
|
|
1017
|
+
The value of this property is a BOOL that determines whether the receiver's output can consume data provided through this connection. This property is read-only. Clients may key-value observe this property to know when a session's configuration forces a connection to become inactive. The default value is YES.
|
|
1018
|
+
|
|
1019
|
+
Prior to iOS 11, the audio connection feeding an AVCaptureAudioDataOutput is made inactive when using AVCaptureSessionPresetPhoto or the equivalent photo format using -[AVCaptureDevice activeFormat]. On iOS 11 and later, the audio connection feeding AVCaptureAudioDataOutput is active for all presets and device formats.
|
|
1020
|
+
*/
|
|
1021
|
+
@property(nonatomic, readonly, getter=isActive) BOOL active API_UNAVAILABLE(visionos);
|
|
1022
|
+
|
|
1023
|
+
/*!
|
|
1024
|
+
@property audioChannels
|
|
1025
|
+
@abstract
|
|
1026
|
+
An array of AVCaptureAudioChannel objects representing individual channels of audio data flowing through the connection.
|
|
1027
|
+
|
|
1028
|
+
@discussion
|
|
1029
|
+
This property is only applicable to AVCaptureConnection instances involving audio. In such connections, the audioChannels array contains one AVCaptureAudioChannel object for each channel of audio data flowing through this connection.
|
|
1030
|
+
*/
|
|
1031
|
+
@property(nonatomic, readonly) NSArray<AVCaptureAudioChannel *> *audioChannels API_UNAVAILABLE(visionos);
|
|
1032
|
+
|
|
1033
|
+
/*!
|
|
1034
|
+
@property supportsVideoMirroring
|
|
1035
|
+
@abstract
|
|
1036
|
+
Indicates whether the connection supports setting the videoMirrored property.
|
|
1037
|
+
|
|
1038
|
+
@discussion
|
|
1039
|
+
This property is only applicable to AVCaptureConnection instances involving video. In such connections, the videoMirrored property may only be set if
|
|
1040
|
+
-isVideoMirroringSupported returns YES.
|
|
1041
|
+
*/
|
|
1042
|
+
@property(nonatomic, readonly, getter=isVideoMirroringSupported) BOOL supportsVideoMirroring;
|
|
1043
|
+
|
|
1044
|
+
/*!
|
|
1045
|
+
@property videoMirrored
|
|
1046
|
+
@abstract
|
|
1047
|
+
Indicates whether the video flowing through the connection should be mirrored about its vertical axis.
|
|
1048
|
+
|
|
1049
|
+
@discussion
|
|
1050
|
+
This property is only applicable to AVCaptureConnection instances involving video. if -isVideoMirroringSupported returns YES, videoMirrored may be set to flip the video about its vertical axis and produce a mirror-image effect. This property may not be set unless -isVideoMirroringSupported returns YES, otherwise a NSInvalidArgumentException is thrown. This property may not be set if -automaticallyAdjustsVideoMirroring returns YES, otherwise an NSInvalidArgumentException is thrown.
|
|
1051
|
+
*/
|
|
1052
|
+
@property(nonatomic, getter=isVideoMirrored) BOOL videoMirrored;
|
|
1053
|
+
|
|
1054
|
+
/*!
|
|
1055
|
+
@property automaticallyAdjustsVideoMirroring
|
|
1056
|
+
@abstract
|
|
1057
|
+
Specifies whether or not the value of @"videoMirrored" can change based on configuration of the session.
|
|
1058
|
+
|
|
1059
|
+
@discussion
|
|
1060
|
+
For some session configurations, video data flowing through the connection will be mirrored by default. When the value of this property is YES, the value of @"videoMirrored" may change depending on the configuration of the session, for example after switching to a different AVCaptureDeviceInput. The default value is YES.
|
|
1061
|
+
*/
|
|
1062
|
+
@property(nonatomic) BOOL automaticallyAdjustsVideoMirroring API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
|
|
1063
|
+
|
|
1064
|
+
/*!
|
|
1065
|
+
@method isVideoRotationAngleSupported:
|
|
1066
|
+
@abstract
|
|
1067
|
+
Returns whether the connection supports the given rotation angle in degrees.
|
|
1068
|
+
|
|
1069
|
+
@param videoRotationAngle
|
|
1070
|
+
A video rotation angle to be checked.
|
|
1071
|
+
@result
|
|
1072
|
+
YES if the connection supports the given video rotation angle, NO otherwise.
|
|
1073
|
+
|
|
1074
|
+
@discussion
|
|
1075
|
+
The connection's videoRotationAngle property can only be set to a certain angle if this method returns YES for that angle. Only rotation angles of 0, 90, 180 and 270 are supported.
|
|
1076
|
+
*/
|
|
1077
|
+
- (BOOL)isVideoRotationAngleSupported:(CGFloat)videoRotationAngle API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos);
|
|
1078
|
+
|
|
1079
|
+
/*!
|
|
1080
|
+
@property videoRotationAngle
|
|
1081
|
+
@abstract
|
|
1082
|
+
Indicates whether the video flowing through the connection should be rotated with a given angle in degrees.
|
|
1083
|
+
|
|
1084
|
+
@discussion
|
|
1085
|
+
This property is only applicable to AVCaptureConnection instances involving video or depth. -setVideoRotationAngle: throws an NSInvalidArgumentException if set to an unsupported value (see -isVideoRotationAngleSupported:). Note that setting videoRotationAngle does not necessarily result in physical rotation of video buffers. For instance, a video connection to an AVCaptureMovieFileOutput handles orientation using a Quicktime track matrix. In the AVCapturePhotoOutput, orientation is handled using Exif tags. And the AVCaptureVideoPreviewLayer applies transforms to its contents to perform rotations. However, the AVCaptureVideoDataOutput and AVCaptureDepthDataOutput do output physically rotated video buffers. Setting a video rotation angle for an output that does physically rotate buffers requires a lengthy configuration of the capture render pipeline and should be done before calling -[AVCaptureSession startRunning].
|
|
1086
|
+
|
|
1087
|
+
Starting with the Spring 2024 iPad line, the default value of videoRotationAngle is 180 degrees for video data on Front Camera as compared to 0 degrees on previous devices. So clients using AVCaptureVideoDataOutput and AVCaptureDepthDataOutput should set videoRotationAngle to 0 to avoid the physical buffer rotation described above. And clients rotating video data by themselves must account for the default value of videoRotationAngle when applying angles (videoRotationAngleForHorizonLevelPreview, videoRotationAngleForHorizonLevelCapture) from AVCaptureDeviceRotationCoordinator. Note that this change in default value is currently limited to these iPads, however it is recommended that clients rotating video data themselves incorporate the default rotation value into their workflows for all devices.
|
|
1088
|
+
|
|
1089
|
+
Clients using AVCaptureVideoDataOutput with ProRes Raw should set videoRotationAngle to 0 as rotation is not supported for RAW buffers. If clients want to rotate these buffers themselves they need to apply rotation angles (videoRotationAngleForHorizonLevelPreview, videoRotationAngleForHorizonLevelCapture) provided by AVCaptureDeviceRotationCoordinator.
|
|
1090
|
+
*/
|
|
1091
|
+
@property(nonatomic) CGFloat videoRotationAngle API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos);
|
|
1092
|
+
|
|
1093
|
+
/*!
|
|
1094
|
+
@property supportsVideoOrientation
|
|
1095
|
+
@abstract
|
|
1096
|
+
Indicates whether the connection supports setting the videoOrientation property.
|
|
1097
|
+
|
|
1098
|
+
@discussion
|
|
1099
|
+
This property is deprecated. Use -isVideoRotationAngleSupported: instead.
|
|
1100
|
+
*/
|
|
1101
|
+
@property(nonatomic, readonly, getter=isVideoOrientationSupported) BOOL supportsVideoOrientation API_DEPRECATED("Use -isVideoRotationAngleSupported: instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
|
|
1102
|
+
|
|
1103
|
+
/*!
|
|
1104
|
+
@property videoOrientation
|
|
1105
|
+
@abstract
|
|
1106
|
+
Indicates whether the video flowing through the connection should be rotated to a given orientation.
|
|
1107
|
+
|
|
1108
|
+
@discussion
|
|
1109
|
+
This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
|
|
1110
|
+
*/
|
|
1111
|
+
@property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
|
|
1112
|
+
|
|
1113
|
+
/*!
|
|
1114
|
+
@property supportsVideoFieldMode
|
|
1115
|
+
@abstract
|
|
1116
|
+
Indicates whether the connection supports setting the videoFieldMode property.
|
|
1117
|
+
|
|
1118
|
+
@discussion
|
|
1119
|
+
This property is only applicable to AVCaptureConnection instances involving video. In such connections, the videoFieldMode property may only be set if -isVideoFieldModeSupported returns YES.
|
|
1120
|
+
*/
|
|
1121
|
+
@property(nonatomic, readonly, getter=isVideoFieldModeSupported) BOOL supportsVideoFieldMode API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
|
|
1122
|
+
|
|
1123
|
+
/*!
|
|
1124
|
+
@property videoFieldMode
|
|
1125
|
+
@abstract
|
|
1126
|
+
Indicates how interlaced video flowing through the connection should be treated.
|
|
1127
|
+
|
|
1128
|
+
@discussion
|
|
1129
|
+
This property is only applicable to AVCaptureConnection instances involving video. If -isVideoFieldModeSupported returns YES, videoFieldMode may be set to affect interlaced video content flowing through the connection.
|
|
1130
|
+
*/
|
|
1131
|
+
@property(nonatomic) AVVideoFieldMode videoFieldMode API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
|
|
1132
|
+
|
|
1133
|
+
/*!
|
|
1134
|
+
@property supportsVideoMinFrameDuration
|
|
1135
|
+
@abstract
|
|
1136
|
+
Indicates whether the connection supports setting the videoMinFrameDuration property.
|
|
1137
|
+
|
|
1138
|
+
@discussion
|
|
1139
|
+
This property is only applicable to AVCaptureConnection instances involving video. In such connections, the videoMinFrameDuration property may only be set if -isVideoMinFrameDurationSupported returns YES.
|
|
1140
|
+
|
|
1141
|
+
This property is deprecated on iOS, where min and max frame rate adjustments are applied exclusively at the AVCaptureDevice using the activeVideoMinFrameDuration and activeVideoMaxFrameDuration properties. On macOS, frame rate adjustments are supported both at the AVCaptureDevice and at AVCaptureConnection, enabling connections to output different frame rates.
|
|
1142
|
+
*/
|
|
1143
|
+
@property(nonatomic, readonly, getter=isVideoMinFrameDurationSupported) BOOL supportsVideoMinFrameDuration API_DEPRECATED("Use AVCaptureDevice's activeFormat.videoSupportedFrameRateRanges instead.", ios(5.0, 7.0), macCatalyst(14.0, 14.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
|
|
1144
|
+
|
|
1145
|
+
/*!
|
|
1146
|
+
@property videoMinFrameDuration
|
|
1147
|
+
@abstract
|
|
1148
|
+
Indicates the minimum time interval at which the receiver should output consecutive video frames.
|
|
1149
|
+
|
|
1150
|
+
@discussion
|
|
1151
|
+
The value of this property is a CMTime specifying the minimum duration of each video frame output by the receiver, placing a lower bound on the amount of time that should separate consecutive frames. This is equivalent to the reciprocal of the maximum frame rate. A value of kCMTimeZero or kCMTimeInvalid indicates an unlimited maximum frame rate. The default value is kCMTimeInvalid.
|
|
1152
|
+
|
|
1153
|
+
This property is deprecated on iOS, where min and max frame rate adjustments are applied exclusively at the AVCaptureDevice using the activeVideoMinFrameDuration and activeVideoMaxFrameDuration properties. On macOS, frame rate adjustments are supported both at the AVCaptureDevice and at AVCaptureConnection, enabling connections to output different frame rates.
|
|
1154
|
+
*/
|
|
1155
|
+
@property(nonatomic) CMTime videoMinFrameDuration API_DEPRECATED("Use AVCaptureDevice's activeVideoMinFrameDuration instead.", ios(5.0, 7.0), macCatalyst(14.0, 14.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
|
|
1156
|
+
|
|
1157
|
+
/*!
|
|
1158
|
+
@property supportsVideoMaxFrameDuration
|
|
1159
|
+
@abstract
|
|
1160
|
+
Indicates whether the connection supports setting the videoMaxFrameDuration property.
|
|
1161
|
+
|
|
1162
|
+
@discussion
|
|
1163
|
+
This property is only applicable to AVCaptureConnection instances involving video. In such connections, the videoMaxFrameDuration property may only be set if -isVideoMaxFrameDurationSupported returns YES.
|
|
1164
|
+
|
|
1165
|
+
This property is deprecated on iOS, where min and max frame rate adjustments are applied exclusively at the AVCaptureDevice using the activeVideoMinFrameDuration and activeVideoMaxFrameDuration properties. On macOS, frame rate adjustments are supported both at the AVCaptureDevice and at AVCaptureConnection, enabling connections to output different frame rates.
|
|
1166
|
+
*/
|
|
1167
|
+
@property(nonatomic, readonly, getter=isVideoMaxFrameDurationSupported) BOOL supportsVideoMaxFrameDuration API_AVAILABLE(macos(10.9)) API_DEPRECATED("Use AVCaptureDevice's activeFormat.videoSupportedFrameRateRanges instead.", ios(5.0, 7.0), macCatalyst(14.0, 14.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
|
|
1168
|
+
|
|
1169
|
+
/*!
|
|
1170
|
+
@property videoMaxFrameDuration
|
|
1171
|
+
@abstract
|
|
1172
|
+
Indicates the maximum time interval at which the receiver should output consecutive video frames.
|
|
1173
|
+
|
|
1174
|
+
@discussion
|
|
1175
|
+
The value of this property is a CMTime specifying the maximum duration of each video frame output by the receiver, placing an upper bound on the amount of time that should separate consecutive frames. This is equivalent to the reciprocal of the minimum frame rate. A value of kCMTimeZero or kCMTimeInvalid indicates an unlimited minimum frame rate. The default value is kCMTimeInvalid.
|
|
1176
|
+
|
|
1177
|
+
This property is deprecated on iOS, where min and max frame rate adjustments are applied exclusively at the AVCaptureDevice using the activeVideoMinFrameDuration and activeVideoMaxFrameDuration properties. On macOS, frame rate adjustments are supported both at the AVCaptureDevice and at AVCaptureConnection, enabling connections to output different frame rates.
|
|
1178
|
+
*/
|
|
1179
|
+
@property(nonatomic) CMTime videoMaxFrameDuration API_AVAILABLE(macos(10.9)) API_DEPRECATED("Use AVCaptureDevice's activeVideoMaxFrameDuration instead.", ios(5.0, 7.0), macCatalyst(14.0, 14.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
|
|
1180
|
+
|
|
1181
|
+
/*!
|
|
1182
|
+
@property videoMaxScaleAndCropFactor
|
|
1183
|
+
@abstract
|
|
1184
|
+
Indicates the maximum video scale and crop factor supported by the receiver.
|
|
1185
|
+
|
|
1186
|
+
@discussion
|
|
1187
|
+
This property is only applicable to AVCaptureConnection instances involving video. In such connections, the videoMaxScaleAndCropFactor property specifies the maximum CGFloat value that may be used when setting the videoScaleAndCropFactor property.
|
|
1188
|
+
*/
|
|
1189
|
+
@property(nonatomic, readonly) CGFloat videoMaxScaleAndCropFactor API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1190
|
+
|
|
1191
|
+
/*!
|
|
1192
|
+
@property videoScaleAndCropFactor
|
|
1193
|
+
@abstract
|
|
1194
|
+
Indicates the current video scale and crop factor in use by the receiver.
|
|
1195
|
+
|
|
1196
|
+
@discussion
|
|
1197
|
+
This property only applies to AVCaptureStillImageOutput connections. In such connections, the videoScaleAndCropFactor property may be set to a value in the range of 1.0 to videoMaxScaleAndCropFactor. At a factor of 1.0, the image is its original size. At a factor greater than 1.0, the image is scaled by the factor and center-cropped to its original dimensions. This factor is applied in addition to any magnification from AVCaptureDevice's videoZoomFactor property.
|
|
1198
|
+
|
|
1199
|
+
@see -[AVCaptureDevice videoZoomFactor]
|
|
1200
|
+
*/
|
|
1201
|
+
@property(nonatomic) CGFloat videoScaleAndCropFactor API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1202
|
+
|
|
1203
|
+
/*!
|
|
1204
|
+
@property preferredVideoStabilizationMode
|
|
1205
|
+
@abstract
|
|
1206
|
+
Indicates the stabilization mode to apply to video flowing through the receiver when it is supported.
|
|
1207
|
+
|
|
1208
|
+
@discussion
|
|
1209
|
+
This property is only applicable to AVCaptureConnection instances involving video. On devices where the video stabilization feature is supported, only a subset of available source formats may be available for stabilization. By setting the preferredVideoStabilizationMode property to a value other than AVCaptureVideoStabilizationModeOff, video flowing through the receiver is stabilized when the mode is available. In the case of ProRes RAW, this property enables stabilization metadata to be generated, 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 on support.apple.com. See https://support.apple.com/en-us/118584.
|
|
1210
|
+
|
|
1211
|
+
Enabling video stabilization introduces additional latency into the video capture pipeline and may consume more system memory depending on the stabilization mode and format. If the preferred stabilization mode isn't available, the activeVideoStabilizationMode will be set to AVCaptureVideoStabilizationModeOff. Clients may key-value observe the activeVideoStabilizationMode property to know which stabilization mode is in use or when it is off. The default value is AVCaptureVideoStabilizationModeOff. When setting this property to AVCaptureVideoStabilizationModeAuto, an appropriate stabilization mode will be chosen based on the format and frame rate. For apps linked before iOS 6.0, the default value is AVCaptureVideoStabilizationModeStandard for a video connection attached to an AVCaptureMovieFileOutput instance. For apps linked on or after iOS 6.0, the default value is always AVCaptureVideoStabilizationModeOff. Setting a video stabilization mode using this property may change the value of enablesVideoStabilizationWhenAvailable.
|
|
1212
|
+
*/
|
|
1213
|
+
@property(nonatomic) AVCaptureVideoStabilizationMode preferredVideoStabilizationMode API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1214
|
+
|
|
1215
|
+
/*!
|
|
1216
|
+
@property activeVideoStabilizationMode
|
|
1217
|
+
@abstract
|
|
1218
|
+
Indicates the stabilization mode currently being applied to video flowing through the receiver.
|
|
1219
|
+
|
|
1220
|
+
@discussion
|
|
1221
|
+
This property is only applicable to AVCaptureConnection instances involving video. On devices where the video stabilization feature is supported, only a subset of available source formats may be stabilized. The activeVideoStabilizationMode property returns a value other than AVCaptureVideoStabilizationModeOff if video stabilization is currently in use (or in the case of ProRes RAW, if stabilization metadata is being attached). This property never returns AVCaptureVideoStabilizationModeAuto. This property is key-value observable.
|
|
1222
|
+
*/
|
|
1223
|
+
@property(nonatomic, readonly) AVCaptureVideoStabilizationMode activeVideoStabilizationMode API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1224
|
+
|
|
1225
|
+
/*!
|
|
1226
|
+
@property supportsVideoStabilization
|
|
1227
|
+
@abstract
|
|
1228
|
+
Indicates whether the connection supports video stabilization.
|
|
1229
|
+
|
|
1230
|
+
@discussion
|
|
1231
|
+
This property is only applicable to AVCaptureConnection instances involving video. In such connections, the -enablesVideoStabilizationWhenAvailable property may only be set if -supportsVideoStabilization returns YES. This property returns YES if the connection's input device has one or more formats that support video stabilization and the connection's output supports video stabilization (or in the case of ProRes RAW, support stabilization metadata attachments). See [AVCaptureDeviceFormat isVideoStabilizationModeSupported:] to check which video stabilization modes are supported by the active device format.
|
|
1232
|
+
*/
|
|
1233
|
+
@property(nonatomic, readonly, getter=isVideoStabilizationSupported) BOOL supportsVideoStabilization API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1234
|
+
|
|
1235
|
+
/*!
|
|
1236
|
+
@property videoStabilizationEnabled
|
|
1237
|
+
@abstract
|
|
1238
|
+
Indicates whether stabilization is currently being applied to video flowing through the receiver.
|
|
1239
|
+
|
|
1240
|
+
@discussion
|
|
1241
|
+
This property is only applicable to AVCaptureConnection instances involving video. On devices where the video stabilization feature is supported, only a subset of available source formats and resolutions may be available for stabilization. The videoStabilizationEnabled property returns YES if video stabilization is currently in use. This property is key-value observable. This property is deprecated. Use activeVideoStabilizationMode instead.
|
|
1242
|
+
*/
|
|
1243
|
+
@property(nonatomic, readonly, getter=isVideoStabilizationEnabled) BOOL videoStabilizationEnabled API_DEPRECATED("Use activeVideoStabilizationMode instead.", ios(6.0, 8.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
|
|
1244
|
+
|
|
1245
|
+
/*!
|
|
1246
|
+
@property enablesVideoStabilizationWhenAvailable
|
|
1247
|
+
@abstract
|
|
1248
|
+
Indicates whether stabilization should be applied to video flowing through the receiver when the feature is available.
|
|
1249
|
+
|
|
1250
|
+
@discussion
|
|
1251
|
+
This property is only applicable to AVCaptureConnection instances involving video. On devices where the video stabilization feature is supported, only a subset of available source formats and resolutions may be available for stabilization. By setting the enablesVideoStabilizationWhenAvailable property to YES, video flowing through the receiver is stabilized when available. Enabling video stabilization may introduce additional latency into the video capture pipeline. Clients may key-value observe the videoStabilizationEnabled property to know when stabilization is in use or not. The default value is NO. For apps linked before iOS 6.0, the default value is YES for a video connection attached to an AVCaptureMovieFileOutput instance. For apps linked on or after iOS 6.0, the default value is always NO. This property is deprecated. Use preferredVideoStabilizationMode instead.
|
|
1252
|
+
*/
|
|
1253
|
+
@property(nonatomic) BOOL enablesVideoStabilizationWhenAvailable API_DEPRECATED("Use preferredVideoStabilizationMode instead.", ios(6.0, 8.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
|
|
1254
|
+
|
|
1255
|
+
/*!
|
|
1256
|
+
@property cameraIntrinsicMatrixDeliverySupported
|
|
1257
|
+
@abstract
|
|
1258
|
+
Indicates whether the connection supports camera intrinsic matrix delivery.
|
|
1259
|
+
|
|
1260
|
+
@discussion
|
|
1261
|
+
This property is only applicable to AVCaptureConnection instances involving video. For such connections, the cameraIntrinsicMatrixDeliveryEnabled property may only be set to YES if -isCameraIntrinsicMatrixDeliverySupported returns YES. This property returns YES if both the connection's input device format and the connection's output support camera intrinsic matrix delivery. Only the AVCaptureVideoDataOutput's connection supports this property. Note that if video stabilization is enabled (preferredVideoStabilizationMode is set to something other than AVCaptureVideoStabilizationModeOff), camera intrinsic matrix delivery is not supported. Starting in iOS 14.3, camera intrinsics are delivered with video buffers on which geometric distortion correction is applied.
|
|
1262
|
+
*/
|
|
1263
|
+
@property(nonatomic, readonly, getter=isCameraIntrinsicMatrixDeliverySupported) BOOL cameraIntrinsicMatrixDeliverySupported API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1264
|
+
|
|
1265
|
+
/*!
|
|
1266
|
+
@property cameraIntrinsicMatrixDeliveryEnabled
|
|
1267
|
+
@abstract
|
|
1268
|
+
Indicates whether camera intrinsic matrix delivery should be enabled.
|
|
1269
|
+
|
|
1270
|
+
@discussion
|
|
1271
|
+
This property is only applicable to AVCaptureConnection instances involving video. Refer to property cameraIntrinsicMatrixDeliverySupported before setting this property. When this property is set to YES, the receiver's output will add the kCMSampleBufferAttachmentKey_CameraIntrinsicMatrix sample buffer attachment to all vended sample buffers. This property must be set before the session starts running.
|
|
1272
|
+
*/
|
|
1273
|
+
@property(nonatomic, getter=isCameraIntrinsicMatrixDeliveryEnabled) BOOL cameraIntrinsicMatrixDeliveryEnabled API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
|
|
1274
|
+
|
|
1275
|
+
/// Indicates whether the connection supports low light video noise reduction.
|
|
1276
|
+
///
|
|
1277
|
+
/// This property returns `true` if the connection's source device's active format supports low light video noise reduction (see ``AVCaptureDeviceFormat/isLowLightVideoNoiseReductionSupported``) and the connection's output supports the feature. This value reflects the active configuration and can change as the active format, video stabilization mode, auto video frame rate, or maximum video frame rate changes. See ``automaticallyEnablesLowLightVideoNoiseReduction`` for a detailed discussion. This property is key-value observable.
|
|
1278
|
+
@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);
|
|
1279
|
+
|
|
1280
|
+
/// Indicates whether the connection should automatically enable low light video noise reduction when the connection supports it.
|
|
1281
|
+
///
|
|
1282
|
+
/// On a connection where ``isLowLightVideoNoiseReductionSupported`` is `true`, the system can enable low light video noise reduction to improve video quality at the cost of additional power. This property defaults to `true` for movie file output connections. When ``automaticallyEnablesLowLightVideoNoiseReduction`` is `true`, the connection sets ``isLowLightVideoNoiseReductionEnabled`` to `true` automatically when the session configuration is committed and the connection supports the feature. For `AVCaptureMultiCamSession` configurations with multiple movie file outputs, automatic enablement is suppressed because the feature can only be active on one output at a time; in that case, set this property to `false` and control ``isLowLightVideoNoiseReductionEnabled`` directly on the desired connection. Enabling the feature on more than one movie file output connection increases the session's `hardwareCost` and may result in an `AVCaptureSessionRuntimeErrorNotification`. Setting this property on a connection that does not support low light video noise reduction is permitted but has no effect. Clients can key-value observe ``isLowLightVideoNoiseReductionEnabled`` to know when the connection has automatically changed the value.
|
|
1283
|
+
@property(nonatomic) BOOL automaticallyEnablesLowLightVideoNoiseReduction API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(watchos);
|
|
1284
|
+
|
|
1285
|
+
/// Indicates whether low light video noise reduction is enabled for the current session.
|
|
1286
|
+
///
|
|
1287
|
+
/// A `BOOL` indicating whether low light video noise reduction is enabled on the connection. To set this property directly, first set ``automaticallyEnablesLowLightVideoNoiseReduction`` to `false`; setting this property while ``automaticallyEnablesLowLightVideoNoiseReduction`` is `true` throws an `NSInvalidArgumentException`. This property may only be set to `true` if the connection's ``isLowLightVideoNoiseReductionSupported`` property returns `true`, otherwise an `NSInvalidArgumentException` is thrown. This property is key-value observable.
|
|
1288
|
+
@property(nonatomic, getter=isLowLightVideoNoiseReductionEnabled) BOOL lowLightVideoNoiseReductionEnabled API_AVAILABLE(macos(27.0), ios(27.0), macCatalyst(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(watchos);
|
|
1289
|
+
|
|
1290
|
+
@end
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
#pragma mark - AVCaptureAudioChannel
|
|
1294
|
+
|
|
1295
|
+
@class AVCaptureAudioChannelInternal;
|
|
1296
|
+
|
|
1297
|
+
/*!
|
|
1298
|
+
@class AVCaptureAudioChannel
|
|
1299
|
+
@abstract
|
|
1300
|
+
AVCaptureAudioChannel represents a single channel of audio flowing through an AVCaptureSession.
|
|
1301
|
+
|
|
1302
|
+
@discussion
|
|
1303
|
+
An AVCaptureConnection from an input producing audio to an output receiving audio exposes an array of AVCaptureAudioChannel objects, one for each channel of audio available. Iterating through these audio channel objects, a client may poll for audio levels. Instances of AVCaptureAudioChannel cannot be created directly.
|
|
1304
|
+
*/
|
|
1305
|
+
API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
|
|
1306
|
+
@interface AVCaptureAudioChannel : NSObject
|
|
1307
|
+
{
|
|
1308
|
+
@private
|
|
1309
|
+
AVCaptureAudioChannelInternal *_internal;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
AV_INIT_UNAVAILABLE
|
|
1313
|
+
|
|
1314
|
+
/*!
|
|
1315
|
+
@property averagePowerLevel
|
|
1316
|
+
@abstract
|
|
1317
|
+
A measurement of the instantaneous average power level of the audio flowing through the receiver.
|
|
1318
|
+
|
|
1319
|
+
@discussion
|
|
1320
|
+
A client may poll an AVCaptureAudioChannel object for its current averagePowerLevel to get its instantaneous average power level in decibels. This property is not key-value observable.
|
|
1321
|
+
*/
|
|
1322
|
+
@property(nonatomic, readonly) float averagePowerLevel;
|
|
1323
|
+
|
|
1324
|
+
/*!
|
|
1325
|
+
@property peakHoldLevel
|
|
1326
|
+
@abstract
|
|
1327
|
+
A measurement of the peak/hold level of the audio flowing through the receiver.
|
|
1328
|
+
|
|
1329
|
+
@discussion
|
|
1330
|
+
A client may poll an AVCaptureAudioChannel object for its current peakHoldLevel to get its most recent peak hold level in decibels. This property is not key-value observable.
|
|
1331
|
+
*/
|
|
1332
|
+
@property(nonatomic, readonly) float peakHoldLevel;
|
|
1333
|
+
|
|
1334
|
+
/*!
|
|
1335
|
+
@property volume
|
|
1336
|
+
@abstract
|
|
1337
|
+
A property indicating the current volume (gain) of the receiver.
|
|
1338
|
+
|
|
1339
|
+
@discussion
|
|
1340
|
+
The volume property indicates the current volume or gain of the receiver as a floating point value between 0.0 -> 1.0. If you desire to boost the gain in software, you may specify a a value greater than 1.0.
|
|
1341
|
+
*/
|
|
1342
|
+
@property(nonatomic) float volume API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
|
|
1343
|
+
|
|
1344
|
+
/*!
|
|
1345
|
+
@property enabled
|
|
1346
|
+
@abstract
|
|
1347
|
+
A property indicating whether the receiver is currently enabled for data capture.
|
|
1348
|
+
|
|
1349
|
+
@discussion
|
|
1350
|
+
By default, all AVCaptureAudioChannel objects exposed by a connection are enabled. You may set enabled to NO to stop the flow of data for a particular AVCaptureAudioChannel.
|
|
1351
|
+
*/
|
|
1352
|
+
@property(nonatomic, getter=isEnabled) BOOL enabled API_UNAVAILABLE(ios, macCatalyst, watchos, tvos, visionos);
|
|
1353
|
+
|
|
1354
|
+
@end
|
|
1355
|
+
|
|
1356
|
+
NS_ASSUME_NONNULL_END
|
|
1357
|
+
|
|
1358
|
+
#else
|
|
1359
|
+
#import <AVFCapture/AVCaptureSession.h>
|
|
1360
|
+
#endif
|