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,1006 @@
|
|
|
1
|
+
#if (defined(USE_AVFAUDIO_PUBLIC_HEADERS) && USE_AVFAUDIO_PUBLIC_HEADERS) || !__has_include(<AudioSession/AVAudioSessionTypes.h>)
|
|
2
|
+
/*!
|
|
3
|
+
@file AVAudioSessionTypes.h
|
|
4
|
+
@framework AudioSession.framework
|
|
5
|
+
@copyright (c) 2009-2024 Apple Inc. All rights reserved.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#ifndef AudioSession_AVAudioSessionTypes_h
|
|
9
|
+
#define AudioSession_AVAudioSessionTypes_h
|
|
10
|
+
|
|
11
|
+
#import <CoreAudioTypes/CoreAudioTypes.h>
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
#import <os/base.h>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#pragma mark -- constants for endpoint and port types --
|
|
17
|
+
|
|
18
|
+
/// A port describes a specific type of audio input or output device or connector.
|
|
19
|
+
typedef NSString *AVAudioSessionPort NS_STRING_ENUM;
|
|
20
|
+
|
|
21
|
+
/* input port types */
|
|
22
|
+
/// Continuity microphone for appletv.
|
|
23
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortContinuityMicrophone API_AVAILABLE(ios(17.0), watchos(10.0), tvos(17.0)) API_UNAVAILABLE(macos);
|
|
24
|
+
/// Line level input on a dock connector
|
|
25
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortLineIn API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
26
|
+
/// Built-in microphone on an iOS device
|
|
27
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInMic API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
28
|
+
/// Microphone on a wired headset. Headset refers to an accessory that has headphone outputs paired with a
|
|
29
|
+
/// microphone.
|
|
30
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortHeadsetMic API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
31
|
+
|
|
32
|
+
/* output port types */
|
|
33
|
+
|
|
34
|
+
/// Line level output on a dock connector
|
|
35
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortLineOut API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
36
|
+
|
|
37
|
+
/// Headphone or headset output
|
|
38
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortHeadphones API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
39
|
+
|
|
40
|
+
/// Output on a Bluetooth A2DP device
|
|
41
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBluetoothA2DP API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
42
|
+
|
|
43
|
+
/// The speaker you hold to your ear when on a phone call
|
|
44
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInReceiver API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
45
|
+
|
|
46
|
+
/// Built-in speaker on an iOS device
|
|
47
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
48
|
+
|
|
49
|
+
/// Output via High-Definition Multimedia Interface
|
|
50
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortHDMI API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
51
|
+
|
|
52
|
+
/// Output on a remote Air Play device
|
|
53
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortAirPlay API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
54
|
+
|
|
55
|
+
/// Output on a Bluetooth Low Energy device
|
|
56
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBluetoothLE API_AVAILABLE(ios(7.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
57
|
+
|
|
58
|
+
/* port types that refer to either input or output */
|
|
59
|
+
|
|
60
|
+
/// Input or output on a Bluetooth Hands-Free Profile device
|
|
61
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBluetoothHFP API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
62
|
+
|
|
63
|
+
/// Input or output on a Universal Serial Bus device
|
|
64
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortUSBAudio API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
65
|
+
|
|
66
|
+
/// Input or output via Car Audio
|
|
67
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortCarAudio API_AVAILABLE(ios(7.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
68
|
+
|
|
69
|
+
/// Input or output that does not correspond to real audio hardware
|
|
70
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortVirtual API_AVAILABLE(ios(14.0), watchos(7.0), tvos(14.0)) API_UNAVAILABLE(macos);
|
|
71
|
+
|
|
72
|
+
/// Input or output connected via the PCI (Peripheral Component Interconnect) bus
|
|
73
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortPCI API_AVAILABLE(ios(14.0), watchos(7.0), tvos(14.0)) API_UNAVAILABLE(macos);
|
|
74
|
+
|
|
75
|
+
/// Input or output connected via FireWire
|
|
76
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortFireWire API_AVAILABLE(ios(14.0), watchos(7.0), tvos(14.0)) API_UNAVAILABLE(macos);
|
|
77
|
+
|
|
78
|
+
/// Input or output connected via DisplayPort
|
|
79
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortDisplayPort API_AVAILABLE(ios(14.0), watchos(7.0), tvos(14.0)) API_UNAVAILABLE(macos);
|
|
80
|
+
|
|
81
|
+
/// Input or output connected via AVB (Audio Video Bridging)
|
|
82
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortAVB API_AVAILABLE(ios(14.0), watchos(7.0), tvos(14.0)) API_UNAVAILABLE(macos);
|
|
83
|
+
|
|
84
|
+
/// Input or output connected via Thunderbolt
|
|
85
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortThunderbolt API_AVAILABLE(ios(14.0), watchos(7.0), tvos(14.0)) API_UNAVAILABLE(macos);
|
|
86
|
+
|
|
87
|
+
/// Output to a media device vended through a system-wide extension that the user has installed
|
|
88
|
+
OS_EXPORT AVAudioSessionPort const AVAudioSessionPortMediaDeviceExtension API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos);
|
|
89
|
+
|
|
90
|
+
#pragma mark -- audio session categories --
|
|
91
|
+
|
|
92
|
+
/// A category defines a broad set of behaviors for a session.
|
|
93
|
+
typedef NSString *AVAudioSessionCategory NS_STRING_ENUM;
|
|
94
|
+
|
|
95
|
+
/*! Use this category for background sounds such as rain, car engine noise, etc.
|
|
96
|
+
Mixes with other music. */
|
|
97
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryAmbient API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
98
|
+
|
|
99
|
+
/*! Use this category for background sounds. Other music will stop playing. */
|
|
100
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategorySoloAmbient API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
101
|
+
|
|
102
|
+
/*! Use this category for music tracks.*/
|
|
103
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayback API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
104
|
+
|
|
105
|
+
/*! Use this category when recording audio. */
|
|
106
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
107
|
+
|
|
108
|
+
/*! Use this category when recording and playing back audio. */
|
|
109
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
110
|
+
|
|
111
|
+
/*! Use this category when using a hardware codec or signal processor while
|
|
112
|
+
not playing or recording audio. */
|
|
113
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryAudioProcessing API_DEPRECATED("No longer supported", ios(3.0, 10.0)) API_UNAVAILABLE(watchos, tvos, macos);
|
|
114
|
+
|
|
115
|
+
/*! Use this category to customize the usage of available audio accessories and built-in audio hardware.
|
|
116
|
+
For example, this category provides an application with the ability to use an available USB output
|
|
117
|
+
and headphone output simultaneously for separate, distinct streams of audio data. Use of
|
|
118
|
+
this category by an application requires a more detailed knowledge of, and interaction with,
|
|
119
|
+
the capabilities of the available audio routes. May be used for input, output, or both.
|
|
120
|
+
Note that not all output types and output combinations are eligible for multi-route. Input is limited
|
|
121
|
+
to the last-in input port. Eligible inputs consist of the following:
|
|
122
|
+
AVAudioSessionPortUSBAudio, AVAudioSessionPortHeadsetMic, and AVAudioSessionPortBuiltInMic.
|
|
123
|
+
Eligible outputs consist of the following:
|
|
124
|
+
AVAudioSessionPortUSBAudio, AVAudioSessionPortLineOut, AVAudioSessionPortHeadphones, AVAudioSessionPortHDMI,
|
|
125
|
+
and AVAudioSessionPortBuiltInSpeaker.
|
|
126
|
+
Note that AVAudioSessionPortBuiltInSpeaker is only allowed to be used when there are no other eligible
|
|
127
|
+
outputs connected. */
|
|
128
|
+
OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryMultiRoute API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
129
|
+
|
|
130
|
+
#pragma mark -- Values for the mode property --
|
|
131
|
+
|
|
132
|
+
/*!
|
|
133
|
+
@brief Modes modify the audio category in order to introduce behavior that is tailored to the specific
|
|
134
|
+
use of audio within an application. Available in iOS 5.0 and greater.
|
|
135
|
+
*/
|
|
136
|
+
typedef NSString *AVAudioSessionMode NS_STRING_ENUM;
|
|
137
|
+
|
|
138
|
+
/*! The default mode */
|
|
139
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
140
|
+
|
|
141
|
+
/*! Only valid with AVAudioSessionCategoryPlayAndRecord. Appropriate for Voice over IP
|
|
142
|
+
(VoIP) applications. Reduces the number of allowable audio routes to be only those
|
|
143
|
+
that are appropriate for VoIP applications and may engage appropriate system-supplied
|
|
144
|
+
signal processing. Has the side effect of setting AVAudioSessionCategoryOptionAllowBluetoothHFP.
|
|
145
|
+
Using this mode without the VoiceProcessing IO unit or AVAudioEngine with voice processing enabled will result in the following:
|
|
146
|
+
- Chat-specific signal processing such as echo cancellation or automatic gain correction will not be loaded
|
|
147
|
+
- Dynamic processing on input and output will be disabled resulting in a lower output playback level. */
|
|
148
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeVoiceChat API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
149
|
+
|
|
150
|
+
/*! Set by Game Kit on behalf of an application that uses a GKVoiceChat object; valid
|
|
151
|
+
only with the AVAudioSessionCategoryPlayAndRecord category.
|
|
152
|
+
Do not set this mode directly. If you need similar behavior and are not using
|
|
153
|
+
a GKVoiceChat object, use AVAudioSessionModeVoiceChat instead. */
|
|
154
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeGameChat API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
155
|
+
|
|
156
|
+
/*! Only valid with AVAudioSessionCategoryPlayAndRecord or AVAudioSessionCategoryRecord.
|
|
157
|
+
Modifies the audio routing options and may engage appropriate system-supplied signal processing. */
|
|
158
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeVideoRecording API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
159
|
+
|
|
160
|
+
/*! Appropriate for applications that wish to minimize the effect of system-supplied signal
|
|
161
|
+
processing for input and/or output audio signals.
|
|
162
|
+
This mode disables some dynamics processing on input and output resulting in a lower output playback level. */
|
|
163
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMeasurement API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
164
|
+
|
|
165
|
+
/*! Appropriate for applications playing movie content. Only valid with AVAudioSessionCategoryPlayback.
|
|
166
|
+
Setting this mode engages appropriate output signal processing for movie playback scenarios.
|
|
167
|
+
Content using this mode is eligible for Enhance Dialogue processing on supported routes with capable hardware */
|
|
168
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMoviePlayback API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
169
|
+
|
|
170
|
+
/*! Only valid with kAudioSessionCategory_PlayAndRecord. Reduces the number of allowable audio
|
|
171
|
+
routes to be only those that are appropriate for video chat applications. May engage appropriate
|
|
172
|
+
system-supplied signal processing. Has the side effect of setting
|
|
173
|
+
AVAudioSessionCategoryOptionAllowBluetoothHFP and AVAudioSessionCategoryOptionDefaultToSpeaker.
|
|
174
|
+
Using this mode without the VoiceProcessing IO unit or AVAudioEngine with voice processing enabled will result in the following:
|
|
175
|
+
- Chat-specific signal processing such as echo cancellation or automatic gain correction will not be loaded
|
|
176
|
+
- Dynamic processing on input and output will be disabled resulting in a lower output playback level. */
|
|
177
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeVideoChat API_AVAILABLE(ios(7.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
178
|
+
|
|
179
|
+
/*! Appropriate for applications which play spoken audio and wish to be paused (via audio session interruption) rather than ducked
|
|
180
|
+
if another app (such as a navigation app) plays a spoken audio prompt. Examples of apps that would use this are podcast players and
|
|
181
|
+
audio books. For more information, see the related category option AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers. */
|
|
182
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeSpokenAudio API_AVAILABLE(ios(9.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
183
|
+
|
|
184
|
+
/*! Appropriate for applications which play audio using text to speech. Setting this mode allows for different routing behaviors when
|
|
185
|
+
connected to certain audio devices such as CarPlay. An example of an app that would use this mode is a turn by turn navigation app that
|
|
186
|
+
plays short prompts to the user. Typically, these same types of applications would also configure their session to use
|
|
187
|
+
AVAudioSessionCategoryOptionDuckOthers and AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers */
|
|
188
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeVoicePrompt API_AVAILABLE(ios(12.0), watchos(5.0), tvos(12.0)) API_UNAVAILABLE(macos);
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
/// Appropriate for applications playing short-form video content.
|
|
192
|
+
///
|
|
193
|
+
/// Only valid with ``AVAudioSessionCategoryPlayback``.
|
|
194
|
+
/// Not applicable with ``AVAudioSessionRouteSharingPolicy/AVAudioSessionRouteSharingPolicyLongFormAudio``,
|
|
195
|
+
/// or ``AVAudioSessionRouteSharingPolicy/AVAudioSessionRouteSharingPolicyLongFormVideo``.
|
|
196
|
+
///
|
|
197
|
+
/// When this mode is set:
|
|
198
|
+
/// - system will make informed decisions to automatically unmute the output of the media if the user shows intention of unmuting.
|
|
199
|
+
/// - When auto-unmuted, ``AVAudioSessionUserIntentToUnmuteOutputNotification`` and ``AVAudioSessionOutputMuteStateChangeNotification`` will be sent.
|
|
200
|
+
/// - if the session is output muted, system may prevent interrupting other active audio apps.
|
|
201
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeShortFormVideo API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, visionos, macos);
|
|
202
|
+
|
|
203
|
+
/// A mode that provides simultaneous use of the built-in microphone/speaker and a secondary audio device that supports input and output.
|
|
204
|
+
///
|
|
205
|
+
/// This mode can only be used with the ``AVAudioSessionCategoryMultiRoute`` category. It additionally requires you to set the ``AVAudioSesssion/CategoryOptions/allowBluetoothHFP`` option.
|
|
206
|
+
///
|
|
207
|
+
/// Enabling this mode results in the following behavior:
|
|
208
|
+
/// - The primary audio route is always the built-in microphone/speaker.
|
|
209
|
+
/// - The supported secondary route types are ``AVAudioSessionPortHeadsetMic``, ``AVAudioSessionPortHeadphones``, ``AVAudioSessionPortBluetoothLE``, and ``AVAudioSessionPortBluetoothHFP``.
|
|
210
|
+
/// - Only audio routes that support input and output are available for use.
|
|
211
|
+
/// - The hardware volume controls adjusts the volume for both primary and secondary routes.
|
|
212
|
+
/// - The system may engage appropriate signal processing for output routes.
|
|
213
|
+
///
|
|
214
|
+
/// > Important: This API may not be used to enable recordings of others without their awareness.
|
|
215
|
+
OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDualRoute API_AVAILABLE(ios(26.2)) API_UNAVAILABLE(watchos, tvos, visionos, macos);
|
|
216
|
+
|
|
217
|
+
#pragma mark-- Names for NSNotifications --
|
|
218
|
+
|
|
219
|
+
/*!
|
|
220
|
+
@brief Notification sent to registered listeners when the system has interrupted the audio
|
|
221
|
+
session and when the interruption has ended.
|
|
222
|
+
|
|
223
|
+
Check the notification's userInfo dictionary for the interruption type, which is either
|
|
224
|
+
Begin or End. In the case of an end interruption notification, check the userInfo dictionary
|
|
225
|
+
for AVAudioSessionInterruptionOptions that indicate whether audio playback should resume.
|
|
226
|
+
In the case of a begin interruption notification, the reason for the interruption can be found
|
|
227
|
+
within the info dictionary under the key AVAudioSessionInterruptionReasonKey.
|
|
228
|
+
*/
|
|
229
|
+
OS_EXPORT NSNotificationName const AVAudioSessionInterruptionNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_DEPRECATED("Use AVAudioSessionDidBecomeInactiveNotification and AVAudioSessionResumptionRecommendationNotification instead", ios(6.0, 27.0), watchos(2.0, 27.0), tvos(9.0, 27.0), visionos(1.0, 27.0)) API_UNAVAILABLE(macos);
|
|
230
|
+
|
|
231
|
+
/*!
|
|
232
|
+
@brief Notification sent to registered listeners when an audio route change has occurred.
|
|
233
|
+
|
|
234
|
+
Check the notification's userInfo dictionary for the route change reason and for a description
|
|
235
|
+
of the previous audio route.
|
|
236
|
+
*/
|
|
237
|
+
OS_EXPORT NSNotificationName const AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
238
|
+
|
|
239
|
+
/*!
|
|
240
|
+
@brief Notification sent to registered listeners if the media server is killed.
|
|
241
|
+
|
|
242
|
+
In the event that the server is killed, take appropriate steps to handle requests that come in
|
|
243
|
+
before the server resets. See Technical Q&A QA1749.
|
|
244
|
+
*/
|
|
245
|
+
OS_EXPORT NSNotificationName const AVAudioSessionMediaServicesWereLostNotification API_AVAILABLE(ios(7.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
246
|
+
|
|
247
|
+
/*!
|
|
248
|
+
@brief Notification sent to registered listeners when the media server restarts.
|
|
249
|
+
|
|
250
|
+
In the event that the server restarts, take appropriate steps to re-initialize any audio objects
|
|
251
|
+
used by your application. See Technical Q&A QA1749.
|
|
252
|
+
*/
|
|
253
|
+
OS_EXPORT NSNotificationName const AVAudioSessionMediaServicesWereResetNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
254
|
+
|
|
255
|
+
/*!
|
|
256
|
+
@brief Notification sent to registered listeners when they are in the foreground with an active
|
|
257
|
+
audio session and primary audio from other applications starts and stops.
|
|
258
|
+
|
|
259
|
+
Check the notification's userInfo dictionary for the notification type, which is either Begin or
|
|
260
|
+
End. Foreground applications may use this notification as a hint to enable or disable audio that
|
|
261
|
+
is secondary to the functionality of the application. For more information, see the related
|
|
262
|
+
property secondaryAudioShouldBeSilencedHint.
|
|
263
|
+
*/
|
|
264
|
+
OS_EXPORT NSNotificationName const AVAudioSessionSilenceSecondaryAudioHintNotification API_AVAILABLE(ios(8.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
265
|
+
|
|
266
|
+
/*!
|
|
267
|
+
@brief Notification sent to registered listeners when spatial playback capabilities are changed due to a
|
|
268
|
+
change in user preference.
|
|
269
|
+
|
|
270
|
+
Check the notification's userInfo dictionary for AVAudioSessionSpatialAudioEnabledKey to check if spatial
|
|
271
|
+
audio is enabled.
|
|
272
|
+
|
|
273
|
+
Observers of this notification should also observe AVAudioSessionRouteChangeNotification since a route change
|
|
274
|
+
may also result in a change in the ability for the system to play spatial audio. Use
|
|
275
|
+
AVAudioSessionPortDescription's isSpatialAudioEnabled property to check if the current route supports
|
|
276
|
+
spatialized playback.
|
|
277
|
+
*/
|
|
278
|
+
OS_EXPORT NSNotificationName const AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos) NS_SWIFT_NAME(AVAudioSession.spatialPlaybackCapabilitiesChangedNotification);
|
|
279
|
+
|
|
280
|
+
/// Notification sent to registered listeners when the resolved rendering mode changes.
|
|
281
|
+
OS_EXPORT NSNotificationName const AVAudioSessionRenderingModeChangeNotification API_AVAILABLE(ios(17.2), tvos(17.2)) API_UNAVAILABLE(watchos, macos, visionos) NS_SWIFT_NAME(AVAudioSession.renderingModeChangeNotification);
|
|
282
|
+
|
|
283
|
+
/*!
|
|
284
|
+
@brief Notification sent to registered listeners when the rendering capabilities change.
|
|
285
|
+
*/
|
|
286
|
+
OS_EXPORT NSNotificationName const AVAudioSessionRenderingCapabilitiesChangeNotification API_AVAILABLE(ios(17.2), tvos(17.2)) API_UNAVAILABLE(watchos, macos, visionos) NS_SWIFT_NAME(AVAudioSession.renderingCapabilitiesChangeNotification);
|
|
287
|
+
|
|
288
|
+
/*!
|
|
289
|
+
@brief Notification sent to registered listeners when the system's capability to inject audio into input stream is changed
|
|
290
|
+
|
|
291
|
+
Check the notification's userInfo dictionary for AVAudioSessionMicrophoneInjectionIsAvailableKey to check if microphone
|
|
292
|
+
injection is available. Use AVAudioSession's isMicrophoneInjectionAvailable property to check if microphone injection is available
|
|
293
|
+
*/
|
|
294
|
+
OS_EXPORT NSNotificationName const AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification API_AVAILABLE(ios(18.2), visionos(2.2)) API_UNAVAILABLE(tvos, watchos, macos) NS_SWIFT_NAME(AVAudioSession.microphoneInjectionCapabilitiesChangeNotification);
|
|
295
|
+
|
|
296
|
+
/// Notification sent to registered listeners when session's output mute state changes.
|
|
297
|
+
///
|
|
298
|
+
/// The userInfo dictionary will contain the updated output mute value as accessed by ``AVAudioSessionMuteStateKey``
|
|
299
|
+
OS_EXPORT NSNotificationName const AVAudioSessionOutputMuteStateChangeNotification API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, visionos, macos) NS_SWIFT_NAME(AVAudioSession.outputMuteStateChangeNotification);
|
|
300
|
+
|
|
301
|
+
/// Keys for ``AVAudioSessionOutputMuteStateChangeNotification``
|
|
302
|
+
/// Value is `NSNumber` type with boolean value 0 for unmuted or value 1 for muted (samples zeroed out)
|
|
303
|
+
OS_EXPORT NSString *const AVAudioSessionMuteStateKey API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, visionos, macos) NS_SWIFT_NAME(AVAudioSession.muteStateKey);
|
|
304
|
+
|
|
305
|
+
/// Notification sent to registered listeners when the application's output is muted and user hints to unmute.
|
|
306
|
+
OS_EXPORT NSNotificationName const AVAudioSessionUserIntentToUnmuteOutputNotification API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, visionos, macos) NS_SWIFT_NAME(AVAudioSession.userIntentToUnmuteOutputNotification);
|
|
307
|
+
|
|
308
|
+
/// Notification sent when the audio session becomes active.
|
|
309
|
+
///
|
|
310
|
+
/// This notification has no userInfo payload.
|
|
311
|
+
OS_EXPORT NSNotificationName const AVAudioSessionDidBecomeActiveNotification API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos) NS_SWIFT_NAME(AVAudioSession.didBecomeActiveNotification);
|
|
312
|
+
|
|
313
|
+
/// Notification sent when the audio session becomes inactive.
|
|
314
|
+
///
|
|
315
|
+
/// The userInfo dictionary contains an ``AVAudioSessionDeactivationContext`` object accessible via ``AVAudioSessionDeactivationContextKey``.
|
|
316
|
+
OS_EXPORT NSNotificationName const AVAudioSessionDidBecomeInactiveNotification API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos) NS_SWIFT_NAME(AVAudioSession.didBecomeInactiveNotification);
|
|
317
|
+
|
|
318
|
+
/// Notification sent when the system provides a resumption recommendation.
|
|
319
|
+
///
|
|
320
|
+
/// The userInfo dictionary contains an ``AVAudioSessionResumptionContext`` object accessible via ``AVAudioSessionResumptionContextKey``.
|
|
321
|
+
OS_EXPORT NSNotificationName const AVAudioSessionResumptionRecommendationNotification API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos) NS_SWIFT_NAME(AVAudioSession.resumptionRecommendationNotification);
|
|
322
|
+
|
|
323
|
+
#pragma mark-- Keys for NSNotification userInfo dictionaries --
|
|
324
|
+
|
|
325
|
+
/// keys for AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification
|
|
326
|
+
/// value is an NSNumber whose boolean value indicates if spatial audio enabled.
|
|
327
|
+
OS_EXPORT NSString *const AVAudioSessionSpatialAudioEnabledKey API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos);
|
|
328
|
+
|
|
329
|
+
/// keys for AVAudioSessionInterruptionNotification
|
|
330
|
+
/// Value is an NSNumber representing an AVAudioSessionInterruptionType
|
|
331
|
+
OS_EXPORT NSString *const AVAudioSessionInterruptionTypeKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_DEPRECATED("Use AVAudioSessionDidBecomeInactiveNotification and AVAudioSessionResumptionRecommendationNotification instead", ios(6.0, 27.0), watchos(2.0, 27.0), tvos(9.0, 27.0), visionos(1.0, 27.0)) API_UNAVAILABLE(macos);
|
|
332
|
+
|
|
333
|
+
/// Only present for end interruption events. Value is of type AVAudioSessionInterruptionOptions.
|
|
334
|
+
OS_EXPORT NSString *const AVAudioSessionInterruptionOptionKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_DEPRECATED("Use AVAudioSessionDidBecomeInactiveNotification and AVAudioSessionResumptionRecommendationNotification instead", ios(6.0, 27.0), watchos(2.0, 27.0), tvos(9.0, 27.0), visionos(1.0, 27.0)) API_UNAVAILABLE(macos);
|
|
335
|
+
|
|
336
|
+
/// Only present in begin interruption events. Value is of type AVAudioSessionInterruptionReason.
|
|
337
|
+
OS_EXPORT NSString *const AVAudioSessionInterruptionReasonKey API_AVAILABLE(ios(14.5), watchos(7.3)) API_DEPRECATED("Use AVAudioSessionDeactivationContext.interruptionDetails.reason instead", ios(14.5, 27.0), watchos(7.3, 27.0), tvos(14.5, 27.0), visionos(1.0, 27.0)) API_UNAVAILABLE(tvos, macos);
|
|
338
|
+
|
|
339
|
+
/*!
|
|
340
|
+
Only present in begin interruption events, where the interruption is a direct result of the
|
|
341
|
+
application being suspended by the operating sytem. Value is a boolean NSNumber, where a true
|
|
342
|
+
value indicates that the interruption is the result of the application being suspended, rather
|
|
343
|
+
than being interrupted by another audio session.
|
|
344
|
+
|
|
345
|
+
Starting in iOS 10, the system will deactivate the audio session of most apps in response to the
|
|
346
|
+
app process being suspended. When the app starts running again, it will receive the notification
|
|
347
|
+
that its session has been deactivated by the system. Note that the notification is necessarily
|
|
348
|
+
delayed in time, due to the fact that the application was suspended at the time the session was
|
|
349
|
+
deactivated by the system and the notification can only be delivered once the app is running
|
|
350
|
+
again.
|
|
351
|
+
*/
|
|
352
|
+
OS_EXPORT NSString *const AVAudioSessionInterruptionWasSuspendedKey API_DEPRECATED("No longer supported - see AVAudioSessionInterruptionReasonKey", ios(10.3, 14.5), watchos(3.2, 7.3), tvos(10.3, 14.5));
|
|
353
|
+
|
|
354
|
+
/// keys for AVAudioSessionRouteChangeNotification
|
|
355
|
+
/// value is an NSNumber representing an AVAudioSessionRouteChangeReason
|
|
356
|
+
OS_EXPORT NSString *const AVAudioSessionRouteChangeReasonKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
357
|
+
/// value is AVAudioSessionRouteDescription *
|
|
358
|
+
OS_EXPORT NSString *const AVAudioSessionRouteChangePreviousRouteKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
359
|
+
|
|
360
|
+
/// keys for AVAudioSessionSilenceSecondaryAudioHintNotification
|
|
361
|
+
/// value is an NSNumber representing an AVAudioSessionSilenceSecondaryAudioHintType
|
|
362
|
+
OS_EXPORT NSString *const AVAudioSessionSilenceSecondaryAudioHintTypeKey API_AVAILABLE(ios(8.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
|
|
363
|
+
|
|
364
|
+
/// keys for AVAudioSessionRenderingModeChangeNotification
|
|
365
|
+
/// Contains a payload of NSInteger representing the new resolved rendering mode
|
|
366
|
+
OS_EXPORT NSString *const AVAudioSessionRenderingModeNewRenderingModeKey API_AVAILABLE(ios(17.2), tvos(17.2)) API_UNAVAILABLE(watchos, macos, visionos);
|
|
367
|
+
|
|
368
|
+
/*!
|
|
369
|
+
Keys for AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification
|
|
370
|
+
*/
|
|
371
|
+
/// Indicates if microphone injection is available.
|
|
372
|
+
/// Value is an NSNumber whose boolean value indicates if microphone injection is available.
|
|
373
|
+
OS_EXPORT NSString *const AVAudioSessionMicrophoneInjectionIsAvailableKey API_AVAILABLE(ios(18.2), visionos(2.2)) API_UNAVAILABLE(tvos, watchos, macos);
|
|
374
|
+
|
|
375
|
+
/// Keys for ``AVAudioSessionDidBecomeInactiveNotification``
|
|
376
|
+
/// Value is an ``AVAudioSessionDeactivationContext`` object describing the deactivation.
|
|
377
|
+
OS_EXPORT NSString *const AVAudioSessionDeactivationContextKey API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos)
|
|
378
|
+
NS_SWIFT_NAME(AVAudioSession.deactivationContextKey);
|
|
379
|
+
|
|
380
|
+
/// Keys for ``AVAudioSessionResumptionRecommendationNotification``
|
|
381
|
+
/// Value is an ``AVAudioSessionResumptionContext`` describing the resumption recommendation.
|
|
382
|
+
OS_EXPORT NSString *const AVAudioSessionResumptionContextKey API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos)
|
|
383
|
+
NS_SWIFT_NAME(AVAudioSession.resumptionContextKey);
|
|
384
|
+
|
|
385
|
+
/*!
|
|
386
|
+
@brief Notification sent to registered listeners when there are changes in ``availableInputs``.
|
|
387
|
+
|
|
388
|
+
There is no payload (userInfo dictionary) associated with the ``AVAudioSessionAvailableInputsChangeNotification`` notification.
|
|
389
|
+
*/
|
|
390
|
+
OS_EXPORT NSNotificationName const AVAudioSessionAvailableInputsChangeNotification API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, visionos, macos)
|
|
391
|
+
NS_SWIFT_NAME(AVAudioSession.availableInputsChangeNotification);
|
|
392
|
+
|
|
393
|
+
#pragma mark-- enumerations --
|
|
394
|
+
|
|
395
|
+
/*!
|
|
396
|
+
@enum AVAudioSessionActivationOptions
|
|
397
|
+
@brief For use with activateWithOptions:completionHandler:
|
|
398
|
+
*/
|
|
399
|
+
typedef NS_OPTIONS(NSUInteger, AVAudioSessionActivationOptions) {
|
|
400
|
+
AVAudioSessionActivationOptionNone = 0
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
/// Options for deactivating an AVAudioSession
|
|
404
|
+
typedef NS_OPTIONS(NSUInteger, AVAudioSessionDeactivationOptions) {
|
|
405
|
+
AVAudioSessionDeactivationOptionNone = 0,
|
|
406
|
+
|
|
407
|
+
/// Notify an interrupted app that the interruption has ended and it may resume playback.
|
|
408
|
+
AVAudioSessionDeactivationOptionNotifyOthersOnDeactivation API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos) = 1 << 0,
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
/// For use with overrideOutputAudioPort:error:
|
|
412
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionPortOverride) {
|
|
413
|
+
/// No override. Return audio routing to the default state for the current audio category.
|
|
414
|
+
AVAudioSessionPortOverrideNone = 0,
|
|
415
|
+
/// Route audio output to speaker. Use this override with AVAudioSessionCategoryPlayAndRecord,
|
|
416
|
+
/// which by default routes the output to the receiver.
|
|
417
|
+
AVAudioSessionPortOverrideSpeaker API_UNAVAILABLE(tvos, watchos, macos) = 'spkr'
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
/// Values for AVAudioSessionRouteChangeReasonKey in AVAudioSessionRouteChangeNotification's
|
|
421
|
+
/// userInfo dictionary
|
|
422
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionRouteChangeReason) {
|
|
423
|
+
/// The reason is unknown.
|
|
424
|
+
AVAudioSessionRouteChangeReasonUnknown = 0,
|
|
425
|
+
|
|
426
|
+
/// A new device became available (e.g. headphones have been plugged in).
|
|
427
|
+
AVAudioSessionRouteChangeReasonNewDeviceAvailable = 1,
|
|
428
|
+
|
|
429
|
+
/// The old device became unavailable (e.g. headphones have been unplugged).
|
|
430
|
+
AVAudioSessionRouteChangeReasonOldDeviceUnavailable = 2,
|
|
431
|
+
|
|
432
|
+
/// The audio category has changed (e.g. AVAudioSessionCategoryPlayback has been changed to
|
|
433
|
+
/// AVAudioSessionCategoryPlayAndRecord).
|
|
434
|
+
AVAudioSessionRouteChangeReasonCategoryChange = 3,
|
|
435
|
+
|
|
436
|
+
/// The route has been overridden (e.g. category is AVAudioSessionCategoryPlayAndRecord and
|
|
437
|
+
/// the output has been changed from the receiver, which is the default, to the speaker).
|
|
438
|
+
AVAudioSessionRouteChangeReasonOverride = 4,
|
|
439
|
+
|
|
440
|
+
/// The device woke from sleep.
|
|
441
|
+
AVAudioSessionRouteChangeReasonWakeFromSleep = 6,
|
|
442
|
+
|
|
443
|
+
/// Returned when there is no route for the current category (for instance, the category is
|
|
444
|
+
/// AVAudioSessionCategoryRecord but no input device is available).
|
|
445
|
+
AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory = 7,
|
|
446
|
+
|
|
447
|
+
/// Indicates that the set of input and/our output ports has not changed, but some aspect of
|
|
448
|
+
/// their configuration has changed. For example, a port's selected data source has changed.
|
|
449
|
+
/// (Introduced in iOS 7.0, watchOS 2.0, tvOS 9.0).
|
|
450
|
+
AVAudioSessionRouteChangeReasonRouteConfigurationChange = 8
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
/// Customization of various aspects of a category's behavior.
|
|
455
|
+
/// Use with ``AVAudioSession/setCategory:mode:options:error:``.
|
|
456
|
+
///
|
|
457
|
+
/// Applications must be prepared for changing category options to fail as behavior may change
|
|
458
|
+
/// in future releases. If an application changes its category, it should reassert the options,
|
|
459
|
+
/// since they are not sticky across category changes. Introduced in iOS 6.0 / watchOS 2.0 /
|
|
460
|
+
/// tvOS 9.0.
|
|
461
|
+
typedef NS_OPTIONS(NSUInteger, AVAudioSessionCategoryOptions) {
|
|
462
|
+
|
|
463
|
+
/// Controls whether other active audio apps will be interrupted or mixed with when your app's
|
|
464
|
+
/// audio session goes active. Details depend on the category.
|
|
465
|
+
///
|
|
466
|
+
/// - ``AVAudioSessionCategoryPlayAndRecord`` or
|
|
467
|
+
/// ``AVAudioSessionCategoryMultiRoute`` with ``AVAudioSessionModeDefault``:
|
|
468
|
+
/// MixWithOthers defaults to false, but can be set to true, allowing other applications to
|
|
469
|
+
/// play in the background while your app has both audio input and output enabled.
|
|
470
|
+
///
|
|
471
|
+
/// - ``AVAudioSessionCategoryPlayback``:
|
|
472
|
+
/// MixWithOthers defaults to false, but can be set to true, allowing other applications to
|
|
473
|
+
/// play in the background. Your app will still be able to play regardless of the setting
|
|
474
|
+
/// of the ringer switch.
|
|
475
|
+
///
|
|
476
|
+
/// - Other categories:
|
|
477
|
+
/// MixWithOthers defaults to false and cannot be changed.
|
|
478
|
+
///
|
|
479
|
+
/// MixWithOthers is only valid with ``AVAudioSessionCategoryPlayAndRecord``,
|
|
480
|
+
/// ``AVAudioSessionCategoryPlayback``, and
|
|
481
|
+
/// ``AVAudioSessionCategoryMultiRoute`` with ``AVAudioSessionModeDefault``.
|
|
482
|
+
AVAudioSessionCategoryOptionMixWithOthers = 0x1,
|
|
483
|
+
|
|
484
|
+
/// Controls whether or not other active audio apps will be ducked when when your app's audio
|
|
485
|
+
/// session goes active. An example of this is a workout app, which provides periodic updates to
|
|
486
|
+
/// the user. It reduces the volume of any music currently being played while it provides its
|
|
487
|
+
/// status.
|
|
488
|
+
///
|
|
489
|
+
/// Defaults to off. Note that the other audio will be ducked for as long as the current session
|
|
490
|
+
/// is active. You will need to deactivate your audio session when you want to restore full
|
|
491
|
+
/// volume playback (un-duck) other sessions.
|
|
492
|
+
///
|
|
493
|
+
/// Setting this option will also make your session mixable with others
|
|
494
|
+
/// (``AVAudioSessionCategoryOptionMixWithOthers`` will be set).
|
|
495
|
+
///
|
|
496
|
+
/// DuckOthers is only valid with ``AVAudioSessionCategoryAmbient``,
|
|
497
|
+
/// ``AVAudioSessionCategoryPlayAndRecord``, ``AVAudioSessionCategoryPlayback``, and
|
|
498
|
+
/// ``AVAudioSessionCategoryMultiRoute`` with ``AVAudioSessionModeDefault``.
|
|
499
|
+
AVAudioSessionCategoryOptionDuckOthers = 0x2,
|
|
500
|
+
|
|
501
|
+
/// Deprecated - please see ``AVAudioSessionCategoryOptionAllowBluetoothHFP``
|
|
502
|
+
AVAudioSessionCategoryOptionAllowBluetooth API_DEPRECATED_WITH_REPLACEMENT("AVAudioSessionCategoryOptionAllowBluetoothHFP", ios(1.0, 8.0), watchos(11.0, 11.0), tvos(17.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(macos) = 0x4,
|
|
503
|
+
|
|
504
|
+
/// Allows an application to change the default behavior of some audio session categories with
|
|
505
|
+
/// regard to whether Bluetooth Hands-Free Profile (HFP) devices are available for routing. The
|
|
506
|
+
/// exact behavior depends on the category.
|
|
507
|
+
///
|
|
508
|
+
/// - ``AVAudioSessionCategoryPlayAndRecord``:
|
|
509
|
+
/// AllowBluetoothHFP defaults to false, but can be set to true, allowing a paired bluetooth
|
|
510
|
+
/// HFP device to appear as an available route for input, while playing through the
|
|
511
|
+
/// category-appropriate output.
|
|
512
|
+
///
|
|
513
|
+
/// - ``AVAudioSessionCategoryRecord``:
|
|
514
|
+
/// AllowBluetoothHFP defaults to false, but can be set to true, allowing a paired Bluetooth
|
|
515
|
+
/// HFP device to appear as an available route for input.
|
|
516
|
+
///
|
|
517
|
+
/// - Other categories:
|
|
518
|
+
/// AllowBluetoothHFP defaults to false and cannot be changed. Enabling Bluetooth for input in
|
|
519
|
+
/// these categories is not allowed.
|
|
520
|
+
AVAudioSessionCategoryOptionAllowBluetoothHFP API_AVAILABLE(ios(1.0), watchos(11.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(macos) = 0x4,
|
|
521
|
+
|
|
522
|
+
/// Allows an application to change the default behavior of some audio session categories with
|
|
523
|
+
/// regard to the audio route. The exact behavior depends on the category.
|
|
524
|
+
///
|
|
525
|
+
/// - ``AVAudioSessionCategoryPlayAndRecord``:
|
|
526
|
+
/// DefaultToSpeaker will default to false, but can be set to true, routing to Speaker
|
|
527
|
+
/// (instead of Receiver) when no other audio route is connected.
|
|
528
|
+
///
|
|
529
|
+
/// - Other categories:
|
|
530
|
+
/// DefaultToSpeaker is always false and cannot be changed.
|
|
531
|
+
AVAudioSessionCategoryOptionDefaultToSpeaker API_UNAVAILABLE(tvos, watchos, macos) = 0x8,
|
|
532
|
+
|
|
533
|
+
/// When a session with InterruptSpokenAudioAndMixWithOthers set goes active, then if there is
|
|
534
|
+
/// another playing app whose session mode is ``AVAudioSessionModeSpokenAudio`` (for podcast
|
|
535
|
+
/// playback in the background, for example), then the spoken-audio session will be
|
|
536
|
+
/// interrupted. A good use of this is for a navigation app that provides prompts to its user:
|
|
537
|
+
/// it pauses any spoken audio currently being played while it plays the prompt.
|
|
538
|
+
///
|
|
539
|
+
/// InterruptSpokenAudioAndMixWithOthers defaults to off. Note that the other app's audio will
|
|
540
|
+
/// be paused for as long as the current session is active. You will need to deactivate your
|
|
541
|
+
/// audio session to allow the other session to resume playback. Setting this option will also
|
|
542
|
+
/// make your category mixable with others (``AVAudioSessionCategoryOptionMixWithOthers``
|
|
543
|
+
/// will be set). If you want other non-spoken audio apps to duck their audio when your app's session
|
|
544
|
+
/// goes active, also set ``AVAudioSessionCategoryOptionDuckOthers``.
|
|
545
|
+
///
|
|
546
|
+
/// Only valid with ``AVAudioSessionCategoryPlayAndRecord``,
|
|
547
|
+
/// ``AVAudioSessionCategoryPlayback``, and
|
|
548
|
+
/// ``AVAudioSessionCategoryMultiRoute`` with ``AVAudioSessionModeDefault``.
|
|
549
|
+
AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers API_AVAILABLE(ios(9.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos) = 0x11,
|
|
550
|
+
|
|
551
|
+
/// Allows an application to change the default behavior of some audio session categories with
|
|
552
|
+
/// regard to whether Bluetooth Advanced Audio Distribution Profile (A2DP) devices are
|
|
553
|
+
/// available for routing. The exact behavior depends on the category.
|
|
554
|
+
///
|
|
555
|
+
/// - ``AVAudioSessionCategoryPlayAndRecord``:
|
|
556
|
+
/// AllowBluetoothA2DP defaults to false, but can be set to true, allowing a paired
|
|
557
|
+
/// Bluetooth A2DP device to appear as an available route for output, while recording
|
|
558
|
+
/// through the category-appropriate input.
|
|
559
|
+
///
|
|
560
|
+
/// - ``AVAudioSessionCategoryMultiRoute`` and ``AVAudioSessionCategoryRecord``:
|
|
561
|
+
/// AllowBluetoothA2DP is false, and cannot be set to true.
|
|
562
|
+
///
|
|
563
|
+
/// - Other categories:
|
|
564
|
+
/// AllowBluetoothA2DP is always implicitly true and cannot be changed; Bluetooth A2DP ports
|
|
565
|
+
/// are always supported in output-only categories.
|
|
566
|
+
///
|
|
567
|
+
/// Setting both ``AVAudioSessionCategoryOptionAllowBluetoothHFP``
|
|
568
|
+
/// and ``AVAudioSessionCategoryOptionAllowBluetoothA2DP`` is
|
|
569
|
+
/// allowed. In cases where a single Bluetooth device supports both HFP and A2DP, the HFP
|
|
570
|
+
/// ports will be given a higher priority for routing. For HFP and A2DP ports on separate
|
|
571
|
+
/// hardware devices, the last-in wins rule applies.
|
|
572
|
+
AVAudioSessionCategoryOptionAllowBluetoothA2DP API_AVAILABLE(ios(10.0), watchos(3.0), tvos(10.0)) API_UNAVAILABLE(macos) = 0x20,
|
|
573
|
+
|
|
574
|
+
/// Allows an application to change the default behavior of some audio session categories
|
|
575
|
+
/// with regard to showing AirPlay devices as available routes. This option applies to
|
|
576
|
+
/// various categories in the same way as ``AVAudioSessionCategoryOptionAllowBluetoothA2DP``;
|
|
577
|
+
/// see above for details. Only valid with ``AVAudioSessionCategoryPlayAndRecord``.
|
|
578
|
+
AVAudioSessionCategoryOptionAllowAirPlay API_AVAILABLE(ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos, macos) = 0x40,
|
|
579
|
+
|
|
580
|
+
/// Some devices include a privacy feature that mutes the built-in microphone at a hardware level
|
|
581
|
+
/// under certain conditions e.g. when the Smart Folio of an iPad is closed. The default behavior is
|
|
582
|
+
/// to interrupt the session using the built-in microphone when that microphone is muted in hardware.
|
|
583
|
+
/// This option allows an application to opt out of the default behavior if it is using a category that
|
|
584
|
+
/// supports both input and output, such as ``AVAudioSessionCategoryPlayAndRecord``, and wants to
|
|
585
|
+
/// allow its session to stay activated even when the microphone has been muted. The result would be
|
|
586
|
+
/// that playback continues as normal, and microphone sample buffers would continue to be produced
|
|
587
|
+
/// but all microphone samples would have a value of zero.
|
|
588
|
+
///
|
|
589
|
+
/// This may be useful if an application knows that it wants to allow playback to continue and
|
|
590
|
+
/// recording/monitoring a muted microphone will not lead to a poor user experience. Attempting to use
|
|
591
|
+
/// this option with a session category that doesn't support the use of audio input will result in an error.
|
|
592
|
+
///
|
|
593
|
+
/// - Note Under the default policy, a session will be interrupted if it is running input at the time when
|
|
594
|
+
/// the microphone is muted in hardware. Similarly, attempting to start input when the microphone is
|
|
595
|
+
/// muted will fail.
|
|
596
|
+
/// - Note This option has no relation to the recordPermission property, which indicates whether or
|
|
597
|
+
/// not the user has granted permission to use microphone input.
|
|
598
|
+
AVAudioSessionCategoryOptionOverrideMutedMicrophoneInterruption API_AVAILABLE(ios(14.5), watchos(7.3)) API_UNAVAILABLE(tvos, macos) = 0x80,
|
|
599
|
+
|
|
600
|
+
/// This option should be used if a session prefers to use FarFieldInput when available.
|
|
601
|
+
/// This option is only valid with categories that support input -
|
|
602
|
+
/// ``AVAudioSessionCategoryPlayAndRecord``, ``AVAudioSessionCategoryRecord``, and ``AVAudioSessionMultiRoute`` with ``AVAudioSessionModeDualRoute``.
|
|
603
|
+
///
|
|
604
|
+
/// - This option requires ``AVAudioSessionCategoryOptionAllowBluetoothHFP`` to be set.
|
|
605
|
+
/// Otherwise error will be returned.
|
|
606
|
+
///
|
|
607
|
+
/// - Support for this can be queried on input ports via the BluetoothMicrophone interface on a port,
|
|
608
|
+
/// via its member `farFieldCapture.isSupported`.
|
|
609
|
+
///
|
|
610
|
+
/// - Active sessions can see if far-field input is enabled on a bluetooth audio device by querying
|
|
611
|
+
/// the BluetoothMicrophone interface of the input port of the current route for: `farFieldCapture.isEnabled`.
|
|
612
|
+
AVAudioSessionCategoryOptionFarFieldInput API_AVAILABLE(ios(26.2)) API_UNAVAILABLE(watchos, tvos, macos, visionos) = 1 << 18,
|
|
613
|
+
|
|
614
|
+
/// When this option is specified with a category that supports both input and output, the session
|
|
615
|
+
/// will enable full-bandwidth audio in both input & output directions, if the Bluetooth route supports
|
|
616
|
+
/// it (e.g. certain AirPods models). It is currently compatible only with mode ``AVAudioSessionModeDefault``.
|
|
617
|
+
///
|
|
618
|
+
/// - Support for this can be queried on input ports via the BluetoothMicrophone interface on a port,
|
|
619
|
+
/// via its member `highQualityRecording.isSupported`.
|
|
620
|
+
///
|
|
621
|
+
/// - Active sessions can see if full-bandwidth Bluetooth audio was successfully enabled by querying
|
|
622
|
+
/// the BluetoothMicrophone interface of the input port of the current route for:
|
|
623
|
+
/// `highQualityRecording.isEnabled`.
|
|
624
|
+
///
|
|
625
|
+
/// - When this option is provided alone, it will be enabled if the route supports it, otherwise the option
|
|
626
|
+
/// will be ignored. This option may be combined with ``AVAudioSessionCategoryOptionAllowBluetoothHFP``,
|
|
627
|
+
/// in which case HFP will be used as a fallback if the route does not support this
|
|
628
|
+
/// ``AVAudioSessionCategoryOptionBluetoothHighQualityRecording`` option.
|
|
629
|
+
///
|
|
630
|
+
/// - Note This option may increase input latency when enabled and is therefore not recommended for
|
|
631
|
+
/// real-time communication usage.
|
|
632
|
+
/// - Note Apps using ``AVAudioSessionCategoryOptionBluetoothHighQualityRecording``
|
|
633
|
+
/// may want to consider setting ``AVAudioSession/setPrefersNoInterruptionsFromSystemAlerts:error:``
|
|
634
|
+
/// while recording, to avoid the recording session being interrupted by an incoming call ringtone.
|
|
635
|
+
AVAudioSessionCategoryOptionBluetoothHighQualityRecording API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macCatalyst, visionos, macos) = 1 << 19
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
/// Values for AVAudioSessionInterruptionTypeKey in AVAudioSessionInterruptionNotification's
|
|
639
|
+
/// userInfo dictionary.
|
|
640
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionInterruptionType) {
|
|
641
|
+
AVAudioSessionInterruptionTypeBegan = 1, ///< the system has interrupted your audio session
|
|
642
|
+
AVAudioSessionInterruptionTypeEnded = 0, ///< the interruption has ended
|
|
643
|
+
} API_DEPRECATED("Use AVAudioSessionDidBecomeInactiveNotification and AVAudioSessionResumptionRecommendationNotification instead", ios(6.0, 27.0), watchos(2.0, 27.0), tvos(9.0, 27.0), visionos(1.0, 27.0));
|
|
644
|
+
|
|
645
|
+
/// Values for AVAudioSessionInterruptionOptionKey in AVAudioSessionInterruptionNotification's
|
|
646
|
+
/// userInfo dictionary.
|
|
647
|
+
typedef NS_OPTIONS(NSUInteger, AVAudioSessionInterruptionOptions) {
|
|
648
|
+
/// Indicates that you should resume playback now that the interruption has ended.
|
|
649
|
+
AVAudioSessionInterruptionOptionShouldResume = 1
|
|
650
|
+
} API_DEPRECATED("Use AVAudioSessionResumptionRecommendationNotification instead", ios(6.0, 27.0), watchos(2.0, 27.0), tvos(9.0, 27.0), visionos(1.0, 27.0));
|
|
651
|
+
|
|
652
|
+
/*!
|
|
653
|
+
@enum AVAudioSessionInterruptionReason
|
|
654
|
+
@brief Values for AVAudioSessionInterruptionReasonKey in AVAudioSessionInterruptionNotification's userInfo dictionary.
|
|
655
|
+
|
|
656
|
+
@var AVAudioSessionInterruptionReasonDefault
|
|
657
|
+
The audio session was interrupted because another session was activated.
|
|
658
|
+
|
|
659
|
+
@var AVAudioSessionInterruptionReasonAppWasSuspended
|
|
660
|
+
The audio session was interrupted due to the app being suspended by the operating sytem.
|
|
661
|
+
Deprecated. Interruption notifications with reason 'wasSuspended' not present from iOS 16 onwards.
|
|
662
|
+
|
|
663
|
+
@var AVAudioSessionInterruptionReasonBuiltInMicMuted
|
|
664
|
+
The audio session was interrupted due to the built-in mic being muted e.g. due to an iPad's Smart Folio being closed.
|
|
665
|
+
|
|
666
|
+
@var AVAudioSessionInterruptionReasonRouteDisconnected
|
|
667
|
+
The audio session was interrupted due to route getting disconnected.
|
|
668
|
+
|
|
669
|
+
@var AVAudioSessionInterruptionReasonDeviceUnauthenticated
|
|
670
|
+
The audio session was interrupted due to device being doffed or locked.
|
|
671
|
+
|
|
672
|
+
*/
|
|
673
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionInterruptionReason) {
|
|
674
|
+
AVAudioSessionInterruptionReasonDefault = 0,
|
|
675
|
+
AVAudioSessionInterruptionReasonAppWasSuspended API_DEPRECATED("wasSuspended reason no longer present", ios(14.5, 16.0)) = 1,
|
|
676
|
+
AVAudioSessionInterruptionReasonBuiltInMicMuted = 2,
|
|
677
|
+
#if TARGET_OS_VISION
|
|
678
|
+
///The audio session was interrupted because its UIScene was backgrounded
|
|
679
|
+
AVAudioSessionInterruptionReasonSceneWasBackgrounded = 3,
|
|
680
|
+
#endif // TARGET_OS_VISION
|
|
681
|
+
///The audio session was interrupted because route was disconnected.
|
|
682
|
+
AVAudioSessionInterruptionReasonRouteDisconnected API_AVAILABLE(ios(17.0), watchos(10.0), tvos(17.0)) API_UNAVAILABLE(macos) = 4,
|
|
683
|
+
#if TARGET_OS_VISION
|
|
684
|
+
AVAudioSessionInterruptionReasonDeviceUnauthenticated API_UNAVAILABLE(visionos) = 5,
|
|
685
|
+
#endif // TARGET_OS_VISION
|
|
686
|
+
} NS_SWIFT_NAME(AVAudioSession.InterruptionReason);
|
|
687
|
+
|
|
688
|
+
/// The source of the audio session deactivation.
|
|
689
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionDeactivationSource) {
|
|
690
|
+
AVAudioSessionDeactivationSourceApp = 1, // App requested deactivation.
|
|
691
|
+
AVAudioSessionDeactivationSourceSystem = 2, // The system deactivated the session.
|
|
692
|
+
} NS_SWIFT_NAME(AVAudioSession.DeactivationSource)
|
|
693
|
+
API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos);
|
|
694
|
+
|
|
695
|
+
/// The system's recommendation on whether to resume playback.
|
|
696
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionResumptionRecommendation) {
|
|
697
|
+
AVAudioSessionResumptionRecommendationShouldNotResume = 0, // The system recommends not resuming.
|
|
698
|
+
AVAudioSessionResumptionRecommendationShouldResume = 1, // The system recommends resuming.
|
|
699
|
+
} NS_SWIFT_NAME(AVAudioSession.ResumptionRecommendation)
|
|
700
|
+
API_AVAILABLE(ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(macos);
|
|
701
|
+
|
|
702
|
+
/// options for use when calling setActive:withOptions:error:
|
|
703
|
+
typedef NS_OPTIONS(NSUInteger, AVAudioSessionSetActiveOptions)
|
|
704
|
+
{
|
|
705
|
+
/// Notify an interrupted app that the interruption has ended and it may resume playback. Only
|
|
706
|
+
/// valid on session deactivation.
|
|
707
|
+
AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation = 1
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
/// Values for AVAudioSessionSilenceSecondaryAudioHintTypeKey in
|
|
711
|
+
/// AVAudioSessionSilenceSecondaryAudioHintNotification's userInfo dictionary, to indicate whether
|
|
712
|
+
/// optional secondary audio muting should begin or end.
|
|
713
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionSilenceSecondaryAudioHintType) {
|
|
714
|
+
/// Another application's primary audio has started.
|
|
715
|
+
AVAudioSessionSilenceSecondaryAudioHintTypeBegin = 1,
|
|
716
|
+
|
|
717
|
+
/// Another application's primary audio has stopped.
|
|
718
|
+
AVAudioSessionSilenceSecondaryAudioHintTypeEnd = 0,
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
/*!
|
|
722
|
+
@enum AVAudioSessionIOType
|
|
723
|
+
@brief Values to be used by setAggregatedIOPreference:error: method.
|
|
724
|
+
|
|
725
|
+
Starting in iOS 10, applications that use AVCaptureSession on iPads and iPhones that
|
|
726
|
+
support taking Live Photos, will have non-aggregated audio I/O unless the app opts out by
|
|
727
|
+
setting its AVAudioSessionIOType to Aggregated. Non-aggregated audio I/O means that separate
|
|
728
|
+
threads will be used to service audio I/O for input and output directions.
|
|
729
|
+
|
|
730
|
+
Note that in cases where the I/O is not aggregated, the sample rate and IO buffer duration
|
|
731
|
+
properties will map to the output audio device. In this scenario, the input and
|
|
732
|
+
output audio hardware may be running at different sample rates and with different IO buffer
|
|
733
|
+
durations. If your app requires input and output audio to be presented in the same realtime
|
|
734
|
+
I/O callback, or requires that input and output audio have the same sample rate or IO buffer
|
|
735
|
+
duration, or if your app requires the ability to set a preferred sample rate or IO buffer duration
|
|
736
|
+
for audio input, set the AVAudioSessionIOType to Aggregated.
|
|
737
|
+
|
|
738
|
+
Apps that don't use AVCaptureSession and use AVAudioSessionCategoryPlayAndRecord will continue
|
|
739
|
+
to have aggregated audio I/O, as in previous versions of iOS.
|
|
740
|
+
|
|
741
|
+
@var AVAudioSessionIOTypeNotSpecified
|
|
742
|
+
The default value. If your app does not use AVCaptureSession or does not have any specific
|
|
743
|
+
requirement for aggregating input and output audio in the same realtime I/O callback, use this
|
|
744
|
+
value. Note that if your app does not use AVCaptureSession, it will get aggregated I/O when using
|
|
745
|
+
AVAudioSessionCategoryPlayAndRecord.
|
|
746
|
+
|
|
747
|
+
If your app does utilize AVCaptureSession, use of this value will allow AVCaptureSession to
|
|
748
|
+
start recording without glitching already running output audio and will allow the system to
|
|
749
|
+
utilize power-saving optimizations.
|
|
750
|
+
|
|
751
|
+
@var AVAudioSessionIOTypeAggregated
|
|
752
|
+
Use this value if your session uses AVAudioSessionCategoryPlayAndRecord and requires input and
|
|
753
|
+
output audio to be presented in the same realtime I/O callback. For example, if your app will be using
|
|
754
|
+
a RemoteIO with both input and output enabled.
|
|
755
|
+
|
|
756
|
+
Note that your session's preference to use aggregated IO will not be honored if it specifies
|
|
757
|
+
AVAudioSessionCategoryOptionMixWithOthers AND another app's audio session was already active
|
|
758
|
+
with non-mixable, non-aggregated input/output.
|
|
759
|
+
|
|
760
|
+
Added in iOS 10.0. Not applicable on watchos, tvos, macos.
|
|
761
|
+
*/
|
|
762
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionIOType) {
|
|
763
|
+
AVAudioSessionIOTypeNotSpecified = 0,
|
|
764
|
+
AVAudioSessionIOTypeAggregated = 1,
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
/*!
|
|
768
|
+
@enum AVAudioSessionRouteSharingPolicy
|
|
769
|
+
@brief Starting in iOS 11, tvOS 11, and watchOS 5, the route sharing policy allows a session
|
|
770
|
+
to specify that its output audio should be routed somewhere other than the default system output,
|
|
771
|
+
when appropriate alternative routes are available.
|
|
772
|
+
@var AVAudioSessionRouteSharingPolicyDefault
|
|
773
|
+
Follow normal rules for routing audio output.
|
|
774
|
+
@var AVAudioSessionRouteSharingPolicyLongFormAudio
|
|
775
|
+
Route output to the shared long-form audio output. A session whose primary use case is as a
|
|
776
|
+
music or podcast player may use this value to play to the same output as the built-in Music (iOS),
|
|
777
|
+
Podcasts, or iTunes (macOS) applications. Typically applications that use this policy will also
|
|
778
|
+
want sign up for remote control events as documented in “Event Handling Guide for UIKit Apps”
|
|
779
|
+
and will want to utilize MediaPlayer framework’s MPNowPlayingInfoCenter class. All applications
|
|
780
|
+
on the system that use the long-form audio route sharing policy will have their audio routed to the
|
|
781
|
+
same location.
|
|
782
|
+
Apps running on watchOS using this policy will also be able to play audio in the background,
|
|
783
|
+
as long as an eligible audio route can be activated. Apps running on watchOS using this policy
|
|
784
|
+
must use -activateWithOptions:completionHandler: instead of -setActive:withOptions:error: in
|
|
785
|
+
order to ensure that the user will be given the opportunity to pick an appropriate audio route
|
|
786
|
+
in cases where the system is unable to automatically pick the route.
|
|
787
|
+
@var AVAudioSessionRouteSharingPolicyLongForm
|
|
788
|
+
Deprecated. Replaced by AVAudioSessionRouteSharingPolicyLongFormAudio.
|
|
789
|
+
@var AVAudioSessionRouteSharingPolicyIndependent
|
|
790
|
+
Applications should not attempt to set this value directly. On iOS, this value will be set by
|
|
791
|
+
the system in cases where route picker UI is used to direct video to a wireless route.
|
|
792
|
+
@var AVAudioSessionRouteSharingPolicyLongFormVideo
|
|
793
|
+
Route output to the shared long-form video output. A session whose primary use case is as a
|
|
794
|
+
movie or other long-form video content player may use this value to play to the same output as
|
|
795
|
+
other long-form video content applications such as the built-in TV (iOS) application. Applications
|
|
796
|
+
that use this policy will also want to also set the AVInitialRouteSharingPolicy key
|
|
797
|
+
in their Info.plist to "LongFormVideo". All applications on the system that use the long-form video
|
|
798
|
+
route sharing policy will have their audio and video routed to the same location (e.g. AppleTV when
|
|
799
|
+
an AirPlay route is selected). Video content not using this route sharing policy will remain local
|
|
800
|
+
to the playback device even when long form video content is being routed to AirPlay.
|
|
801
|
+
*/
|
|
802
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionRouteSharingPolicy) {
|
|
803
|
+
AVAudioSessionRouteSharingPolicyDefault = 0,
|
|
804
|
+
AVAudioSessionRouteSharingPolicyLongFormAudio = 1,
|
|
805
|
+
AVAudioSessionRouteSharingPolicyLongForm API_DEPRECATED_WITH_REPLACEMENT("AVAudioSessionRouteSharingPolicyLongFormAudio", ios(11.0, 13.0), watchos(4.0, 6.0), tvos(11.0, 13.0)) API_UNAVAILABLE(macos) = AVAudioSessionRouteSharingPolicyLongFormAudio,
|
|
806
|
+
AVAudioSessionRouteSharingPolicyIndependent = 2,
|
|
807
|
+
AVAudioSessionRouteSharingPolicyLongFormVideo API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos, tvos, macos) = 3,
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
/*!
|
|
811
|
+
@enum AVAudioSessionPromptStyle
|
|
812
|
+
@brief
|
|
813
|
+
The prompt style is a hint to sessions that use AVAudioSessionModeVoicePrompt to modify the type of
|
|
814
|
+
prompt they play in response to other audio activity on the system, such as Siri or phone calls.
|
|
815
|
+
Sessions that issue voice prompts are encouraged to pay attention to changes in the prompt style and
|
|
816
|
+
modify their prompts in response. Apple encourages the use of non-verbal prompts when the Short
|
|
817
|
+
style is requested.
|
|
818
|
+
@var AVAudioSessionPromptStyleNone
|
|
819
|
+
Indicates that another session is actively using microphone input and would be negatively impacted
|
|
820
|
+
by having prompts play at that time. For example if Siri is recognizing speech, having navigation or
|
|
821
|
+
exercise prompts play, could interfere with its ability to accurately recognize the user’s speech.
|
|
822
|
+
Client sessions should refrain from playing any prompts while the prompt style is None.
|
|
823
|
+
@var AVAudioSessionPromptStyleShort
|
|
824
|
+
Indicates one of three states: Siri is active but not recording, voicemail playback is active, or
|
|
825
|
+
voice call is active. Short, non-verbal versions of prompts should be used.
|
|
826
|
+
@var AVAudioSessionPromptStyleNormal
|
|
827
|
+
Indicates that normal (long, verbal) versions of prompts may be used.
|
|
828
|
+
*/
|
|
829
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionPromptStyle)
|
|
830
|
+
{
|
|
831
|
+
AVAudioSessionPromptStyleNone = 'none',
|
|
832
|
+
AVAudioSessionPromptStyleShort = 'shrt',
|
|
833
|
+
AVAudioSessionPromptStyleNormal = 'nrml',
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/*!
|
|
837
|
+
@enum AVAudioStereoOrientation
|
|
838
|
+
@brief
|
|
839
|
+
Constants indicating stereo input audio orientation, for use with built-in mic input data sources with a stereo polar pattern selected.
|
|
840
|
+
|
|
841
|
+
@var AVAudioStereoOrientationNone
|
|
842
|
+
Indicates that audio capture orientation is not applicable (on mono capture, for instance).
|
|
843
|
+
@var AVAudioStereoOrientationPortrait
|
|
844
|
+
Indicates that audio capture should be oriented vertically, Lightning connector on the bottom.
|
|
845
|
+
@var AVAudioStereoOrientationPortraitUpsideDown
|
|
846
|
+
Indicates that audio capture should be oriented vertically, Lightning connector on the top.
|
|
847
|
+
@var AVAudioStereoOrientationLandscapeRight
|
|
848
|
+
Indicates that audio capture should be oriented horizontally, Lightning connector on the right.
|
|
849
|
+
@var AVAudioStereoOrientationLandscapeLeft
|
|
850
|
+
Indicates that audio capture should be oriented horizontally, Lightning connector on the left.
|
|
851
|
+
*/
|
|
852
|
+
typedef NS_ENUM(NSInteger, AVAudioStereoOrientation) {
|
|
853
|
+
AVAudioStereoOrientationNone = 0,
|
|
854
|
+
AVAudioStereoOrientationPortrait = 1,
|
|
855
|
+
AVAudioStereoOrientationPortraitUpsideDown = 2,
|
|
856
|
+
AVAudioStereoOrientationLandscapeRight = 3,
|
|
857
|
+
AVAudioStereoOrientationLandscapeLeft = 4,
|
|
858
|
+
} NS_SWIFT_NAME(AVAudioSession.StereoOrientation);
|
|
859
|
+
|
|
860
|
+
/*!
|
|
861
|
+
@enum AVAudioSessionRecordPermission
|
|
862
|
+
@brief These are the values returned by recordPermission.
|
|
863
|
+
@var AVAudioSessionRecordPermissionUndetermined
|
|
864
|
+
The user has not yet been asked for permission.
|
|
865
|
+
@var AVAudioSessionRecordPermissionDenied
|
|
866
|
+
The user has been asked and has denied permission.
|
|
867
|
+
@var AVAudioSessionRecordPermissionGranted
|
|
868
|
+
The user has been asked and has granted permission.
|
|
869
|
+
|
|
870
|
+
Introduced: ios(8.0), watchos(4.0)
|
|
871
|
+
*/
|
|
872
|
+
typedef NS_ENUM(NSUInteger, AVAudioSessionRecordPermission) {
|
|
873
|
+
AVAudioSessionRecordPermissionUndetermined API_DEPRECATED_WITH_REPLACEMENT("AVAudioApplicationRecordPermissionUndetermined", ios(8.0, 17.0), watchos(4.0, 10.0)) API_UNAVAILABLE(macos, tvos) = 'undt',
|
|
874
|
+
AVAudioSessionRecordPermissionDenied API_DEPRECATED_WITH_REPLACEMENT("AVAudioApplicationRecordPermissionDenied", ios(8.0, 17.0), watchos(4.0, 10.0)) API_UNAVAILABLE(macos, tvos) = 'deny',
|
|
875
|
+
AVAudioSessionRecordPermissionGranted API_DEPRECATED_WITH_REPLACEMENT("AVAudioApplicationRecordPermissionGranted", ios(8.0, 17.0), watchos(4.0, 10.0)) API_UNAVAILABLE(macos, tvos) = 'grnt'
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
/*!
|
|
879
|
+
@enum AVAudioSessionRenderingMode
|
|
880
|
+
@var AVAudioSessionRenderingModeNotApplicable
|
|
881
|
+
@var AVAudioSessionRenderingModeMonoStereo
|
|
882
|
+
@var AVAudioSessionRenderingModeSurround
|
|
883
|
+
@var AVAudioSessionRenderingModeSpatialAudio
|
|
884
|
+
@var AVAudioSessionRenderingModeDolbyAudio
|
|
885
|
+
@var AVAudioSessionRenderingModeDolbyAtmos
|
|
886
|
+
*/
|
|
887
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionRenderingMode) {
|
|
888
|
+
/// Default Mode when no asset is loaded or playing
|
|
889
|
+
AVAudioSessionRenderingModeNotApplicable = 0,
|
|
890
|
+
|
|
891
|
+
/// Default mode for non multi-channel cases
|
|
892
|
+
AVAudioSessionRenderingModeMonoStereo = 1,
|
|
893
|
+
|
|
894
|
+
/// Default mode for multi-channel cases that do not fall into the modes below
|
|
895
|
+
AVAudioSessionRenderingModeSurround = 2,
|
|
896
|
+
|
|
897
|
+
/// Fallback mode if provided content is Dolby variant but hardware capabilities don't support it
|
|
898
|
+
AVAudioSessionRenderingModeSpatialAudio = 3,
|
|
899
|
+
|
|
900
|
+
/// Dolby Audio mode
|
|
901
|
+
AVAudioSessionRenderingModeDolbyAudio = 4,
|
|
902
|
+
|
|
903
|
+
/// Dolby Atmos mode
|
|
904
|
+
AVAudioSessionRenderingModeDolbyAtmos = 5,
|
|
905
|
+
} NS_SWIFT_NAME(AVAudioSession.RenderingMode);
|
|
906
|
+
|
|
907
|
+
/*!
|
|
908
|
+
@enum AVAudioSessionMicrophoneInjectionMode
|
|
909
|
+
@brief Various modes to inject audio coming from a session to another app’s input stream
|
|
910
|
+
|
|
911
|
+
Applications can state their intent to mix locally generated audio, which should consist primarily of
|
|
912
|
+
synthesized speech, to another app's input stream. This feature is intended to be used by accessibility apps
|
|
913
|
+
implementing augmentative and alternative communication systems that enable users with disabilities to
|
|
914
|
+
communicate with synthesized speech. When input is muted, microphone injection will also be muted.
|
|
915
|
+
|
|
916
|
+
@var AVAudioSessionMicrophoneInjectionModeNone
|
|
917
|
+
@var AVAudioSessionMicrophoneInjectionModeSpokenAudio
|
|
918
|
+
|
|
919
|
+
*/
|
|
920
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionMicrophoneInjectionMode) {
|
|
921
|
+
/// Default state, microphone injection is not preferred
|
|
922
|
+
AVAudioSessionMicrophoneInjectionModeNone = 0,
|
|
923
|
+
|
|
924
|
+
/// Inject Spoken Audio, like synthesized speech, with microphone audio
|
|
925
|
+
AVAudioSessionMicrophoneInjectionModeSpokenAudio = 1,
|
|
926
|
+
} NS_SWIFT_NAME(AVAudioSession.MicrophoneInjectionMode);
|
|
927
|
+
|
|
928
|
+
#if TARGET_OS_VISION
|
|
929
|
+
/*!
|
|
930
|
+
The perceived "size" or "immersivity" of the sound. Use Small for least
|
|
931
|
+
immersive and Large for most immersive.
|
|
932
|
+
*/
|
|
933
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionSoundStageSize) {
|
|
934
|
+
/// The audio session determines its own sound stage size based on
|
|
935
|
+
/// a handful of factors
|
|
936
|
+
AVAudioSessionSoundStageSizeAutomatic = 0,
|
|
937
|
+
|
|
938
|
+
/// A smaller, front-focused sound stage
|
|
939
|
+
AVAudioSessionSoundStageSizeSmall = 1,
|
|
940
|
+
|
|
941
|
+
/// A medium-immersive sound stage
|
|
942
|
+
AVAudioSessionSoundStageSizeMedium = 2,
|
|
943
|
+
|
|
944
|
+
/// A fully-immersive sound stage
|
|
945
|
+
AVAudioSessionSoundStageSizeLarge = 3,
|
|
946
|
+
} NS_SWIFT_NAME(AVAudioSession.SoundStageSize);
|
|
947
|
+
|
|
948
|
+
/*!
|
|
949
|
+
When the intended spatial experience is HeadTracked, the anchoring strategy
|
|
950
|
+
provides additional information about the reference point for spatialization.
|
|
951
|
+
*/
|
|
952
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionAnchoringStrategy) {
|
|
953
|
+
/// The audio session determines its own anchoring strategy based on
|
|
954
|
+
/// a handful of factors
|
|
955
|
+
AVAudioSessionAnchoringStrategyAutomatic = 0,
|
|
956
|
+
|
|
957
|
+
/// The session is anchored to the developer-provided scene
|
|
958
|
+
/// identifier (i.e. UIScene.session.persistentIdentifier)
|
|
959
|
+
AVAudioSessionAnchoringStrategyScene = 1,
|
|
960
|
+
|
|
961
|
+
/// The session is anchored to the user's concept of "front"
|
|
962
|
+
/// which the user can move with an intentional gesture.
|
|
963
|
+
AVAudioSessionAnchoringStrategyFront = 2
|
|
964
|
+
} NS_REFINED_FOR_SWIFT;
|
|
965
|
+
|
|
966
|
+
typedef NS_ENUM(NSInteger, AVAudioSessionSpatialExperience) {
|
|
967
|
+
/// A fully head-tracked spatial experience parameterized by
|
|
968
|
+
/// a sound stage size and anchoring strategy
|
|
969
|
+
AVAudioSessionSpatialExperienceHeadTracked = 0,
|
|
970
|
+
|
|
971
|
+
/// An unanchored, non-head-tracked spatial experience parameterized
|
|
972
|
+
/// by a sound stage size
|
|
973
|
+
AVAudioSessionSpatialExperienceFixed = 1,
|
|
974
|
+
|
|
975
|
+
/// An experience that bypasses any system-provided spatialization and
|
|
976
|
+
/// instead mixes the application's sound straight to the output
|
|
977
|
+
AVAudioSessionSpatialExperienceBypassed = 2,
|
|
978
|
+
} NS_REFINED_FOR_SWIFT;
|
|
979
|
+
|
|
980
|
+
typedef NSString * const AVAudioSessionSpatialExperienceOption NS_TYPED_ENUM NS_REFINED_FOR_SWIFT;
|
|
981
|
+
|
|
982
|
+
/// Associated value is NSNumber with AVAudioSessionSoundStageSize. Only used if
|
|
983
|
+
/// SpatialExperience is HeadTracked or Fixed. If not provided for
|
|
984
|
+
/// those SpatialExperiences, the default will be
|
|
985
|
+
/// AVAudioSessionSoundStageSizeAutomatic.
|
|
986
|
+
OS_EXPORT AVAudioSessionSpatialExperienceOption AVAudioSessionSpatialExperienceOptionSoundStageSize API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, watchos, tvos, macos);
|
|
987
|
+
|
|
988
|
+
/// Associated value is NSNumber with AVAudioSessionAnchoringStrategy. Only used if
|
|
989
|
+
/// SpatialExperience is HeadTracked. If not provided for a head-tracked
|
|
990
|
+
/// spatial experience, the default will be
|
|
991
|
+
/// AVAudioSessionAnchoringStrategyAutomatic.
|
|
992
|
+
OS_EXPORT AVAudioSessionSpatialExperienceOption AVAudioSessionSpatialExperienceOptionAnchoringStrategy API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, watchos, tvos, macos);
|
|
993
|
+
|
|
994
|
+
/// Associated value is NSString from UIScene.session.persistentIdentifier. Only
|
|
995
|
+
/// used if SpatialExperience is HeadTracked and AnchoringStrategy is
|
|
996
|
+
/// Scene. If not provided for a scene-anchored spatial experience, the
|
|
997
|
+
/// session will fail to set the intended spatial experience and
|
|
998
|
+
/// return an error.
|
|
999
|
+
OS_EXPORT AVAudioSessionSpatialExperienceOption AVAudioSessionSpatialExperienceOptionSceneIdentifier API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, watchos, tvos, macos);
|
|
1000
|
+
|
|
1001
|
+
#endif // TARGET_OS_VISION
|
|
1002
|
+
|
|
1003
|
+
#endif // AudioSession_AVAudioSessionTypes_h
|
|
1004
|
+
#else
|
|
1005
|
+
#include <AudioSession/AVAudioSessionTypes.h>
|
|
1006
|
+
#endif
|