peachsim 0.1.1801 → 0.1.1808
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/cli/bin.ts +1 -1
- package/cli/cloud-test-tunnel.ts +36 -10
- package/cli/commands/coverage-swift.ts +1 -1
- package/cli/commands/cpu-profile.ts +2 -2
- package/cli/commands/daemon.ts +8 -7
- package/cli/commands/inspect/env.ts +4 -2
- package/cli/commands/inspect/wait-ready.ts +3 -1
- package/cli/commands/inspect.ts +14 -66
- package/cli/commands/package.ts +24 -3
- package/cli/commands/shell-url.ts +8 -1
- package/cli/drivers/playwright-provisioning.ts +1 -1
- package/cli/drivers/playwright.ts +1 -1
- package/cli/internal-child-contract.ts +13 -0
- package/cli/internal-child.ts +23 -10
- package/cli/maestro-js.ts +1 -1
- package/cli/native-input.ts +9 -0
- package/cli/outbound-endpoints.ts +11 -0
- package/detox/index.ts +6 -9
- 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 +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +7119 -5408
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- 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 +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +7 -9
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +5112 -3979
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +7167 -5513
- package/dist-lib/host/fetch-proxy-handler.cjs +82 -34
- 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 +3 -1
- package/dist-lib/index.cjs +695 -470
- 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 +1 -1
- package/dist-lib/menu.mjs +1 -1
- 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 +702 -477
- package/dist-lib/native-app-identity-project.cjs +454 -276
- package/dist-lib/native-app-identity-project.mjs +503 -320
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +106 -0
- package/dist-lib/pdfium-raster.mjs +81 -0
- 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 +37 -24
- package/dist-lib/public-origins-lib.json +146 -80
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +7869 -6149
- package/dist-lib/swift-compile.cjs +922 -610
- package/dist-lib/swift-compile.mjs +884 -572
- package/dist-lib/swift-package.cjs +32 -15
- package/dist-lib/swift-package.mjs +32 -15
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +52 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +3230 -2160
- package/dist-lib/vite.cjs +88 -40
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +51 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +10 -2
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioApplication.h +143 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h +268 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioChannelLayout.h +85 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioConnectionPoint.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioConverter.h +355 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioEngine.h +1064 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioEnvironmentNode.h +311 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioFile.h +192 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioFormat.h +241 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioIONode.h +304 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioMixerNode.h +43 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioMixing.h +339 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioNode.h +244 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayer.h +155 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayerNode.h +434 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioRecorder.h +243 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioRoutingArbiter.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSequencer.h +640 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSettings.h +111 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSinkNode.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSourceNode.h +122 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioTime.h +145 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioTypes.h +173 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnit.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitComponent.h +269 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitDelay.h +62 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitDistortion.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitEQ.h +166 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitEffect.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitGenerator.h +43 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitMIDIInstrument.h +147 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitReverb.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h +112 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitTimeEffect.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitTimePitch.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitVarispeed.h +41 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +58 -3
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVMIDIPlayer.h +94 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVMusicEvents.h +612 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h +340 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesisProvider.h +172 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +1003 -9
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetCache.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadStorageManager.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h +403 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h +484 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetImageGenerator.h +244 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetPlaybackAssistant.h +74 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetReader.h +232 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetReaderOutput.h +857 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetResourceLoader.h +497 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetSegmentReport.h +146 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h +408 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrackGroup.h +57 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrackSegment.h +47 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetVariant.h +262 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriter.h +531 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriterInput.h +868 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWritingPlanner.h +434 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +69 -9
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioBuffer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioChannelLayout.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioConnectionPoint.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioConverter.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioEngine.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioEnvironmentNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioFile.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioFormat.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioIONode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMix.h +175 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMixerNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMixing.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioPlayer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioPlayerNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioProcessingSettings.h +76 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioRecorder.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSequencer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionDeprecated.h +12 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionRoute.h +12 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionTypes.h +12 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSettings.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnit.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitComponent.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitDelay.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitDistortion.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitEQ.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitEffect.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitGenerator.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitMIDIInstrument.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitReverb.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitSampler.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitTimeEffect.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitTimePitch.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitVarispeed.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCameraCalibrationData.h +184 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaption.h +917 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionConversionValidator.h +235 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionFormatConformer.h +80 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionGroup.h +103 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionGrouper.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionRenderer.h +127 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionSettings.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAncillaryDataEncoder.h +116 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h +157 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioPreviewOutput.h +63 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureBroadcastVideoOutput.h +183 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureControl.h +49 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDataOutputSynchronizer.h +359 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDepthDataOutput.h +164 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDeskViewApplication.h +98 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +4119 -13
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureExternalDisplayConfigurator.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h +743 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureIndexPicker.h +156 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h +641 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h +155 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutput.h +23 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h +163 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h +2470 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureReactions.h +131 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSlider.h +169 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSpatialAudioMetadataSampleGenerator.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h +356 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemExposureBiasSlider.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemPressure.h +111 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemZoomSlider.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureTimecodeGenerator.h +226 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h +337 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h +288 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVComposition.h +440 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCompositionTrack.h +329 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCompositionTrackSegment.h +112 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVContentKeySession.h +713 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVContinuityDevice.h +73 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h +239 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVDisplayCriteria.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h +138 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVExternalStorageDevice.h +252 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVExternalSyncDevice.h +127 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFAudio.h +59 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCapture.h +48 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCore.h +97 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes +2785 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +26 -18
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVGeometry.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMIDIPlayer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaSelection.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaSelectionGroup.h +287 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +398 -8
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataIdentifiers.h +392 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +365 -9
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h +699 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetrics.h +521 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMovie.h +744 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMovieTrack.h +526 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVOutputSettingsAssistant.h +179 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinationMedium.h +38 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinator.h +518 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayer.h +960 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h +550 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +1147 -3
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemIntegratedTimeline.h +309 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemMediaDataCollector.h +127 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemOutput.h +669 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemSampleBufferOutput.h +124 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemTrack.h +101 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerLayer.h +117 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerLooper.h +220 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerMediaSelectionCriteria.h +86 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerOutput.h +229 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPortraitEffectsMatte.h +126 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVProVideoStorage.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVQueuedSampleBufferRendering.h +124 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVRenderedCaptionImage.h +62 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVRouteDetector.h +69 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h +248 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +242 -3
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferGenerator.h +230 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferRenderSynchronizer.h +199 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferVideoRenderer.h +276 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleCursor.h +327 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSemanticSegmentationMatte.h +164 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSpatialVideoConfiguration.h +57 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSpeechSynthesis.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSynchronizedLayer.h +89 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTextStyleRule.h +112 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTime.h +58 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +179 -2
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVUtilities.h +17 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h +392 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoComposition.h +924 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoPerformanceMetrics.h +108 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h +332 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +3 -2
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingActionItem.h +59 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h +261 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingEvent.h +62 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRouting.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRoutingDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRoutingPlaybackArbiter.h +63 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h +481 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h +1999 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h +726 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUHeadTrackingBinauralRenderer.h +73 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h +386 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioCodec.h +1454 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioComponent.h +743 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioConverter.h +1099 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFile.h +1563 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFileStream.h +499 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFormat.h +537 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioOutputUnit.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioQueue.h +1888 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioServices.h +441 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h +863 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h +153 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h +38 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitParameters.h +1091 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h +4194 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitUtilities.h +611 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioWorkInterval.h +102 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CAFFile.h +368 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CAShow.h +40 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CASpatialAudioExperience.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h +610 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicDevice.h +491 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicPlayer.h +1732 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +6 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFProxySupport.h +604 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPActionSheetTemplate.h +40 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPAlertAction.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPAlertTemplate.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPBarButton.h +91 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPBarButtonProviding.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPButton.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPChargingStationConnection.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPContact.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPContactTemplate.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPDashboardButton.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPDashboardController.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPGridButton.h +95 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPGridTemplate.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPImageOverlay.h +80 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPImageSet.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationRatingItem.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationTemplate.h +80 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInstrumentClusterController.h +76 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInterfaceController.h +288 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLane.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLaneGuidance.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h +229 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemElement.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemGridElement.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemRowElement.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListItem.h +273 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListItemTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListSection.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListTemplate.h +289 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListTemplateDetailsHeader.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLocation.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPManeuver.h +254 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapButton.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanel.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelButtonConfiguration.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelItem.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelSection.h +47 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapTemplate.h +518 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapTemplateWaypoint.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMessageComposeBarButton.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMessageListItem.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMultiStopCardConfiguration.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationAlert.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationEnum.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationSession.h +173 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationWaypoint.h +105 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingButton.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingMode.h +333 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingTemplate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanel.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanelButtonConfiguration.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanelItem.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPlaybackConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPointOfInterest.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPointOfInterestTemplate.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRerouteReason.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteDetail.h +371 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteInformation.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteSegment.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteSource.h +43 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSearchTemplate.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSessionConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSportsOverlay.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTabBarTemplate.h +90 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplate.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationDashboardScene.h +60 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTextButton.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPThumbnailImage.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTravelEstimates.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTrip.h +172 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTripPreviewTextConfiguration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPVoiceControlTemplate.h +173 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPWindow.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CarPlay.apinotes +68 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CarPlay.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h +1459 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/AudioServerPlugIn.h +1195 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudioTypes.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h +167 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h +294 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBitVector.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h +193 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileDescriptor.h +54 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h +294 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMessagePort.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumberFormatter.h +188 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugIn.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugInCOM.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPreferences.h +140 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringEncodingExt.h +184 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringTokenizer.h +263 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTree.h +330 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLAccess.h +128 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLEnumerator.h +108 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUUID.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h +201 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLParser.h +278 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +110 -57
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIBarcodeDescriptor.h +436 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIColor.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h +949 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIDetector.h +219 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFeature.h +355 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h +567 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterBuiltins.h +2734 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterConstructor.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterGenerator.h +160 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterShape.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h +860 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageAccumulator.h +72 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageProcessor.h +589 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageProvider.h +187 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h +342 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIKernelMetalLib.h +311 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIPlugIn.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIPlugInInterface.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRAWFilter.h +223 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRAWFilter_Deprecated.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h +348 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CISampler.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIVector.h +265 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes +1231 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +34 -46
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICIDevice.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICIDeviceManager.h +143 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICapabilityInquiry.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIDriver.h +566 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIMessages.h +784 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDINetworkSession.h +137 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIServices.h +2759 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDISetup.h +478 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIThruConnection.h +378 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPCI.h +243 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPCIProfile.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPEndpoint.h +200 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPEndpointManager.h +146 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPFunctionBlock.h +152 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPMutableEndpoint.h +167 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPMutableFunctionBlock.h +179 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAttachment.h +118 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAudioClock.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAudioDeviceClock.h +105 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBlockBuffer.h +580 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBufferQueue.h +946 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +2090 -5
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescriptionBridge.h +734 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMGenlockClock.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMMemoryPool.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMMetadata.h +668 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSampleBuffer.h +1967 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSimpleQueue.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTag.h +631 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTagCollection.h +560 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTaggedBufferGroup.h +294 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTextMarkup.h +431 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +627 -34
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +442 -6
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes +1267 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +33 -6
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +5 -3
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAbsoluteAltitude.h +48 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAccelerometer.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltitude.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAmbientPressure.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAttitude.h +138 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAuthorization.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAvailability.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMBatchedSensorManager.h +147 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMBody.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMDeviceMotion.h +160 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMError.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMErrorDomain.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMFallDetectionEvent.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMFallDetectionManager.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMGyro.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h +131 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManagerDelegate.h +47 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHighFrequencyHeartRateData.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMLogItem.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMagnetometer.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionActivity.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionActivityManager.h +112 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionManager.h +424 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMovementDisorderManager.h +183 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMOdometer.h +146 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMPedometer.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedAccelerometerData.h +43 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedDeviceMotion.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedPressureData.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRotationRateData.h +58 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMSensorRecorder.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMStepCounter.h +103 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMWaterSubmersionData.h +71 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMWaterSubmersionManager.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CoreMotion.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h +371 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h +186 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVHostTime.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h +394 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBuffer.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBufferCache.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTexture.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h +136 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTexture.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTextureCache.h +146 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h +661 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h +81 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferPool.h +167 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h +175 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVReturn.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Modules/module.modulemap +12 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/CryptoTokenKit.apinotes +79 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/CryptoTokenKit.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKBase.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKError.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCard.h +423 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardATR.h +81 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardSlotNFCSession.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardToken.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardTokenRegistrationManager.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTLVRecord.h +100 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKToken.h +323 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenConfiguration.h +74 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenKeychainItem.h +152 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenWatcher.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/CryptoTokenKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +32 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/CryptoTokenKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +32 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +194 -5105
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/FoundationErrors.h +234 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1466 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h +867 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h +76 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h +800 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h +160 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteOrder.h +584 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h +97 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h +321 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h +476 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSComparisonPredicate.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +63 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCorelibsRuntime.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSData.h +727 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDate.h +217 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h +247 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateFormatter.h +507 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateInterval.h +124 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h +118 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimal.h +110 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h +329 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +764 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h +65 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h +48 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSError.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSException.h +610 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +249 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionContext.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionRequestHandling.h +25 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileCoordinator.h +330 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h +455 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h +1407 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFilePresenter.h +165 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileVersion.h +169 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileWrapper.h +371 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h +101 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookie.h +241 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookieStorage.h +159 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHashTable.h +242 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +137 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexPath.h +106 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h +291 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSInflectionRule.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSInvocation.h +134 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSItemProvider.h +402 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSItemProviderReadingWriting.h +8 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSJSONSerialization.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h +249 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h +272 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueSharedObservers.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h +418 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h +73 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLinguisticTagger.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSListFormatter.h +64 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h +331 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLocalizedNumberFormatRule.h +25 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMapTable.h +275 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h +69 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurement.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h +281 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadataAttributes.h +256 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h +215 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNetServices.h +488 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h +189 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNull.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNumberFormatter.h +490 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +867 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h +212 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOperation.h +634 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h +96 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionDifference.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h +822 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h +83 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h +278 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponents.h +149 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponentsFormatter.h +248 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPointerArray.h +137 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPointerFunctions.h +191 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPort.h +222 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h +541 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h +559 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPropertyList.h +88 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProxy.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h +83 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +641 -15
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h +101 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h +202 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h +244 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h +481 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h +160 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSStream.h +437 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSString.h +1362 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTermOfAddress.h +64 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTextCheckingResult.h +179 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h +208 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h +221 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTimer.h +178 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h +1582 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLAuthenticationChallenge.h +117 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCache.h +211 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h +147 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredentialStorage.h +124 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h +226 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtectionSpace.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +297 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLRequest.h +464 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLResponse.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h +2203 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +116 -8
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUndoManager.h +302 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h +1491 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h +199 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h +474 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h +321 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h +81 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSXMLParser.h +510 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h +304 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h +125 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPointClampingRange.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityTest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.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/HKContactsLensSpecification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +7 -7
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedicationQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h +1 -1
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LABase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LABiometryType.h +26 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LACompanionType.h +22 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h +406 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LADomainState.h +93 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironment.h +49 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanism.h +33 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismBiometry.h +48 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismCompanion.h +27 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismUserPassword.h +20 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentState.h +49 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h +83 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPersistedRight.h +30 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h +61 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h +65 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h +52 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARequirement.h +58 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h +75 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h +57 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h +24 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h +24 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddress.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddressFilter.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddressRepresentations.h +52 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAnnotation.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAnnotationView.h +168 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircle.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircleRenderer.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircleView.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKClusterAnnotation.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCompassButton.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirections.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsResponse.h +79 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsTypes.h +16 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDistanceFormatter.h +42 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKFoundation.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeoJSONSerialization.h +65 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeocodingRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeodesicPolyline.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeometry.h +186 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGradientPolylineRenderer.h +28 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKHybridMapConfiguration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKIconStyle.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKImageryMapConfiguration.h +21 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalPointsOfInterestRequest.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearch.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchCompleter.h +85 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchResponse.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundScene.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSceneRequest.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshot.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshotOptions.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshotter.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundViewController.h +69 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCamera.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCameraBoundary.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCameraZoomRange.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapConfiguration.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapFeatureAnnotation.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItem.h +95 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemAnnotation.h +33 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemDetailViewController.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemIdentifier.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshot.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshotOptions.h +57 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshotter.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapView.h +351 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMarkerAnnotationView.h +45 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPoint.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolygon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolygonRenderer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolyline.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolylineRenderer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlay.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayPathRenderer.h +63 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayPathView.h +50 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayRenderer.h +61 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayView.h +60 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPinAnnotationView.h +60 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPitchControl.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPlacemark.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointOfInterestCategory.h +95 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointOfInterestFilter.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygon.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygonRenderer.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygonView.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolyline.h +22 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolylineRenderer.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolylineView.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKReverseGeocoder.h +50 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKReverseGeocodingRequest.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKScaleView.h +39 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKSelectionAccessory.h +95 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKShape.h +21 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKStandardMapConfiguration.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTileOverlay.h +51 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTileOverlayRenderer.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTypes.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserLocation.h +41 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserLocationView.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserTrackingBarButtonItem.h +28 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserTrackingButton.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKZoomControl.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes +359 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MapKit.h +116 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/NSUserActivity+MKMapItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTAudioProcessingTap.h +416 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTFormatNames.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTProfessionalVideoWorkflow.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes +9 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKDefines.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKModel.h +299 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKTextureLoader.h +369 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h +269 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.apinotes +181 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.h +10 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTCoreTypes.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Modules/module.modulemap +14 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAnimatedValueTypes.h +224 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAnimation.h +63 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h +335 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAssetResolver.h +75 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLCamera.h +441 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLLight.h +171 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h +414 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMesh.h +700 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h +283 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h +167 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLSubmesh.h +217 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTexture.h +396 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTransform.h +129 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTransformStack.h +134 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h +100 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLUtility.h +20 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLValueTypes.h +32 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLVertexDescriptor.h +342 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLVoxelArray.h +277 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.apinotes +57 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.h +26 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIOExports.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h +93 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLDrawable.h +72 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLIOSurface.h +28 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/gl.h +812 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/glext.h +365 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h +629 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/glext.h +479 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES3/gl.h +1040 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES3/glext.h +310 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLESAvailability.h +13 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/gltypes.h +39 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Modules/module.modulemap +23 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAction.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionGoTo.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionNamed.h +51 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionRemoteGoTo.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionResetForm.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionURL.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotation.h +307 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h +289 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAppearanceCharacteristics.h +74 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFBorder.h +66 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFDestination.h +54 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h +347 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes +32 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h +142 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFOutline.h +87 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h +220 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFSelection.h +107 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h +75 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h +461 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEDRMetadata.h +117 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h +180 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +22 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -22
- package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +93 -0
- package/sdk/ios/System/Library/Frameworks/React.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Symbols.framework/Headers/NSSymbolEffect.h +566 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/CaptiveNetwork.h +189 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/DHCPClientPreferences.h +83 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopyDHCPInfo.h +119 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Modules/module.modulemap +21 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/DocumentManager.h +11 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAdaptiveImageGlyph.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +231 -19
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDiffableDataSourceSectionSnapshot.h +158 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h +21 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSIndexPath+UIKitAdditions.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutAnchor.h +132 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h +227 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +367 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +458 -86
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +39 -24
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h +337 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +208 -11
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h +390 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutFragment.h +185 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h +396 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLineFragment.h +100 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +140 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextListElement.h +94 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextRange.h +141 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelection.h +118 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelectionNavigation.h +312 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +191 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextTable.h +96 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportLayoutController.h +192 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportRenderingSurface.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTouchBar+UIKitAdditions.h +61 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSUserActivity+NSItemProvider.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/PrintKitUI.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/ShareSheet.h +15 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h +644 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +228 -22
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContainer.h +110 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContentSizeCategoryImageAdjusting.h +54 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomAction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +101 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityIdentification.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityLocationDescriptor.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityZoom.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivity.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityCollaborationModeRestriction.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemProvider.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfiguration.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfigurationReading+ShareSheet.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfigurationReading.h +67 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlert.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h +88 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +55 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +653 -34
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplicationShortcutItem.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIArrangementViewController.h +124 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAttachmentBehavior.h +112 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +129 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundExtensionView.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBandSelectionInteraction.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +24 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItem.h +285 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemAppearance.h +71 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemGroup.h +72 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarCommon.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarItem.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +61 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBehavioralStyle.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h +94 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBlurEffect.h +71 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButton.h +188 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +173 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelection.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionMultiDate.h +79 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionSingleDate.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionWeekOfYear.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarView.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarViewDecoration.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICanvasFeedbackGenerator.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICellAccessory.h +241 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICellConfigurationState.h +50 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionLayoutList.h +143 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +770 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCell.h +120 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCompositionalLayout.h +614 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewController.h +50 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewItemRegistration.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +192 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewListCell.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewTransitionLayout.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewUpdateItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +161 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorPickerViewController.h +71 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorWell.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConfigurationColorTransformer.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConfigurationState.h +40 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentConfiguration.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategory.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategoryAdjusting.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableButtonProperties.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableConfiguration.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableConfigurationState.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableImageProperties.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableTextProperties.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableView.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +181 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuSystem.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextualAction.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIControl.h +177 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationContext.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationEntry.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICornerConfiguration.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICornerRadius.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +15 -19
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataSourceTranslating.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +55 -13
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +88 -16
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDiffableDataSource.h +252 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocument.h +204 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserAction.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h +199 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentInteractionController.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentMenuViewController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerExtensionViewController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentProperties.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewController.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewControllerLaunchOptions.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragInteraction.h +247 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragItem.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragPreview.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragPreviewParameters.h +22 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragSession.h +118 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDropInteraction.h +166 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h +70 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicBehavior.h +75 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h +149 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +4 -24
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttribution.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttributionView.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFeedbackGenerator.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFieldBehavior.h +169 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindInteraction.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindSession.h +134 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocus.h +198 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusAnimationCoordinator.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDebugger.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDefines.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusEffect.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusGuide.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusMovementHint.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem+UIKitAdditions.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusUpdateContext+UIKitAdditions.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +11 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +14 -7
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h +40 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewController.h +50 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewControllerConfiguration.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFoundation.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +10 -40
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +3 -14
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGlassEffect.h +58 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsPDFRenderer.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRenderer.h +72 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRendererSubclass.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccess.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccessRestrictions.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffect.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffectLayer.h +74 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverStyle.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h +374 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageAsset.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h +58 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h +121 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageReader.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageView.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIIndirectScribbleInteraction.h +117 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputSuggestion.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputView.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +219 -23
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKey.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyCommand.h +121 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyConstants.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyboardLayoutGuide.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4 -172
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +19 -926
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h +435 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +13 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h +116 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILargeContentViewer.h +121 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILetterformAwareAdjusting.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILexicon.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentConfiguration.h +154 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentImageProperties.h +87 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentTextProperties.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListSeparatorConfiguration.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILongPressGestureRecognizer.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILookToScrollInteraction.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationContext.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationEntry.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMainMenuSystem.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +5 -24
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuBuilder.h +173 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuController.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +6 -34
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuSystem.h +58 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationContext.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationEntry.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMotionEffect.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBar.h +166 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBarAppearance.h +61 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h +165 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationItem.h +268 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINib.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibDeclarations.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibLoading.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOpenURLContext.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +51 -14
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOverlayArrangement.h +60 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControl.h +112 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControlProgress.h +118 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +123 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPanGestureRecognizer.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfiguration.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h +193 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPencilInteraction.h +170 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPhotoSearchSuggestion.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPinchGestureRecognizer.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerAccessory.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerInteraction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerLockState.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerRegion.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +153 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverBackgroundView.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationController.h +92 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationControllerSourceItem.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverSupport.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPresentationController.h +132 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPress.h +70 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPressesEvent.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewInteraction.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewParameters.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintError.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintFormatter.h +93 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInfo.h +54 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +97 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPageRenderer.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPaper.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintServiceExtension.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinter.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinterPickerController.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIProgressView.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIReferenceLibraryViewController.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRefreshControl.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRegion.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder+UIActivityItemsConfiguration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +228 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRotationGestureRecognizer.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScene+AVAudioSession.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScene.h +122 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessory.h +83 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessoryRegistration.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneActivationConditions.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneClosureConfirmation.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneDefinitions.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneDestructionCondition.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneEnhancedStateRestoration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneOptions.h +116 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSession.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSessionActivationRequest.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSizeRestrictions.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingBehaviors.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingControlStyle.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h +109 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenEdgePanGestureRecognizer.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenMode.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenshotService.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScribbleInteraction.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollEdgeElementContainerInteraction.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +348 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchBar.h +212 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchContainerViewController.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchDisplayController.h +75 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchSuggestion.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTextField.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISegmentedControl.h +134 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISelectionFeedbackGenerator.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIShadowProperties.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIShape.h +176 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISheetPresentationController.h +173 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISliderTrackConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISmartReplySuggestion.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitArrangement.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +314 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteraction.h +144 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteractionSupporting.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h +236 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStandardTextCursorView.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStateRestoration.h +95 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStatusBarManager.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStepper.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboard.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardPopoverSegue.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardSegue.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +98 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeActionsConfiguration.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwitch.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolContentTransition.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolEffectCompletion.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +148 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +158 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +31 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h +232 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarControllerSidebar.h +250 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarItem.h +75 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabGroup.h +116 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabSidebarItem.h +79 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h +802 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewCell.h +200 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewController.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewHeaderFooterView.h +87 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITapGestureRecognizer.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITargetedDragPreview.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITargetedPreview.h +98 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextChecker.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorDropPositionAnimator.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorView.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragPreviewRenderer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragURLPreviews.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h +129 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropProposal.h +102 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropping.h +143 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h +227 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingCoordinator.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewController.h +89 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerChangeValue.h +95 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerComponent.h +92 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerConfiguration.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerFormattingDescriptor.h +94 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerFormattingStyle.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h +379 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputContext.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +290 -29
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInteraction.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItem.h +98 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItemInteraction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextLoupeSession.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteConfigurationSupporting.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteDelegate.h +147 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h +161 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionDisplayInteraction.h +81 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHandleView.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHighlightView.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h +369 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingCurveProvider.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingParameters.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolTipInteraction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbar.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbarAppearance.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +11 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrackingLayoutGuide.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrait.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +306 -18
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitListEnvironment.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateActionPhase.h +102 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateInfo.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateLink.h +95 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserActivity.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h +128 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVerticalBarEdge.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVideoEditorController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +696 -17
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +84 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewConfigurationState.h +40 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +880 -16
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransition.h +83 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h +138 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitioning.h +253 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewLayoutRegion.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewPropertyAnimator.h +109 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewReservedRegion.h +81 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h +106 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +156 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h +153 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationAction.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationConfiguration.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationInteraction.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationRequestOptions.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneDragInteraction.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScenePlacement.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneProminentPlacement.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScenePushPlacement.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneReplacePlacement.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneStandardPlacement.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinator.h +1140 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinatorAnimationParameters.h +67 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinatorContext.h +143 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIZoomTransitionOptions.h +72 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UNNotificationResponse+UIKitAdditions.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Headers/UIKitAnimationOptions.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Headers/UIViewAnimationOptions.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitGeometry.framework/Headers/UIEdgeInsets.h +21 -0
- package/sdk/ios/System/Library/Frameworks/UIKitGeometry.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +2209 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIWindowLevel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UICoordinateSpace.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UIDefines.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UIGeometry.h +22 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/NSItemProvider+UTType.h +128 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +2 -0
- package/sdk/ios/usr/include/MacTypes.h +815 -10
- package/sdk/ios/usr/include/libxml2/libxml/DOCBparser.h +96 -0
- package/sdk/ios/usr/include/libxml2/libxml/HTMLparser.h +306 -0
- package/sdk/ios/usr/include/libxml2/libxml/HTMLtree.h +147 -0
- package/sdk/ios/usr/include/libxml2/libxml/SAX.h +173 -0
- package/sdk/ios/usr/include/libxml2/libxml/SAX2.h +178 -0
- package/sdk/ios/usr/include/libxml2/libxml/c14n.h +128 -0
- package/sdk/ios/usr/include/libxml2/libxml/catalog.h +182 -0
- package/sdk/ios/usr/include/libxml2/libxml/chvalid.h +230 -0
- package/sdk/ios/usr/include/libxml2/libxml/debugXML.h +217 -0
- package/sdk/ios/usr/include/libxml2/libxml/dict.h +79 -0
- package/sdk/ios/usr/include/libxml2/libxml/encoding.h +245 -0
- package/sdk/ios/usr/include/libxml2/libxml/entities.h +151 -0
- package/sdk/ios/usr/include/libxml2/libxml/globals.h +508 -0
- package/sdk/ios/usr/include/libxml2/libxml/hash.h +236 -0
- package/sdk/ios/usr/include/libxml2/libxml/list.h +137 -0
- package/sdk/ios/usr/include/libxml2/libxml/nanoftp.h +163 -0
- package/sdk/ios/usr/include/libxml2/libxml/nanohttp.h +81 -0
- package/sdk/ios/usr/include/libxml2/libxml/parser.h +1243 -0
- package/sdk/ios/usr/include/libxml2/libxml/parserInternals.h +644 -0
- package/sdk/ios/usr/include/libxml2/libxml/pattern.h +100 -0
- package/sdk/ios/usr/include/libxml2/libxml/relaxng.h +217 -0
- package/sdk/ios/usr/include/libxml2/libxml/schemasInternals.h +958 -0
- package/sdk/ios/usr/include/libxml2/libxml/schematron.h +142 -0
- package/sdk/ios/usr/include/libxml2/libxml/threads.h +89 -0
- package/sdk/ios/usr/include/libxml2/libxml/tree.h +1311 -0
- package/sdk/ios/usr/include/libxml2/libxml/uri.h +94 -0
- package/sdk/ios/usr/include/libxml2/libxml/valid.h +458 -0
- package/sdk/ios/usr/include/libxml2/libxml/xinclude.h +129 -0
- package/sdk/ios/usr/include/libxml2/libxml/xlink.h +189 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlIO.h +368 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlautomata.h +146 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlerror.h +945 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlexports.h +77 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlmemory.h +224 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlmodule.h +57 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlreader.h +428 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlregexp.h +222 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlsave.h +88 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlschemas.h +246 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlschemastypes.h +151 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlstring.h +140 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlunicode.h +202 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlversion.h +485 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlwriter.h +488 -0
- package/sdk/ios/usr/include/libxml2/libxml/xpath.h +564 -0
- package/sdk/ios/usr/include/libxml2/libxml/xpathInternals.h +632 -0
- package/sdk/ios/usr/include/libxml2/libxml/xpointer.h +114 -0
- package/sdk/ios/usr/include/libxml2/module.modulemap +5 -0
- package/sdk/ios/usr/include/mach-o/compact_unwind_encoding.h +542 -0
- package/sdk/ios/usr/include/objc/NSObject.h +0 -6
- package/sdk/ios/usr/include/simd/base.h +160 -0
- package/sdk/ios/usr/include/simd/common.h +5617 -0
- package/sdk/ios/usr/include/simd/conversion.h +2472 -0
- package/sdk/ios/usr/include/simd/extern.h +65 -0
- package/sdk/ios/usr/include/simd/geometry.h +1524 -0
- package/sdk/ios/usr/include/simd/logic.h +1399 -0
- package/sdk/ios/usr/include/simd/math.h +6595 -0
- package/sdk/ios/usr/include/simd/matrix.h +2865 -0
- package/sdk/ios/usr/include/simd/matrix_types.h +758 -0
- package/sdk/ios/usr/include/simd/module.modulemap +6 -0
- package/sdk/ios/usr/include/simd/packed.h +1111 -0
- package/sdk/ios/usr/include/simd/quaternion.h +1780 -0
- package/sdk/ios/usr/include/simd/simd.h +30 -0
- package/sdk/ios/usr/include/simd/types.h +158 -0
- package/sdk/ios/usr/include/simd/vector.h +52 -0
- package/sdk/ios/usr/include/simd/vector_make.h +8759 -0
- package/sdk/ios/usr/include/simd/vector_types.h +1381 -0
- package/sdk/ios/usr/include/sys/cdefs.h +3 -0
- package/sdk/ios/usr/include/tgmath.h +1441 -0
- package/sdk/ios/usr/include/unicode/localpointer.h +607 -0
- package/sdk/ios/usr/include/unicode/parseerr.h +94 -0
- package/sdk/ios/usr/include/unicode/platform.h +852 -0
- package/sdk/ios/usr/include/unicode/ptypes.h +66 -0
- package/sdk/ios/usr/include/unicode/putil.h +183 -0
- package/sdk/ios/usr/include/unicode/stringoptions.h +190 -0
- package/sdk/ios/usr/include/unicode/uchar.h +4421 -0
- package/sdk/ios/usr/include/unicode/uconfig.h +504 -0
- package/sdk/ios/usr/include/unicode/ucpmap.h +158 -0
- package/sdk/ios/usr/include/unicode/uidna.h +794 -0
- package/sdk/ios/usr/include/unicode/uiter.h +709 -0
- package/sdk/ios/usr/include/unicode/umachine.h +513 -0
- package/sdk/ios/usr/include/unicode/uregex.h +1617 -0
- package/sdk/ios/usr/include/unicode/urename.h +2057 -0
- package/sdk/ios/usr/include/unicode/ustring.h +1719 -0
- package/sdk/ios/usr/include/unicode/utext.h +1613 -0
- package/sdk/ios/usr/include/unicode/utf.h +256 -0
- package/sdk/ios/usr/include/unicode/utf16.h +740 -0
- package/sdk/ios/usr/include/unicode/utf8.h +908 -0
- package/sdk/ios/usr/include/unicode/utf_old.h +1209 -0
- package/sdk/ios/usr/include/unicode/utypes.h +913 -0
- package/sdk/ios/usr/include/unicode/uvernum.h +191 -0
- package/sdk/ios/usr/include/unicode/uversion.h +254 -0
- package/sdk/ios/wasm/include/__header_time.h +12 -0
- package/sdk/ios/wasm/include/__locale_dir/locale_base_api/musl.h +6 -0
- package/sdk/ios/wasm/include/__typedef_clockid_t.h +18 -0
- package/sdk/ios/wasm/include/fts.h +22 -0
- package/sdk/ios/wasm/include/math.h +53 -0
- package/sdk/ios/wasm/include/pthread/pthread.h +2 -0
- package/sdk/ios/wasm/include/pthread.h +13 -0
- package/sdk/ios/wasm/include/string.h +6 -0
- package/sdk/ios/wasm/include/swiftToCxx/_SwiftCxxInteroperability.h +319 -0
- package/sdk/ios/wasm/include/sys/mman.h +4 -4
- package/sdk/ios/wasm/include/sys/resource.h +2 -1
- package/sdk/ios/wasm/include/sys/socket.h +10 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +4 -0
- package/sdk/ios/wasm/include/tgmath.h +3 -0
- package/sdk/ios/wasm/include/time.h +12 -0
- package/sdk/ios/wasm/include/unistd.h +1 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +4 -1
- package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +4 -0
- package/sdk/native-hashes.json +2 -1
- package/src/appPackageContract.ts +5 -0
- package/src/bundle-channel.mjs +10 -4
- package/src/dns-over-https.ts +70 -0
- package/src/expo-native-workspace.ts +6 -0
- package/src/expo-swift-host.ts +130 -70
- package/src/host/bridge-host.ts +8 -0
- package/src/host/fetch-proxy-handler.ts +9 -0
- package/src/host/fetch-proxy-transport.ts +8 -0
- package/src/host/hostname-resolver.ts +44 -0
- package/src/host/network-policy.ts +4 -0
- package/src/installed-native-libraries.ts +193 -0
- package/src/native-static-libraries.ts +121 -8
- package/src/nitro-adapter.lock.json +316 -260
- package/src/nitro-bundle.ts +25 -6
- package/src/nitro-compile.ts +134 -147
- package/src/nitro-compiler-digest.ts +4 -0
- package/src/nitro-source.ts +35 -12
- package/src/nitro-superset.lock.json +124 -8
- package/src/nitro-superset.ts +33 -6
- package/src/nitroContract.ts +11 -2
- package/src/pdfium-raster.ts +97 -0
- package/src/react-native-bridge-modules.ts +8 -0
- package/src/swift-binary-modules.ts +2 -2
- package/src/swift-compile.ts +465 -255
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +6 -2
- package/src/swift-coverage/xcode-assets.ts +4 -2
- package/src/swift-cxx-reachable.ts +3 -3
- package/src/swift-darwin-records.ts +4 -3
- package/src/swift-distribution.lock.json +34 -15
- package/src/swift-distribution.ts +23 -0
- package/src/swift-foundation.ts +9 -0
- package/src/swift-host.ts +189 -60
- package/src/swift-installed-targets.ts +188 -0
- package/src/swift-link-roots.ts +6 -3
- package/src/swift-objc-compile.ts +128 -43
- package/src/swift-objc-standin.ts +69 -30
- package/src/swift-package.ts +43 -14
- package/src/swift-pdf-raster.ts +34 -15
- package/src/swift-reproducible.ts +2 -2
- package/src/swift-runtime-products.ts +87 -0
- package/src/swift-shared-sdk.ts +66 -14
- package/src/swift-source-file.ts +12 -0
- package/src/swift-source-pods.ts +28 -29
- package/src/swift-standin-emit.ts +205 -36
- package/src/swift-standins.ts +221 -86
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +51 -0
- package/src/swift-uniform-type-constants.ts +37 -0
- package/src/swift-wasm-prune.ts +10 -8
- package/src/swift-xcframework.ts +37 -0
- package/src/swiftContract.ts +50 -13
- package/src/swiftRuntimeProductContract.ts +92 -0
- package/src/turbo-codegen-intake.ts +1 -0
- package/src/turbo-compile.ts +96 -60
- package/src/turbo-runtime.lock.json +23 -16
- package/src/turbo-source.ts +276 -142
- package/src/worker-system-chunks.ts +6 -1
- package/src/write-build-file.ts +15 -0
- package/src/xcode-header-search.ts +3 -2
- package/src/xcode-project.ts +131 -15
- package/src/turbo-native-libraries.ts +0 -98
|
@@ -0,0 +1,2203 @@
|
|
|
1
|
+
/* NSURLSession.h
|
|
2
|
+
Copyright (c) 2013-2019, Apple Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#import <Foundation/NSObject.h>
|
|
6
|
+
#import <Foundation/NSURLRequest.h>
|
|
7
|
+
#import <Foundation/NSHTTPCookieStorage.h>
|
|
8
|
+
#import <Foundation/NSProgress.h>
|
|
9
|
+
|
|
10
|
+
#include <Security/SecureTransport.h>
|
|
11
|
+
|
|
12
|
+
@class NSString;
|
|
13
|
+
@class NSURL;
|
|
14
|
+
@class NSError;
|
|
15
|
+
@class NSArray<ObjectType>;
|
|
16
|
+
@class NSDictionary<KeyType, ObjectType>;
|
|
17
|
+
@class NSInputStream;
|
|
18
|
+
@class NSOutputStream;
|
|
19
|
+
@class NSData;
|
|
20
|
+
@class NSOperationQueue;
|
|
21
|
+
|
|
22
|
+
@class NSURLCache;
|
|
23
|
+
@class NSURLResponse;
|
|
24
|
+
@class NSHTTPURLResponse;
|
|
25
|
+
@class NSHTTPCookie;
|
|
26
|
+
@class NSCachedURLResponse;
|
|
27
|
+
@class NSURLAuthenticationChallenge;
|
|
28
|
+
@class NSURLProtectionSpace;
|
|
29
|
+
@class NSURLCredential;
|
|
30
|
+
@class NSURLCredentialStorage;
|
|
31
|
+
@class NSURLSessionDataTask;
|
|
32
|
+
@class NSURLSessionUploadTask;
|
|
33
|
+
@class NSURLSessionDownloadTask;
|
|
34
|
+
@class NSNetService;
|
|
35
|
+
|
|
36
|
+
/*
|
|
37
|
+
|
|
38
|
+
NSURLSession is a replacement API for NSURLConnection. It provides
|
|
39
|
+
options that affect the policy of, and various aspects of the
|
|
40
|
+
mechanism by which NSURLRequest objects are retrieved from the
|
|
41
|
+
network.
|
|
42
|
+
|
|
43
|
+
An NSURLSession may be bound to a delegate object. The delegate is
|
|
44
|
+
invoked for certain events during the lifetime of a session, such as
|
|
45
|
+
server authentication or determining whether a resource to be loaded
|
|
46
|
+
should be converted into a download.
|
|
47
|
+
|
|
48
|
+
NSURLSession instances are thread-safe.
|
|
49
|
+
|
|
50
|
+
The default NSURLSession uses a system provided delegate and is
|
|
51
|
+
appropriate to use in place of existing code that uses
|
|
52
|
+
+[NSURLConnection sendAsynchronousRequest:queue:completionHandler:]
|
|
53
|
+
|
|
54
|
+
An NSURLSession creates NSURLSessionTask objects which represent the
|
|
55
|
+
action of a resource being loaded. These are analogous to
|
|
56
|
+
NSURLConnection objects but provide for more control and a unified
|
|
57
|
+
delegate model.
|
|
58
|
+
|
|
59
|
+
NSURLSessionTask objects are always created in a suspended state and
|
|
60
|
+
must be sent the -resume message before they will execute.
|
|
61
|
+
|
|
62
|
+
Subclasses of NSURLSessionTask are used to syntactically
|
|
63
|
+
differentiate between data and file downloads.
|
|
64
|
+
|
|
65
|
+
An NSURLSessionDataTask receives the resource as a series of calls to
|
|
66
|
+
the URLSession:dataTask:didReceiveData: delegate method. This is type of
|
|
67
|
+
task most commonly associated with retrieving objects for immediate parsing
|
|
68
|
+
by the consumer.
|
|
69
|
+
|
|
70
|
+
An NSURLSessionUploadTask differs from an NSURLSessionDataTask
|
|
71
|
+
in how its instance is constructed. Upload tasks are explicitly created
|
|
72
|
+
by referencing a file or data object to upload, or by utilizing the
|
|
73
|
+
-URLSession:task:needNewBodyStream: delegate message to supply an upload
|
|
74
|
+
body.
|
|
75
|
+
|
|
76
|
+
An NSURLSessionDownloadTask will directly write the response data to
|
|
77
|
+
a temporary file. When completed, the delegate is sent
|
|
78
|
+
URLSession:downloadTask:didFinishDownloadingToURL: and given an opportunity
|
|
79
|
+
to move this file to a permanent location in its sandboxed container, or to
|
|
80
|
+
otherwise read the file. If canceled, an NSURLSessionDownloadTask can
|
|
81
|
+
produce a data blob that can be used to resume a download at a later
|
|
82
|
+
time.
|
|
83
|
+
|
|
84
|
+
Beginning with iOS 9 and Mac OS X 10.11, NSURLSessionStream is
|
|
85
|
+
available as a task type. This allows for direct TCP/IP connection
|
|
86
|
+
to a given host and port with optional secure handshaking and
|
|
87
|
+
navigation of proxies. Data tasks may also be upgraded to a
|
|
88
|
+
NSURLSessionStream task via the HTTP Upgrade: header and appropriate
|
|
89
|
+
use of the pipelining option of NSURLSessionConfiguration. See RFC
|
|
90
|
+
2817 and RFC 6455 for information about the Upgrade: header, and
|
|
91
|
+
comments below on turning data tasks into stream tasks.
|
|
92
|
+
|
|
93
|
+
An NSURLSessionWebSocketTask is a task that allows clients to connect to servers supporting
|
|
94
|
+
WebSocket. The task will perform the HTTP handshake to upgrade the connection
|
|
95
|
+
and once the WebSocket handshake is successful, the client can read and write
|
|
96
|
+
messages that will be framed using the WebSocket protocol by the framework.
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
@class NSURLSession;
|
|
100
|
+
@class NSURLSessionDataTask; /* DataTask objects receive the payload through zero or more delegate messages */
|
|
101
|
+
@class NSURLSessionUploadTask; /* UploadTask objects receive periodic progress updates but do not return a body */
|
|
102
|
+
@class NSURLSessionDownloadTask; /* DownloadTask objects represent an active download to disk. They can provide resume data when canceled. */
|
|
103
|
+
@class NSURLSessionStreamTask; /* StreamTask objects may be used to create NSInput and NSOutputStreams, or used directly in reading and writing. */
|
|
104
|
+
@class NSURLSessionWebSocketTask; /* WebSocket objects perform a WebSocket handshake with the server and can be used to send and receive WebSocket messages */
|
|
105
|
+
|
|
106
|
+
@class NSURLSessionConfiguration;
|
|
107
|
+
@protocol NSURLSessionDelegate;
|
|
108
|
+
@protocol NSURLSessionTaskDelegate;
|
|
109
|
+
|
|
110
|
+
@class NSURLSessionTaskMetrics;
|
|
111
|
+
@class NSDateInterval;
|
|
112
|
+
|
|
113
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
114
|
+
|
|
115
|
+
#define NSURLSESSION_AVAILABLE 10_9
|
|
116
|
+
|
|
117
|
+
/// The total size of the transfer cannot be determined.
|
|
118
|
+
FOUNDATION_EXPORT const int64_t NSURLSessionTransferSizeUnknown API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0)); /* -1LL */
|
|
119
|
+
|
|
120
|
+
/// An object that coordinates a group of related, network data transfer tasks.
|
|
121
|
+
///
|
|
122
|
+
/// The ``URLSession`` class and related classes provide an API for downloading data from and uploading data to endpoints indicated by URLs. Your app can also use this API to perform background downloads when your app isn't running or, in iOS, while your app is suspended. You can use the related ``URLSessionDelegate`` and ``URLSessionTaskDelegate`` to support authentication and receive events like redirection and task completion.
|
|
123
|
+
///
|
|
124
|
+
/// > Note:
|
|
125
|
+
/// > The ``URLSession`` API involves many different classes that work together in a fairly complex way which may not be obvious if you read the reference documentation by itself. Before using the API, read the overview in the <doc:url-loading-system> topic. The articles in the Essentials, Uploading, and Downloading sections offer examples of performing common tasks with ``URLSession``.
|
|
126
|
+
///
|
|
127
|
+
/// Your app creates one or more ``URLSession`` instances, each of which coordinates a group of related data-transfer tasks. For example, if you're creating a web browser, your app might create one session per tab or window, or one session for interactive use and another for background downloads. Within each session, your app adds a series of tasks, each of which represents a request for a specific URL (following HTTP redirects, if necessary).
|
|
128
|
+
///
|
|
129
|
+
/// ### Types of URL sessions
|
|
130
|
+
///
|
|
131
|
+
/// The tasks within a given URL session share a common session configuration object, which defines connection behavior, like the maximum number of simultaneous connections to make to a single host, whether connections can use the cellular network, and so on.
|
|
132
|
+
///
|
|
133
|
+
/// ``URLSession`` has a singleton ``shared`` session (which doesn't have a configuration object) for basic requests. It's not as customizable as sessions you create, but it serves as a good starting point if you have very limited requirements. You access this session by calling the shared class method. For other kinds of sessions, you create a ``URLSession`` with one of three kinds of configurations:
|
|
134
|
+
///
|
|
135
|
+
/// - A default session behaves much like the shared session, but lets you configure it. You can also assign a delegate to the default session to obtain data incrementally.
|
|
136
|
+
/// - Ephemeral sessions are similar to shared sessions, but don't write caches, cookies, or credentials to disk.
|
|
137
|
+
/// - Background sessions let you perform uploads and downloads of content in the background while your app isn't running.
|
|
138
|
+
///
|
|
139
|
+
/// See Creating a session configuration object in the ``URLSessionConfiguration`` class for details on creating each type of configuration.
|
|
140
|
+
///
|
|
141
|
+
/// ### Types of URL session tasks
|
|
142
|
+
///
|
|
143
|
+
/// Within a session, you create tasks that optionally upload data to a server and then retrieve data from the server either as a file on disk or as one or more ``NSData`` objects in memory. The ``URLSession`` API provides four types of tasks:
|
|
144
|
+
///
|
|
145
|
+
/// - Data tasks send and receive data using ``NSData`` objects. Data tasks are intended for short, often interactive requests to a server.
|
|
146
|
+
/// - Upload tasks are similar to data tasks, but they also send data (often in the form of a file), and support background uploads while the app isn't running.
|
|
147
|
+
/// - Download tasks retrieve data in the form of a file, and support background downloads and uploads while the app isn't running.
|
|
148
|
+
/// - WebSocket tasks exchange messages over TCP and TLS, using the WebSocket protocol defined in [RFC 6455](https://tools.ietf.org/html/rfc6455).
|
|
149
|
+
///
|
|
150
|
+
///
|
|
151
|
+
///
|
|
152
|
+
/// ### Using a session delegate
|
|
153
|
+
///
|
|
154
|
+
/// Tasks in a session also share a common delegate object. You implement this delegate to provide and obtain information when various events occur, including when:
|
|
155
|
+
///
|
|
156
|
+
/// - Authentication fails.
|
|
157
|
+
/// - Data arrives from the server.
|
|
158
|
+
/// - Data becomes available for caching.
|
|
159
|
+
///
|
|
160
|
+
/// If you don't need the features provided by a delegate, you can use this API without providing one by passing `nil` when you create a session.
|
|
161
|
+
///
|
|
162
|
+
/// > Important:
|
|
163
|
+
/// > The session object keeps a strong reference to the delegate until your app exits or explicitly invalidates the session. If you don't invalidate the session, your app leaks memory until the app terminates.
|
|
164
|
+
///
|
|
165
|
+
/// Each task you create with the session calls back to the session's delegate, using the methods defined in ``URLSessionTaskDelegate``. You can also intercept these callbacks before they reach the session delegate by populating a separate ``URLSessionTask/delegate`` that's specific to the task.
|
|
166
|
+
///
|
|
167
|
+
/// ### Asynchronicity and URL sessions
|
|
168
|
+
///
|
|
169
|
+
/// Like most networking APIs, the ``URLSession`` API is highly asynchronous. It returns data to your app in one of three ways, depending on the methods you call:
|
|
170
|
+
///
|
|
171
|
+
/// - If you're using Swift, you can use the methods marked with the `async` keyword to perform common tasks. For example, ``data(from:delegate:)`` fetches data, while ``download(from:delegate:)`` downloads files. Your call point uses the `await` keyword to suspend running until the transfer completes. You can also use the ``bytes(from:delegate:)`` method to receive data as an <doc://com.apple.documentation/documentation/swift/asyncsequence>. With this approach, you use the `for`-`await`-`in` syntax to iterate over the data as your app receives it. The ``URL`` type also offers covenience methods to fetch bytes or lines from the shared URL session.
|
|
172
|
+
/// - In Swift or Objective-C, you can provide a completion handler block, which runs when the transfer completes.
|
|
173
|
+
/// - In Swift or Objective-C, you can receive callbacks to a delegate method as the transfer progresses and immediately after it completes.
|
|
174
|
+
///
|
|
175
|
+
/// In addition to delivering this information to delegates, the ``URLSession`` provides status and progress properties. Query these properties if you need to make programmatic decisions based on the current state of the task (with the caveat that its state can change at any time).
|
|
176
|
+
///
|
|
177
|
+
/// ### Protocol support
|
|
178
|
+
///
|
|
179
|
+
/// The ``URLSession`` class natively supports the `data`, `file`, `ftp`, `http`, and `https` URL schemes, with transparent support for proxy servers and SOCKS gateways, as configured in the user's system preferences.
|
|
180
|
+
///
|
|
181
|
+
/// ``URLSession`` supports the HTTP/1.1, HTTP/2, and HTTP/3 protocols. HTTP/2 support, as described by [RFC 7540](https://tools.ietf.org/html/rfc7540), requires a server that supports Application-Layer Protocol Negotiation (ALPN).
|
|
182
|
+
///
|
|
183
|
+
/// You can also add support for your own custom networking protocols and URL schemes (for your app's private use) by subclassing ``URLProtocol``.
|
|
184
|
+
///
|
|
185
|
+
/// ### App Transport Security (ATS)
|
|
186
|
+
///
|
|
187
|
+
/// iOS 9.0 and macOS 10.11 and later use App Transport Security (ATS) for all HTTP connections made with ``URLSession``. ATS requires that HTTP connections use HTTPS ([RFC 2818](https://tools.ietf.org/html/rfc2818)).
|
|
188
|
+
///
|
|
189
|
+
/// For more information, see <doc://com.apple.documentation/documentation/bundleresources/information-property-list/nsapptransportsecurity>.
|
|
190
|
+
///
|
|
191
|
+
/// ### Foundation copying behavior
|
|
192
|
+
///
|
|
193
|
+
/// Session and task objects conform to the ``NSCopying`` protocol as follows:
|
|
194
|
+
///
|
|
195
|
+
/// - When your app copies a session or task object, you get the same object back.
|
|
196
|
+
/// - When your app copies a configuration object, you get a new copy you can independently modify.
|
|
197
|
+
///
|
|
198
|
+
/// ### Thread safety
|
|
199
|
+
///
|
|
200
|
+
/// The URL session API is thread-safe. You can freely create sessions and tasks in any thread context. When your delegate methods call the provided completion handlers, the work is automatically scheduled on the correct delegate queue.
|
|
201
|
+
NS_SWIFT_SENDABLE
|
|
202
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
203
|
+
@interface NSURLSession : NSObject
|
|
204
|
+
|
|
205
|
+
/// The shared singleton session object.
|
|
206
|
+
///
|
|
207
|
+
/// For basic requests, the `NSURLSession` class provides a shared singleton session object
|
|
208
|
+
/// that gives you a reasonable default behavior for creating tasks. Use the shared session to
|
|
209
|
+
/// fetch the contents of a URL to memory with just a few lines of code.
|
|
210
|
+
///
|
|
211
|
+
/// Unlike the other session types, you don't create the shared session; you merely access it
|
|
212
|
+
/// by using this property directly. As a result, you don't provide a delegate or a configuration object.
|
|
213
|
+
///
|
|
214
|
+
/// Because the shared session has neither a delegate nor a customizable configuration object, the
|
|
215
|
+
/// shared session has important limitations:
|
|
216
|
+
///
|
|
217
|
+
/// - You can't obtain data incrementally as it arrives from the server.
|
|
218
|
+
/// - You can't significantly customize the default connection behavior.
|
|
219
|
+
/// - Your ability to perform authentication is limited.
|
|
220
|
+
/// - You can't perform background downloads or uploads when your app isn't running.
|
|
221
|
+
///
|
|
222
|
+
/// The shared session uses the shared `NSURLCache`, `NSHTTPCookieStorage`, and
|
|
223
|
+
/// `NSURLCredentialStorage` objects, uses a shared custom networking protocol list
|
|
224
|
+
/// (configured with `+[NSURLProtocol registerClass:]` and `+[NSURLProtocol unregisterClass:]`),
|
|
225
|
+
/// and is based on a default configuration.
|
|
226
|
+
@property (class, readonly, strong) NSURLSession *sharedSession;
|
|
227
|
+
|
|
228
|
+
/// Creates a session with the specified session configuration.
|
|
229
|
+
///
|
|
230
|
+
/// - Parameter configuration: A configuration object that specifies certain behaviors, such as
|
|
231
|
+
/// caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies,
|
|
232
|
+
/// credential storage, and so on. See `NSURLSessionConfiguration` for more information.
|
|
233
|
+
///
|
|
234
|
+
/// Calling this method is equivalent to calling
|
|
235
|
+
/// `+sessionWithConfiguration:delegate:delegateQueue:` with a `nil` delegate and queue.
|
|
236
|
+
+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration;
|
|
237
|
+
|
|
238
|
+
/// Creates a session with the specified session configuration, delegate, and operation queue.
|
|
239
|
+
///
|
|
240
|
+
/// - Parameter configuration: A configuration object that specifies certain behaviors, such as
|
|
241
|
+
/// caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies,
|
|
242
|
+
/// and credential storage. See `NSURLSessionConfiguration` for more information.
|
|
243
|
+
/// - Parameter delegate: A session delegate object that handles requests for authentication
|
|
244
|
+
/// and other session-related events. This delegate object is responsible for handling
|
|
245
|
+
/// authentication challenges, for making caching decisions, and for handling other
|
|
246
|
+
/// session-related events. If `nil`, the class should be used only with methods that take
|
|
247
|
+
/// completion handlers. The session object keeps a strong reference to the delegate until
|
|
248
|
+
/// your app exits or explicitly invalidates the session. If you do not invalidate the session
|
|
249
|
+
/// by calling `-invalidateAndCancel` or `-finishTasksAndInvalidate`, your app leaks memory
|
|
250
|
+
/// until it exits.
|
|
251
|
+
/// - Parameter queue: An operation queue for scheduling the delegate calls and completion
|
|
252
|
+
/// handlers. The queue should be a serial queue, in order to ensure the correct ordering of
|
|
253
|
+
/// callbacks. If `nil`, the session creates a serial operation queue for performing all
|
|
254
|
+
/// delegate method calls and completion handler calls.
|
|
255
|
+
+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration delegate:(nullable id <NSURLSessionDelegate>)delegate delegateQueue:(nullable NSOperationQueue *)queue;
|
|
256
|
+
|
|
257
|
+
/// The operation queue provided when this object was created.
|
|
258
|
+
///
|
|
259
|
+
/// All delegate method calls and completion handlers related to the session are performed on
|
|
260
|
+
/// this queue. The session object keeps a strong reference to this queue until your app exits
|
|
261
|
+
/// or the session object is deallocated. If you do not invalidate the session, your app leaks
|
|
262
|
+
/// memory until it exits.
|
|
263
|
+
///
|
|
264
|
+
/// > Note: This queue must be set at object creation time and may not be changed.
|
|
265
|
+
@property (readonly, retain) NSOperationQueue *delegateQueue;
|
|
266
|
+
|
|
267
|
+
/// The delegate assigned when this object was created.
|
|
268
|
+
///
|
|
269
|
+
/// This delegate object is responsible for handling authentication challenges, for making
|
|
270
|
+
/// caching decisions, and for handling other session-related events. The session object keeps
|
|
271
|
+
/// a strong reference to this delegate until your app exits or explicitly invalidates the
|
|
272
|
+
/// session. If you do not invalidate the session, your app leaks memory until it exits.
|
|
273
|
+
///
|
|
274
|
+
/// > Note: This delegate object must be set at object creation time and may not be changed.
|
|
275
|
+
@property (nullable, readonly, retain) id <NSURLSessionDelegate> delegate;
|
|
276
|
+
|
|
277
|
+
/// A copy of the configuration object for this session.
|
|
278
|
+
///
|
|
279
|
+
/// Beginning in iOS 9 and OS X 10.11, `NSURLSession` objects store a copy of the
|
|
280
|
+
/// `NSURLSessionConfiguration` object passed to their initializers, such that a session's
|
|
281
|
+
/// configuration is immutable after initialization. Any further changes to mutable properties
|
|
282
|
+
/// on the configuration object passed to a session's initializer or the value returned from
|
|
283
|
+
/// a session's configuration property do not affect the behavior of that session. However,
|
|
284
|
+
/// you can create a new session with the modified configuration object.
|
|
285
|
+
@property (readonly, copy) NSURLSessionConfiguration *configuration;
|
|
286
|
+
|
|
287
|
+
/// An app-defined descriptive label for the session.
|
|
288
|
+
///
|
|
289
|
+
/// This property contains a human-readable string that you can use for debugging purposes.
|
|
290
|
+
/// This value may be `nil` and defaults to `nil`. The value is ignored by the session.
|
|
291
|
+
@property (nullable, copy) NSString *sessionDescription;
|
|
292
|
+
|
|
293
|
+
/// Invalidates the session, allowing any outstanding tasks to finish.
|
|
294
|
+
///
|
|
295
|
+
/// This method returns immediately without waiting for tasks to finish. Once a session is
|
|
296
|
+
/// invalidated, new tasks cannot be created in the session, but existing tasks continue until
|
|
297
|
+
/// completion. After the last task finishes and the session makes the last delegate call related
|
|
298
|
+
/// to those tasks, the session calls the `URLSession:didBecomeInvalidWithError:` method on its
|
|
299
|
+
/// delegate, then breaks references to the delegate and callback objects. After invalidation,
|
|
300
|
+
/// session objects cannot be reused.
|
|
301
|
+
///
|
|
302
|
+
/// To cancel all outstanding tasks, call `-invalidateAndCancel` instead.
|
|
303
|
+
///
|
|
304
|
+
/// > Important: Calling this method on the shared session has no effect.
|
|
305
|
+
///
|
|
306
|
+
/// When invalidating a background session, it is not safe to create another background
|
|
307
|
+
/// session with the same identifier until `URLSession:didBecomeInvalidWithError:` has
|
|
308
|
+
/// been issued.
|
|
309
|
+
- (void)finishTasksAndInvalidate;
|
|
310
|
+
|
|
311
|
+
/// Cancels all outstanding tasks and then invalidates the session.
|
|
312
|
+
///
|
|
313
|
+
/// Once invalidated, references to the delegate and callback objects are broken. After
|
|
314
|
+
/// invalidation, session objects cannot be reused.
|
|
315
|
+
///
|
|
316
|
+
/// To allow outstanding tasks to run until completion, call `-finishTasksAndInvalidate` instead.
|
|
317
|
+
///
|
|
318
|
+
/// > Important: Calling this method on the shared session has no effect.
|
|
319
|
+
- (void)invalidateAndCancel;
|
|
320
|
+
|
|
321
|
+
/// Empties all cookies, caches and credential stores, removes disk files, flushes in-progress
|
|
322
|
+
/// downloads to disk, and ensures that future requests occur on a new socket.
|
|
323
|
+
///
|
|
324
|
+
/// - Parameter completionHandler: The completion handler to call when the reset operation is
|
|
325
|
+
/// complete. This handler is executed on the delegate queue.
|
|
326
|
+
- (void)resetWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(void))completionHandler;
|
|
327
|
+
|
|
328
|
+
/// Flushes cookies and credentials to disk, clears transient caches, and ensures that future
|
|
329
|
+
/// requests occur on a new TCP connection.
|
|
330
|
+
///
|
|
331
|
+
/// - Parameter completionHandler: The completion handler to call when the flush operation is
|
|
332
|
+
/// complete. This handler is executed on the delegate queue.
|
|
333
|
+
- (void)flushWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(void))completionHandler;
|
|
334
|
+
|
|
335
|
+
/// Asynchronously calls a completion callback with all data, upload, and download tasks in a session.
|
|
336
|
+
///
|
|
337
|
+
/// - Parameter completionHandler: The completion handler to call with the list of tasks.
|
|
338
|
+
/// This handler is executed on the delegate queue. The arrays passed to the completion handler
|
|
339
|
+
/// contain any tasks that you have created within the session, not including any tasks that
|
|
340
|
+
/// have been invalidated after completing, failing, or being cancelled.
|
|
341
|
+
- (void)getTasksWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(NSArray<NSURLSessionDataTask *> *dataTasks, NSArray<NSURLSessionUploadTask *> *uploadTasks, NSArray<NSURLSessionDownloadTask *> *downloadTasks))completionHandler NS_SWIFT_ASYNC_NAME(getter:tasks());
|
|
342
|
+
|
|
343
|
+
/// Asynchronously calls a completion callback with all tasks in a session.
|
|
344
|
+
///
|
|
345
|
+
/// - Parameter completionHandler: The completion handler to call with the list of tasks.
|
|
346
|
+
- (void)getAllTasksWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(NSArray<__kindof NSURLSessionTask *> *tasks))completionHandler NS_SWIFT_ASYNC_NAME(getter:allTasks()) API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0));
|
|
347
|
+
|
|
348
|
+
/*
|
|
349
|
+
* NSURLSessionTask objects are always created in a suspended state and
|
|
350
|
+
* must be sent the -resume message before they will execute.
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
/// Creates a task that retrieves the contents of a URL based on the specified URL request object.
|
|
354
|
+
///
|
|
355
|
+
/// By creating a task based on a request object, you can tune various aspects of the task's
|
|
356
|
+
/// behavior, including the cache policy and timeout interval.
|
|
357
|
+
///
|
|
358
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
359
|
+
///
|
|
360
|
+
/// - Parameter request: A URL request object that provides request-specific information such as
|
|
361
|
+
/// the URL, cache policy, request type, and body data or body stream.
|
|
362
|
+
/// - Returns: The new session data task.
|
|
363
|
+
- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request;
|
|
364
|
+
|
|
365
|
+
/// Creates a task that retrieves the contents of the specified URL.
|
|
366
|
+
///
|
|
367
|
+
/// After you create the task, you must start it by calling its `-resume` method. The task
|
|
368
|
+
/// calls methods on the session's delegate to provide you with the response metadata, response
|
|
369
|
+
/// data, and so on.
|
|
370
|
+
///
|
|
371
|
+
/// - Parameter url: The URL to be retrieved.
|
|
372
|
+
/// - Returns: The new session data task.
|
|
373
|
+
- (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url;
|
|
374
|
+
|
|
375
|
+
/// Creates a task that performs an HTTP request for uploading the specified file.
|
|
376
|
+
///
|
|
377
|
+
/// An HTTP upload request is any request that contains a request body, such as a `POST` or
|
|
378
|
+
/// `PUT` request. Upload tasks require you to create a request object so that you can provide
|
|
379
|
+
/// metadata for the upload, like HTTP request headers.
|
|
380
|
+
///
|
|
381
|
+
/// After you create the task, you must start it by calling its `-resume` method. The task
|
|
382
|
+
/// calls methods on the session's delegate to provide you with the upload's progress, response
|
|
383
|
+
/// metadata, response data, and so on.
|
|
384
|
+
///
|
|
385
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
386
|
+
/// and so on. The body stream and body data in this request object are ignored.
|
|
387
|
+
/// - Parameter fileURL: The URL of the file to upload.
|
|
388
|
+
/// - Returns: The new session upload task.
|
|
389
|
+
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL;
|
|
390
|
+
|
|
391
|
+
/// Creates a task that performs an HTTP request for the specified URL request object and
|
|
392
|
+
/// uploads the provided data.
|
|
393
|
+
///
|
|
394
|
+
/// An HTTP upload request is any request that contains a request body, such as a `POST` or
|
|
395
|
+
/// `PUT` request. Upload tasks require you to create a request object so that you can provide
|
|
396
|
+
/// metadata for the upload, like HTTP request headers.
|
|
397
|
+
///
|
|
398
|
+
/// After you create the task, you must start it by calling its `-resume` method. The task
|
|
399
|
+
/// calls methods on the session's delegate to provide you with the upload's progress, response
|
|
400
|
+
/// metadata, response data, and so on.
|
|
401
|
+
///
|
|
402
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
403
|
+
/// and so on. The body stream and body data in this request object are ignored.
|
|
404
|
+
/// - Parameter bodyData: The body data for the request.
|
|
405
|
+
/// - Returns: The new session upload task.
|
|
406
|
+
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(NSData *)bodyData;
|
|
407
|
+
|
|
408
|
+
/// Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads
|
|
409
|
+
/// Internet-Draft from the HTTP Working Group, found at
|
|
410
|
+
/// https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/
|
|
411
|
+
/// If resuming from an upload file, the file must still exist and be unmodified. If the upload cannot be successfully
|
|
412
|
+
/// resumed, URLSession:task:didCompleteWithError: will be called.
|
|
413
|
+
///
|
|
414
|
+
/// - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method.
|
|
415
|
+
/// - Returns: A new session upload task, or nil if the resumeData is invalid.
|
|
416
|
+
- (NSURLSessionUploadTask *)uploadTaskWithResumeData:(NSData *)resumeData API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0));
|
|
417
|
+
|
|
418
|
+
/// Creates a task that performs an HTTP request for uploading data based on the specified URL
|
|
419
|
+
/// request.
|
|
420
|
+
///
|
|
421
|
+
/// An HTTP upload request is any request that contains a request body, such as a `POST` or
|
|
422
|
+
/// `PUT` request. Upload tasks require you to provide a request object so that you can provide
|
|
423
|
+
/// metadata for the upload, such as HTTP request headers.
|
|
424
|
+
///
|
|
425
|
+
/// After you create the task, you must start it by calling its `-resume` method. The task
|
|
426
|
+
/// calls methods on the session's delegate to provide you with the upload's progress, response
|
|
427
|
+
/// metadata, response data, and so on. The session's delegate must have a
|
|
428
|
+
/// `URLSession:task:needNewBodyStream:` method that provides the body data to upload.
|
|
429
|
+
///
|
|
430
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
431
|
+
/// and so on. The body stream and body data in this request object are ignored, and the
|
|
432
|
+
/// session calls its delegate's `URLSession:task:needNewBodyStream:` method to supply an
|
|
433
|
+
/// upload body.
|
|
434
|
+
/// - Returns: The new session upload task.
|
|
435
|
+
- (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request;
|
|
436
|
+
|
|
437
|
+
/// Creates a download task that retrieves the contents of a URL based on the specified URL
|
|
438
|
+
/// request object and saves the results to a file.
|
|
439
|
+
///
|
|
440
|
+
/// By creating a task based on a request object, you can tune various aspects of the task's
|
|
441
|
+
/// behavior, including the cache policy and timeout interval.
|
|
442
|
+
///
|
|
443
|
+
/// After you create the task, you must start it by calling its `-resume` method. The task
|
|
444
|
+
/// calls methods on the session's delegate to provide you with progress notifications, the
|
|
445
|
+
/// location of the resulting temporary file, and so on.
|
|
446
|
+
///
|
|
447
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
448
|
+
/// body data or body stream, and so on.
|
|
449
|
+
/// - Returns: The new session download task.
|
|
450
|
+
- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request;
|
|
451
|
+
|
|
452
|
+
/// Creates a download task that retrieves the contents of the specified URL and saves the
|
|
453
|
+
/// results to a file.
|
|
454
|
+
///
|
|
455
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
456
|
+
///
|
|
457
|
+
/// - Parameter url: The URL to download.
|
|
458
|
+
/// - Returns: The new session download task.
|
|
459
|
+
- (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url;
|
|
460
|
+
|
|
461
|
+
/// Creates a download task to resume a previously canceled or failed download.
|
|
462
|
+
///
|
|
463
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
464
|
+
///
|
|
465
|
+
/// This method is equivalent to `-downloadTaskWithResumeData:completionHandler:` with a
|
|
466
|
+
/// `nil` completion handler. For detailed usage information, including ways to obtain a
|
|
467
|
+
/// resume data object, see that method.
|
|
468
|
+
///
|
|
469
|
+
/// - Parameter resumeData: A data object that provides the data necessary to resume a download.
|
|
470
|
+
/// - Returns: The new session download task.
|
|
471
|
+
- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData;
|
|
472
|
+
|
|
473
|
+
/// Creates a task that establishes a bidirectional TCP/IP connection to a specified hostname
|
|
474
|
+
/// and port.
|
|
475
|
+
///
|
|
476
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
477
|
+
///
|
|
478
|
+
/// - Parameter hostname: The hostname of the connection endpoint.
|
|
479
|
+
/// - Parameter port: The port of the connection endpoint.
|
|
480
|
+
/// - Returns: The new session stream task.
|
|
481
|
+
- (NSURLSessionStreamTask *)streamTaskWithHostName:(NSString *)hostname port:(NSInteger)port API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0));
|
|
482
|
+
|
|
483
|
+
/// Creates a task that establishes a bidirectional TCP/IP connection using a specified
|
|
484
|
+
/// network service.
|
|
485
|
+
///
|
|
486
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
487
|
+
///
|
|
488
|
+
/// - Parameter service: An `NSNetService` object used to determine the endpoint of the TCP/IP
|
|
489
|
+
/// connection. This network service is resolved before any data is read or written to the
|
|
490
|
+
/// resulting stream task.
|
|
491
|
+
/// - Returns: The new session stream task.
|
|
492
|
+
- (NSURLSessionStreamTask *)streamTaskWithNetService:(NSNetService *)service API_DEPRECATED("Use nw_connection_t in Network framework instead", macos(10.11, API_TO_BE_DEPRECATED), ios(9.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);
|
|
493
|
+
|
|
494
|
+
/// Creates a WebSocket task for the provided URL.
|
|
495
|
+
///
|
|
496
|
+
/// The provided URL must have a `ws` or `wss` scheme.
|
|
497
|
+
///
|
|
498
|
+
/// - Parameter url: The WebSocket URL with which to connect.
|
|
499
|
+
- (NSURLSessionWebSocketTask *)webSocketTaskWithURL:(NSURL *)url API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
500
|
+
|
|
501
|
+
/// Creates a WebSocket task given a URL and an array of protocols.
|
|
502
|
+
///
|
|
503
|
+
/// During the WebSocket handshake, the task uses the provided protocols to negotiate a
|
|
504
|
+
/// preferred protocol with the server.
|
|
505
|
+
///
|
|
506
|
+
/// > Note: The protocol doesn't affect the WebSocket framing. More details on the protocol
|
|
507
|
+
/// > are available in RFC 6455, The WebSocket Protocol.
|
|
508
|
+
///
|
|
509
|
+
/// - Parameter url: The WebSocket URL with which to connect.
|
|
510
|
+
/// - Parameter protocols: An array of protocols to negotiate with the server.
|
|
511
|
+
- (NSURLSessionWebSocketTask *)webSocketTaskWithURL:(NSURL *)url protocols:(NSArray<NSString *>*)protocols API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
512
|
+
|
|
513
|
+
/// Creates a WebSocket task for the provided URL request.
|
|
514
|
+
///
|
|
515
|
+
/// You can modify the request's properties prior to calling `-resume` on the task. The task
|
|
516
|
+
/// uses these properties during the HTTP handshake phase.
|
|
517
|
+
///
|
|
518
|
+
/// To add custom protocols, add a header with the key `Sec-WebSocket-Protocol`, and a
|
|
519
|
+
/// comma-separated list of protocols you want to negotiate with the server. The custom HTTP
|
|
520
|
+
/// headers provided by the client remain unchanged for the handshake with the server.
|
|
521
|
+
///
|
|
522
|
+
/// - Parameter request: A URL request that indicates a WebSocket endpoint with which to connect.
|
|
523
|
+
- (NSURLSessionWebSocketTask *)webSocketTaskWithRequest:(NSURLRequest *)request API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
- (instancetype)init API_DEPRECATED("Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
527
|
+
+ (instancetype)new API_DEPRECATED("Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
528
|
+
|
|
529
|
+
@end
|
|
530
|
+
|
|
531
|
+
/*
|
|
532
|
+
* NSURLSession convenience routines deliver results to
|
|
533
|
+
* a completion handler block. These convenience routines
|
|
534
|
+
* are not available to NSURLSessions that are configured
|
|
535
|
+
* as background sessions.
|
|
536
|
+
*
|
|
537
|
+
* Task objects are always created in a suspended state and
|
|
538
|
+
* must be sent the -resume message before they will execute.
|
|
539
|
+
*/
|
|
540
|
+
@interface NSURLSession (NSURLSessionAsynchronousConvenience)
|
|
541
|
+
/// Creates a task that retrieves the contents of a URL based on the specified URL request
|
|
542
|
+
/// object, and calls a handler upon completion.
|
|
543
|
+
///
|
|
544
|
+
/// By creating a task based on a request object, you can tune various aspects of the task's
|
|
545
|
+
/// behavior, including the cache policy and timeout interval.
|
|
546
|
+
///
|
|
547
|
+
/// By using the completion handler, the task bypasses calls to delegate methods for response
|
|
548
|
+
/// and data delivery, and instead provides any resulting `NSData`, `NSURLResponse`, and
|
|
549
|
+
/// `NSError` objects inside the completion handler. Delegate methods for handling
|
|
550
|
+
/// authentication challenges, however, are still called.
|
|
551
|
+
///
|
|
552
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
553
|
+
///
|
|
554
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
555
|
+
/// body data or body stream, and so on.
|
|
556
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
557
|
+
/// complete. This handler is executed on the delegate queue.
|
|
558
|
+
- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
559
|
+
|
|
560
|
+
/// Creates a task that retrieves the contents of the specified URL, then calls a handler upon
|
|
561
|
+
/// completion.
|
|
562
|
+
///
|
|
563
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
564
|
+
///
|
|
565
|
+
/// By using the completion handler, the task bypasses calls to delegate methods for response
|
|
566
|
+
/// and data delivery, and instead provides any resulting `NSData`, `NSURLResponse`, and
|
|
567
|
+
/// `NSError` objects inside the completion handler. Delegate methods for handling
|
|
568
|
+
/// authentication challenges, however, are still called.
|
|
569
|
+
///
|
|
570
|
+
/// - Parameter url: The URL to be retrieved.
|
|
571
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
572
|
+
/// complete. This handler is executed on the delegate queue.
|
|
573
|
+
- (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
574
|
+
|
|
575
|
+
/// Creates a task that performs an HTTP request for uploading the specified file, then calls
|
|
576
|
+
/// a handler upon completion.
|
|
577
|
+
///
|
|
578
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
579
|
+
/// and so on. The body stream and body data in this request object are ignored.
|
|
580
|
+
/// - Parameter fileURL: The URL of the file to upload.
|
|
581
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
582
|
+
/// complete. This handler is executed on the delegate queue.
|
|
583
|
+
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
584
|
+
|
|
585
|
+
/// Creates a task that performs an HTTP request for the specified URL request object, uploads
|
|
586
|
+
/// the provided data, and calls a handler upon completion.
|
|
587
|
+
///
|
|
588
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
589
|
+
/// and so on. The body stream and body data in this request object are ignored.
|
|
590
|
+
/// - Parameter bodyData: The body data for the request.
|
|
591
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
592
|
+
/// complete. This handler is executed on the delegate queue.
|
|
593
|
+
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(nullable NSData *)bodyData completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
594
|
+
|
|
595
|
+
/// Creates a URLSessionUploadTask from a resume data blob. If resuming from an upload
|
|
596
|
+
/// file, the file must still exist and be unmodified.
|
|
597
|
+
///
|
|
598
|
+
/// - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method.
|
|
599
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is complete.
|
|
600
|
+
/// - Returns: A new session upload task, or nil if the resumeData is invalid.
|
|
601
|
+
- (NSURLSessionUploadTask *)uploadTaskWithResumeData:(NSData *)resumeData completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0));
|
|
602
|
+
|
|
603
|
+
/// Creates a download task that retrieves the contents of a URL based on the specified URL
|
|
604
|
+
/// request object, saves the results to a file, and calls a handler upon completion.
|
|
605
|
+
///
|
|
606
|
+
/// By creating a task based on a request object, you can tune various aspects of the task's
|
|
607
|
+
/// behavior, including the cache policy and timeout interval.
|
|
608
|
+
///
|
|
609
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
610
|
+
///
|
|
611
|
+
/// - Parameter request: A URL request object that provides the URL, cache policy, request type,
|
|
612
|
+
/// body data or body stream, and so on.
|
|
613
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
614
|
+
/// complete. This handler is executed on the delegate queue.
|
|
615
|
+
- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
616
|
+
|
|
617
|
+
/// Creates a download task that retrieves the contents of the specified URL, saves the results
|
|
618
|
+
/// to a file, and calls a handler upon completion.
|
|
619
|
+
///
|
|
620
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
621
|
+
///
|
|
622
|
+
/// - Parameter url: The URL to download.
|
|
623
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
624
|
+
/// complete. This handler is executed on the delegate queue.
|
|
625
|
+
- (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
626
|
+
|
|
627
|
+
/// Creates a download task to resume a previously canceled or failed download and calls a
|
|
628
|
+
/// handler upon completion.
|
|
629
|
+
///
|
|
630
|
+
/// Your app can obtain a `resumeData` object in two ways:
|
|
631
|
+
///
|
|
632
|
+
/// - If your app cancels an existing transfer by calling
|
|
633
|
+
/// `-cancelByProducingResumeData:`, the session object passes a `resumeData`
|
|
634
|
+
/// object to the completion handler that you provided in that call.
|
|
635
|
+
/// - If a transfer fails, the session object provides an `NSError` object either to its
|
|
636
|
+
/// delegate or to the task's completion handler. In that object, the
|
|
637
|
+
/// `NSURLSessionDownloadTaskResumeData` key in the `userInfo` dictionary contains a
|
|
638
|
+
/// `resumeData` object.
|
|
639
|
+
///
|
|
640
|
+
/// After you create the task, you must start it by calling its `-resume` method.
|
|
641
|
+
///
|
|
642
|
+
/// > Note: A download can be resumed only if it is an HTTP or HTTPS `GET` request, and only
|
|
643
|
+
/// > if the remote server supports byte-range requests (with the `Range` header) and provides
|
|
644
|
+
/// > the `ETag` or `Last-Modified` header in its responses.
|
|
645
|
+
///
|
|
646
|
+
/// - Parameter resumeData: A data object that provides the data necessary to resume the download.
|
|
647
|
+
/// - Parameter completionHandler: The completion handler to call when the load request is
|
|
648
|
+
/// complete. This handler is executed on the delegate queue.
|
|
649
|
+
- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
650
|
+
|
|
651
|
+
@end
|
|
652
|
+
|
|
653
|
+
/// Constants for determining the current state of a task.
|
|
654
|
+
typedef NS_ENUM(NSInteger, NSURLSessionTaskState) {
|
|
655
|
+
/// The task is currently being serviced by the session.
|
|
656
|
+
///
|
|
657
|
+
/// A task in this state is subject to the request and resource timeouts specified in the session configuration object.
|
|
658
|
+
NSURLSessionTaskStateRunning = 0,
|
|
659
|
+
/// The task was suspended by the app.
|
|
660
|
+
///
|
|
661
|
+
/// No further processing takes place until the task is resumed. A task in this state is not subject to timeouts.
|
|
662
|
+
NSURLSessionTaskStateSuspended = 1,
|
|
663
|
+
/// The task has received a cancel message.
|
|
664
|
+
///
|
|
665
|
+
/// The delegate may or may not have received a `URLSession:task:didCompleteWithError:` message yet. A task in this state is not subject to timeouts.
|
|
666
|
+
NSURLSessionTaskStateCanceling = 2,
|
|
667
|
+
/// The task has completed (without being canceled), and the task's delegate receives no further callbacks.
|
|
668
|
+
///
|
|
669
|
+
/// If the task completed successfully, the task's `error` property is `nil`. Otherwise, it provides an error object that tells what went wrong. A task in this state is not subject to timeouts.
|
|
670
|
+
NSURLSessionTaskStateCompleted = 3,
|
|
671
|
+
} API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
|
|
672
|
+
|
|
673
|
+
/// A task, like downloading a specific resource, performed in a URL session.
|
|
674
|
+
///
|
|
675
|
+
/// The ``URLSessionTask`` class is the base class for tasks in a URL session. Tasks are always part of a session; you create a task by calling one of the task creation methods on a ``URLSession`` instance. The method you call determines the type of task.
|
|
676
|
+
///
|
|
677
|
+
/// - Use ``URLSession``'s ``URLSession/dataTask(with:)-10dy7`` and related methods to create ``URLSessionDataTask`` instances. Data tasks request a resource, returning the server's response as one or more `NSData` objects in memory. They are supported in default, ephemeral, and shared sessions, but are not supported in background sessions.
|
|
678
|
+
/// - Use ``URLSession``'s ``URLSession/uploadTask(with:from:)`` and related methods to create ``URLSessionUploadTask`` instances. Upload tasks are like data tasks, except that they make it easier to provide a request body so you can upload data before retrieving the server's response. Additionally, upload tasks are supported in background sessions.
|
|
679
|
+
/// - Use ``URLSession``'s ``URLSession/downloadTask(with:)-1onj`` and related methods to create ``URLSessionDownloadTask`` instances. Download tasks download a resource directly to a file on disk. Download tasks are supported in any type of session.
|
|
680
|
+
/// - Use ``URLSession``'s ``URLSession/streamTask(withHostName:port:)`` or ``URLSession/streamTask(with:)`` to create ``URLSessionStreamTask`` instances. Stream tasks establish a TCP/IP connection from a host name and port or a net service object.
|
|
681
|
+
///
|
|
682
|
+
/// After you create a task, you start it by calling its ``resume()`` method. The session then maintains a strong reference to the task until the request finishes or fails; you don't need to maintain a reference to the task unless it's useful for your app's internal bookkeeping.
|
|
683
|
+
///
|
|
684
|
+
/// > Note:
|
|
685
|
+
/// > All task properties support key-value observing.
|
|
686
|
+
NS_SWIFT_SENDABLE
|
|
687
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
688
|
+
@interface NSURLSessionTask : NSObject <NSCopying, NSProgressReporting>
|
|
689
|
+
|
|
690
|
+
/// An identifier uniquely identifying the task within a given session.
|
|
691
|
+
///
|
|
692
|
+
/// This value is unique only within the context of a single session; tasks in other sessions
|
|
693
|
+
/// may have the same `taskIdentifier` value.
|
|
694
|
+
@property (readonly) NSUInteger taskIdentifier;
|
|
695
|
+
|
|
696
|
+
/// The original request object passed when the task was created.
|
|
697
|
+
///
|
|
698
|
+
/// This value is typically the same as the currently active request (`currentRequest`)
|
|
699
|
+
/// except when the server has responded to the initial request with a redirect to a
|
|
700
|
+
/// different URL.
|
|
701
|
+
@property (nullable, readonly, copy) NSURLRequest *originalRequest;
|
|
702
|
+
|
|
703
|
+
/// The URL request object currently being handled by the task.
|
|
704
|
+
///
|
|
705
|
+
/// This value is typically the same as the initial request (`originalRequest`) except when
|
|
706
|
+
/// the server has responded to the initial request with a redirect to a different URL.
|
|
707
|
+
@property (nullable, readonly, copy) NSURLRequest *currentRequest;
|
|
708
|
+
|
|
709
|
+
/// The server's response to the currently active request.
|
|
710
|
+
///
|
|
711
|
+
/// This object provides information about the request as provided by the server. This
|
|
712
|
+
/// information always includes the original URL. It may also include an expected length,
|
|
713
|
+
/// MIME type information, encoding information, a suggested filename, or a combination
|
|
714
|
+
/// of these.
|
|
715
|
+
@property (nullable, readonly, copy) NSURLResponse *response;
|
|
716
|
+
|
|
717
|
+
/// A delegate specific to the task.
|
|
718
|
+
///
|
|
719
|
+
/// This task-specific delegate receives messages from the task before the session's delegate
|
|
720
|
+
/// receives them. Methods not implemented on this delegate will still be forwarded to the
|
|
721
|
+
/// session delegate.
|
|
722
|
+
///
|
|
723
|
+
/// Cannot be modified after task resumes. Not supported on background session.
|
|
724
|
+
///
|
|
725
|
+
/// Delegate is strongly referenced until the task completes, after which it is reset to `nil`.
|
|
726
|
+
@property (nullable, retain) id <NSURLSessionTaskDelegate> delegate API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
|
|
727
|
+
|
|
728
|
+
/// A representation of the overall task progress.
|
|
729
|
+
///
|
|
730
|
+
/// It can be used for task progress tracking.
|
|
731
|
+
@property (readonly, strong) NSProgress *progress API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
732
|
+
|
|
733
|
+
/// The earliest date at which the network load should begin.
|
|
734
|
+
///
|
|
735
|
+
/// For tasks created from background `NSURLSession` instances, this property indicates that
|
|
736
|
+
/// the network load should not begin any earlier than this date. Setting this property does
|
|
737
|
+
/// not guarantee that the load will begin at the specified date, but only that it will not
|
|
738
|
+
/// begin sooner. If not specified, no start delay is used.
|
|
739
|
+
///
|
|
740
|
+
/// This property has no effect for tasks created from nonbackground sessions.
|
|
741
|
+
@property (nullable, copy) NSDate *earliestBeginDate API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
742
|
+
|
|
743
|
+
/// A best-guess upper bound on the number of bytes the client expects to send.
|
|
744
|
+
///
|
|
745
|
+
/// The value set for this property should account for the size of HTTP headers and body data or body stream. If no value is specified, the system uses `NSURLSessionTransferSizeUnknown` instead. This property is used by the system to optimize the scheduling of URL session tasks. Developers are strongly encouraged to provide an approximate upper bound, or an exact byte count, if possible, rather than accept the default.
|
|
746
|
+
@property int64_t countOfBytesClientExpectsToSend API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
747
|
+
|
|
748
|
+
/// A best-guess upper bound on the number of bytes the client expects to receive.
|
|
749
|
+
///
|
|
750
|
+
/// The value set for this property should account for the size of both HTTP response headers and the response body. If no value is specified, the system uses `NSURLSessionTransferSizeUnknown` instead. This property is used by the system to optimize the scheduling of URL session tasks. Developers are strongly encouraged to provide an approximate upper bound, or an exact byte count, if possible, rather than accept the default.
|
|
751
|
+
@property int64_t countOfBytesClientExpectsToReceive API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
/// The number of bytes that the task has sent to the server in the request body.
|
|
755
|
+
///
|
|
756
|
+
/// This byte count includes _only_ the length of the request body itself, not the request headers.
|
|
757
|
+
///
|
|
758
|
+
/// To be notified when this value changes, implement the `URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:` delegate method.
|
|
759
|
+
@property (readonly) int64_t countOfBytesSent;
|
|
760
|
+
|
|
761
|
+
/// The number of bytes that the task has received from the server in the response body.
|
|
762
|
+
///
|
|
763
|
+
/// To be notified when this value changes, implement the `URLSession:dataTask:didReceiveData:` delegate method (for data and upload tasks) or the `URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:` method (for download tasks).
|
|
764
|
+
@property (readonly) int64_t countOfBytesReceived;
|
|
765
|
+
|
|
766
|
+
/// The number of bytes that the task expects to send in the request body.
|
|
767
|
+
///
|
|
768
|
+
/// The URL loading system can determine the length of the upload data in three ways:
|
|
769
|
+
///
|
|
770
|
+
/// - From the length of the data object provided as the upload body.
|
|
771
|
+
/// - From the length of the file on disk provided as the upload body of an upload task (_not_ a download task).
|
|
772
|
+
/// - From the `Content-Length` in the request object, if you explicitly set it.
|
|
773
|
+
///
|
|
774
|
+
/// Otherwise, the value is `NSURLSessionTransferSizeUnknown` (`-1`) if you provided a stream or body data object, or zero (`0`) if you did not.
|
|
775
|
+
@property (readonly) int64_t countOfBytesExpectedToSend;
|
|
776
|
+
|
|
777
|
+
/// The number of bytes that the task expects to receive in the response body.
|
|
778
|
+
///
|
|
779
|
+
/// This value is determined based on the `Content-Length` header received from the server. If that header is absent, the value is `NSURLSessionTransferSizeUnknown`.
|
|
780
|
+
@property (readonly) int64_t countOfBytesExpectedToReceive;
|
|
781
|
+
|
|
782
|
+
/// An app-provided string value for the current task.
|
|
783
|
+
///
|
|
784
|
+
/// The system doesn't interpret this value; use it for whatever purpose you see fit. For example, you could store a description of the task for debugging purposes, or a key to track the task in your own data structures.
|
|
785
|
+
@property (nullable, copy) NSString *taskDescription;
|
|
786
|
+
|
|
787
|
+
/// Cancels the task.
|
|
788
|
+
///
|
|
789
|
+
/// This method returns immediately, marking the task as being canceled. Once a task is
|
|
790
|
+
/// marked as being canceled, `URLSession:task:didCompleteWithError:` will be sent to the
|
|
791
|
+
/// task delegate, passing an error in the domain `NSURLErrorDomain` with the code
|
|
792
|
+
/// `NSURLErrorCancelled`. A task may, under some circumstances, send messages to its
|
|
793
|
+
/// delegate before the cancelation is acknowledged.
|
|
794
|
+
///
|
|
795
|
+
/// This method may be called on a task that is suspended.
|
|
796
|
+
- (void)cancel;
|
|
797
|
+
|
|
798
|
+
/// The current state of the task---active, suspended, in the process of being canceled, or completed.
|
|
799
|
+
@property (readonly) NSURLSessionTaskState state;
|
|
800
|
+
|
|
801
|
+
/// An error object that indicates why the task failed.
|
|
802
|
+
///
|
|
803
|
+
/// This value is `nil` if the task is still active or if the transfer completed successfully.
|
|
804
|
+
@property (nullable, readonly, copy) NSError *error;
|
|
805
|
+
|
|
806
|
+
/// Temporarily suspends the task.
|
|
807
|
+
///
|
|
808
|
+
/// Suspending a task will prevent the `NSURLSession` from continuing to load data. There
|
|
809
|
+
/// may still be delegate calls made on behalf of this task (for instance, to report data
|
|
810
|
+
/// received while suspending) but no further transmissions will be made on behalf of the
|
|
811
|
+
/// task until `-resume` is sent. The timeout timer associated with the task will be
|
|
812
|
+
/// disabled while a task is suspended. `-suspend` and `-resume` are nestable.
|
|
813
|
+
- (void)suspend;
|
|
814
|
+
|
|
815
|
+
/// Resumes the task, if it is suspended.
|
|
816
|
+
///
|
|
817
|
+
/// Newly-initialized tasks begin in a suspended state, so you need to call this method
|
|
818
|
+
/// to start the task.
|
|
819
|
+
- (void)resume;
|
|
820
|
+
|
|
821
|
+
/// The relative priority at which you'd like a host to handle the task, specified as a floating point value between `0.0` (lowest priority) and `1.0` (highest priority).
|
|
822
|
+
///
|
|
823
|
+
/// To provide hints to a host on how to prioritize URL session tasks from your app, specify a priority for each task. Specifying a priority provides only a hint and does not guarantee performance. If you don't specify a priority, a URL session task has a priority of `NSURLSessionTaskPriorityDefault`, with a value of `0.5`.
|
|
824
|
+
///
|
|
825
|
+
/// There are three named priorities you can employ: `NSURLSessionTaskPriorityDefault`, `NSURLSessionTaskPriorityLow`, and `NSURLSessionTaskPriorityHigh`.
|
|
826
|
+
///
|
|
827
|
+
/// You can specify or change a task's priority at any time, but not all networking protocols respond to changes after a task has started. There is no API to let you determine the effective priority for a task from a host's perspective.
|
|
828
|
+
@property float priority API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
829
|
+
|
|
830
|
+
/// A Boolean value that determines whether to deliver a partial response body in increments.
|
|
831
|
+
///
|
|
832
|
+
/// Set this property to `true` to tell the task that the app would benefit from receiving a partial response body in increments. If the app can't process the response until it has all the data, set this property to `false`. Task performance may improve when this value is `false`, in which case the task only delivers data when complete.
|
|
833
|
+
///
|
|
834
|
+
/// This property defaults to `true`, except in the following cases which default to `false`:
|
|
835
|
+
///
|
|
836
|
+
/// - The task delivers results to a completion handler rather than to a delegate.
|
|
837
|
+
/// - The task is a download task.
|
|
838
|
+
@property BOOL prefersIncrementalDelivery API_AVAILABLE(macos(11.3), ios(14.5), watchos(7.4), tvos(14.5));
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
/// Initializes an empty URL session task.
|
|
842
|
+
///
|
|
843
|
+
/// Don't use this initializer directly. Instead, create tasks from a ``NSURLSession``.
|
|
844
|
+
- (instancetype)init API_DEPRECATED("Not supported", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
845
|
+
/// Creates a new URL session task.
|
|
846
|
+
///
|
|
847
|
+
/// Don't call this method directly. Instead, create tasks from a ``NSURLSession``.
|
|
848
|
+
+ (instancetype)new API_DEPRECATED("Not supported", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
849
|
+
|
|
850
|
+
@end
|
|
851
|
+
|
|
852
|
+
/// The default URL session task priority, used implicitly for any task you have not prioritized.
|
|
853
|
+
///
|
|
854
|
+
/// The floating point value of this constant is `0.5`.
|
|
855
|
+
FOUNDATION_EXPORT const float NSURLSessionTaskPriorityDefault API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
856
|
+
/// A low URL session task priority, with a floating point value above the minimum of `0` and below the default value.
|
|
857
|
+
FOUNDATION_EXPORT const float NSURLSessionTaskPriorityLow API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
858
|
+
/// A high URL session task priority, with a floating point value above the default value and below the maximum of `1.0`.
|
|
859
|
+
FOUNDATION_EXPORT const float NSURLSessionTaskPriorityHigh API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
860
|
+
|
|
861
|
+
/// A URL session task that returns downloaded data directly to the app in memory.
|
|
862
|
+
///
|
|
863
|
+
/// A ``URLSessionDataTask`` is a concrete subclass of ``URLSessionTask``. The methods in the ``URLSessionDataTask`` class are documented in ``URLSessionTask``.
|
|
864
|
+
///
|
|
865
|
+
/// A data task returns data directly to the app (in memory) as one or more `NSData` objects. When you use a data task:
|
|
866
|
+
///
|
|
867
|
+
/// - During upload of the body data (if your app provides any), the session periodically calls its delegate's ``URLSessionTaskDelegate/urlSession(_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)`` method with status information.
|
|
868
|
+
/// - After receiving an initial response, the session calls its delegate's ``URLSessionDataDelegate/urlSession(_:dataTask:didReceive:completionHandler:)`` method to let you examine the status code and headers, and optionally convert the data task into a download task.
|
|
869
|
+
/// - During the transfer, the session calls its delegate's ``URLSessionDataDelegate/urlSession(_:dataTask:didReceive:)`` method to provide your app with the content as it arrives.
|
|
870
|
+
/// - Upon completion, the session calls its delegate's ``URLSessionDataDelegate/urlSession(_:dataTask:willCacheResponse:completionHandler:)`` method to let you determine whether the response should be cached.
|
|
871
|
+
///
|
|
872
|
+
/// For examples of using data tasks for fetching and uploading data, see <doc:fetching-website-data-into-memory> and <doc:uploading-data-to-a-website>.
|
|
873
|
+
NS_SWIFT_SENDABLE
|
|
874
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
875
|
+
@interface NSURLSessionDataTask : NSURLSessionTask
|
|
876
|
+
|
|
877
|
+
- (instancetype)init API_DEPRECATED("Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
878
|
+
+ (instancetype)new API_DEPRECATED("Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
879
|
+
|
|
880
|
+
@end
|
|
881
|
+
|
|
882
|
+
/// A URL session task that uploads data to the network in a request body.
|
|
883
|
+
///
|
|
884
|
+
/// The ``URLSessionUploadTask`` class is a subclass of ``URLSessionDataTask``, which in turn is a concrete subclass of ``URLSessionTask``. The methods associated with the ``URLSessionUploadTask`` class are documented in ``URLSessionTask``.
|
|
885
|
+
///
|
|
886
|
+
/// Upload tasks are used for making HTTP requests that require a request body (such as `POST` or `PUT`). They behave similarly to data tasks, but you create them by calling different methods on the session that are designed to make it easier to provide the content to upload. As with data tasks, if the server provides a response, upload tasks return that response as one or more `NSData` objects in memory.
|
|
887
|
+
///
|
|
888
|
+
/// > Note:
|
|
889
|
+
/// > Unlike data tasks, you can use upload tasks to upload content in the background.
|
|
890
|
+
///
|
|
891
|
+
/// When you create an upload task, you provide a ``URLRequest`` instance that contains any additional headers that you might need to send alongside the upload, such as the content type, content disposition, and so on. In iOS, when you create an upload task for a file in a background session, the system copies that file to a temporary location and streams data from there.
|
|
892
|
+
///
|
|
893
|
+
/// While the upload is in progress, the task calls the session delegate's ``URLSessionTaskDelegate/urlSession(_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)`` method periodically to provide you with status information.
|
|
894
|
+
///
|
|
895
|
+
/// When the upload phase of the request finishes, the task behaves like a data task, calling methods on the session delegate to provide you with the server's response—headers, status code, content data, and so on.
|
|
896
|
+
NS_SWIFT_SENDABLE
|
|
897
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
898
|
+
@interface NSURLSessionUploadTask : NSURLSessionDataTask
|
|
899
|
+
|
|
900
|
+
- (instancetype)init API_DEPRECATED("Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
901
|
+
+ (instancetype)new API_DEPRECATED("Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
902
|
+
|
|
903
|
+
/// Cancels an upload and calls the completion handler with resume data for later use.
|
|
904
|
+
/// resumeData will be nil if the server does not support the latest resumable uploads
|
|
905
|
+
/// Internet-Draft from the HTTP Working Group, found at
|
|
906
|
+
/// https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/
|
|
907
|
+
///
|
|
908
|
+
/// - Parameter completionHandler: The completion handler to call when the upload has been successfully canceled.
|
|
909
|
+
- (void)cancelByProducingResumeData:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable resumeData))completionHandler API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0));
|
|
910
|
+
|
|
911
|
+
@end
|
|
912
|
+
|
|
913
|
+
/// A URL session task that stores downloaded data to a file.
|
|
914
|
+
///
|
|
915
|
+
/// An ``URLSessionDownloadTask`` is a concrete subclass of ``URLSessionTask``, which provides most of the methods for this class.
|
|
916
|
+
///
|
|
917
|
+
/// Download tasks directly write the server's response data to a temporary file, providing your app with progress updates as data arrives from the server. When you use download tasks in background sessions, these downloads continue even when your app is in the suspended state or otherwise not running.
|
|
918
|
+
///
|
|
919
|
+
/// You can pause (cancel) download tasks and resume them later (assuming the server supports doing so). You can also resume downloads that failed because of network connectivity problems.
|
|
920
|
+
///
|
|
921
|
+
/// ### Download delegate behavior
|
|
922
|
+
///
|
|
923
|
+
/// When you use a download task, your delegate receives several callbacks unique to download scenarios.
|
|
924
|
+
///
|
|
925
|
+
/// - During download, the session periodically calls the delegate's ``URLSessionDownloadDelegate/urlSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)`` method with status information.
|
|
926
|
+
/// - Upon successful completion, the session calls the delegate's ``URLSessionDownloadDelegate/urlSession(_:downloadTask:didFinishDownloadingTo:)`` method or completion handler. In that method, you must either open the file for reading or move it to a permanent location in your app's sandbox container directory.
|
|
927
|
+
/// - Upon unsuccessful completion, the session calls the delegate's ``URLSessionTaskDelegate/urlSession(_:task:didCompleteWithError:)`` method or completion handler. The only errors your delegate receives through the `error` parameter are client-side errors, such as being unable to resolve the hostname or connect to the host. To check for server-side errors, inspect the ``URLSessionTask/response`` property of the `task` parameter received by this callback.
|
|
928
|
+
NS_SWIFT_SENDABLE
|
|
929
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
930
|
+
@interface NSURLSessionDownloadTask : NSURLSessionTask
|
|
931
|
+
|
|
932
|
+
/// Cancels a download and calls the completion handler with resume data for later use.
|
|
933
|
+
///
|
|
934
|
+
/// If conditions will allow for resuming the download in the future, the callback will be
|
|
935
|
+
/// called with an opaque data blob, which may be used with `-downloadTaskWithResumeData:`
|
|
936
|
+
/// to attempt to resume the download. If resume data cannot be created, the completion
|
|
937
|
+
/// handler will be called with `nil` resumeData.
|
|
938
|
+
///
|
|
939
|
+
/// - Parameter completionHandler: The completion handler to call when the cancel operation
|
|
940
|
+
/// is complete. The `resumeData` parameter contains data that can be used to resume the
|
|
941
|
+
/// download at a later time, or `nil` if resuming is not possible.
|
|
942
|
+
- (void)cancelByProducingResumeData:(void (NS_SWIFT_SENDABLE ^)(NSData * _Nullable resumeData))completionHandler;
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
/// Initializes a download task.
|
|
946
|
+
///
|
|
947
|
+
/// Don't use this initializer to manually create download tasks. Instead, use the factory methods on ``NSURLSession`` to add tasks to an existing URL session.
|
|
948
|
+
- (instancetype)init API_DEPRECATED("Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
949
|
+
/// Creates and initializes a download task.
|
|
950
|
+
///
|
|
951
|
+
/// Don't use this method to manually create download tasks. Instead, use the factory methods on ``NSURLSession`` to add tasks to an existing URL session.
|
|
952
|
+
+ (instancetype)new API_DEPRECATED("Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
953
|
+
|
|
954
|
+
@end
|
|
955
|
+
|
|
956
|
+
/// A URL session task that is stream-based.
|
|
957
|
+
///
|
|
958
|
+
/// ``URLSessionStreamTask`` is a concrete subclass of ``URLSessionTask``. Many of the methods in the ``URLSessionStreamTask`` class are documented in ``URLSessionTask``.
|
|
959
|
+
///
|
|
960
|
+
/// The ``URLSessionStreamTask`` class provides an interface a TCP/IP connection created via ``URLSession``. Tasks may be created from an ``URLSession`` using the ``URLSession/streamTask(withHostName:port:)`` and ``URLSession/streamTask(with:)`` methods. They may also be created as a result of an ``URLSessionDataTask`` being upgraded via the HTTP `Upgrade:` response header and appropriate use of the ``URLSessionConfiguration/httpShouldUsePipelining`` option of ``URLSessionConfiguration``.
|
|
961
|
+
///
|
|
962
|
+
/// > Note:
|
|
963
|
+
/// > See [RFC 2817](https://tools.ietf.org/html/rfc2817) and [RFC 6455](https://tools.ietf.org/html/rfc6455) for information about the `Upgrade:` header.
|
|
964
|
+
///
|
|
965
|
+
/// A ``URLSessionStreamTask`` object performs asynchronous reads and writes, which are enqueued and executed serially, calling a handler upon completion being on the session delegate queue. If the task is canceled, all enqueued reads and writes will call their completion handlers with an appropriate error.
|
|
966
|
+
///
|
|
967
|
+
/// When working with APIs that accept ``Stream`` objects, you can create ``InputStream`` and ``OutputStream`` objects from an ``URLSessionStreamTask`` object by calling the ``captureStreams()`` method.
|
|
968
|
+
///
|
|
969
|
+
/// > Note:
|
|
970
|
+
/// > watchOS supports ``URLSessionStreamTask`` for specific use cases. For more details, see <doc://com.apple.documentation/documentation/technotes/tn3135-low-level-networking-on-watchos>.
|
|
971
|
+
NS_SWIFT_SENDABLE
|
|
972
|
+
API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0))
|
|
973
|
+
@interface NSURLSessionStreamTask : NSURLSessionTask
|
|
974
|
+
|
|
975
|
+
/// Reads minimum `minBytes`, or at most `maxBytes` bytes and invokes the completion handler
|
|
976
|
+
/// on the session's delegate queue with the data or an error.
|
|
977
|
+
///
|
|
978
|
+
/// If an error occurs, any outstanding reads will also fail, and new read requests will
|
|
979
|
+
/// error out immediately.
|
|
980
|
+
///
|
|
981
|
+
/// - Parameter minBytes: The minimum number of bytes to read.
|
|
982
|
+
/// - Parameter maxBytes: The maximum number of bytes to read.
|
|
983
|
+
/// - Parameter timeout: The timeout interval for the read operation.
|
|
984
|
+
/// - Parameter completionHandler: The completion handler to call when the read operation
|
|
985
|
+
/// completes.
|
|
986
|
+
- (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (NS_SWIFT_SENDABLE ^) (NSData * _Nullable_result data, BOOL atEOF, NSError * _Nullable error))completionHandler;
|
|
987
|
+
|
|
988
|
+
/// Writes the data completely to the underlying socket.
|
|
989
|
+
///
|
|
990
|
+
/// If all the bytes have not been written by the timeout, a timeout error will occur.
|
|
991
|
+
/// Note that invocation of the completion handler does not guarantee that the remote side
|
|
992
|
+
/// has received all the bytes, only that they have been written to the kernel.
|
|
993
|
+
///
|
|
994
|
+
/// - Parameter data: The data to write to the stream.
|
|
995
|
+
/// - Parameter timeout: The timeout interval for the write operation.
|
|
996
|
+
/// - Parameter completionHandler: The completion handler to call when the write operation
|
|
997
|
+
/// completes.
|
|
998
|
+
- (void)writeData:(NSData *)data timeout:(NSTimeInterval)timeout completionHandler:(void (NS_SWIFT_SENDABLE ^) (NSError * _Nullable error))completionHandler;
|
|
999
|
+
|
|
1000
|
+
/// Completes any already enqueued reads and writes, then invokes the
|
|
1001
|
+
/// `URLSession:streamTask:didBecomeInputStream:outputStream:` delegate message.
|
|
1002
|
+
///
|
|
1003
|
+
/// When that message is received, the task object is considered completed and will not
|
|
1004
|
+
/// receive any more delegate messages.
|
|
1005
|
+
- (void)captureStreams;
|
|
1006
|
+
|
|
1007
|
+
/// Enqueues a request to close the write end of the underlying socket.
|
|
1008
|
+
///
|
|
1009
|
+
/// All outstanding IO will complete before the write side of the socket is closed. The
|
|
1010
|
+
/// server, however, may continue to write bytes back to the client, so best practice is
|
|
1011
|
+
/// to continue reading from the server until you receive EOF.
|
|
1012
|
+
- (void)closeWrite;
|
|
1013
|
+
|
|
1014
|
+
/// Enqueues a request to close the read side of the underlying socket.
|
|
1015
|
+
///
|
|
1016
|
+
/// All outstanding IO will complete before the read side is closed. You may continue
|
|
1017
|
+
/// writing to the server.
|
|
1018
|
+
- (void)closeRead;
|
|
1019
|
+
|
|
1020
|
+
/// Begins encrypted handshake.
|
|
1021
|
+
///
|
|
1022
|
+
/// The handshake begins after all pending IO has completed. TLS authentication callbacks
|
|
1023
|
+
/// are sent to the session's `URLSession:task:didReceiveChallenge:completionHandler:`
|
|
1024
|
+
/// delegate method.
|
|
1025
|
+
- (void)startSecureConnection;
|
|
1026
|
+
|
|
1027
|
+
/// Completes any enqueued reads and writes, and closes the secure connection.
|
|
1028
|
+
- (void)stopSecureConnection API_DEPRECATED("TLS cannot be disabled once it is enabled", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
- (instancetype)init API_DEPRECATED("Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
1032
|
+
+ (instancetype)new API_DEPRECATED("Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
1033
|
+
|
|
1034
|
+
@end
|
|
1035
|
+
|
|
1036
|
+
/// An enumeration of the types of messages sent and received.
|
|
1037
|
+
typedef NS_ENUM(NSInteger, NSURLSessionWebSocketMessageType) {
|
|
1038
|
+
NSURLSessionWebSocketMessageTypeData = 0,
|
|
1039
|
+
NSURLSessionWebSocketMessageTypeString = 1,
|
|
1040
|
+
} API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
1041
|
+
|
|
1042
|
+
/* The client can create a WebSocket message object that will be passed to the send calls
|
|
1043
|
+
* and will be delivered from the receive calls. The message can be initialized with data or string.
|
|
1044
|
+
* If initialized with data, the string property will be nil and vice versa.
|
|
1045
|
+
*/
|
|
1046
|
+
NS_SWIFT_SENDABLE
|
|
1047
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
1048
|
+
@interface NSURLSessionWebSocketMessage : NSObject
|
|
1049
|
+
|
|
1050
|
+
/* Create a message with data type
|
|
1051
|
+
*/
|
|
1052
|
+
- (instancetype)initWithData:(NSData *)data NS_DESIGNATED_INITIALIZER;
|
|
1053
|
+
|
|
1054
|
+
/* Create a message with string type
|
|
1055
|
+
*/
|
|
1056
|
+
- (instancetype)initWithString:(NSString *)string NS_DESIGNATED_INITIALIZER;
|
|
1057
|
+
|
|
1058
|
+
@property (readonly) NSURLSessionWebSocketMessageType type;
|
|
1059
|
+
@property (nullable, readonly, copy) NSData *data;
|
|
1060
|
+
@property (nullable, readonly, copy) NSString *string;
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
1064
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
1065
|
+
|
|
1066
|
+
@end
|
|
1067
|
+
|
|
1068
|
+
/// A code that indicates why a WebSocket connection closed.
|
|
1069
|
+
///
|
|
1070
|
+
/// The WebSocket close codes follow the close codes defined in [RFC 6455](https://tools.ietf.org/html/rfc6455#section-7.4.1).
|
|
1071
|
+
typedef NS_ENUM(NSInteger, NSURLSessionWebSocketCloseCode)
|
|
1072
|
+
{
|
|
1073
|
+
/// A code that indicates the connection is still open.
|
|
1074
|
+
NSURLSessionWebSocketCloseCodeInvalid = 0,
|
|
1075
|
+
/// A code that indicates normal connection closure.
|
|
1076
|
+
NSURLSessionWebSocketCloseCodeNormalClosure = 1000,
|
|
1077
|
+
/// A code that indicates an endpoint is going away.
|
|
1078
|
+
///
|
|
1079
|
+
/// This code indicates situations like a server going down or a browser having navigated away from a page.
|
|
1080
|
+
NSURLSessionWebSocketCloseCodeGoingAway = 1001,
|
|
1081
|
+
/// A code that indicates an endpoint terminated the connection due to a protocol error.
|
|
1082
|
+
NSURLSessionWebSocketCloseCodeProtocolError = 1002,
|
|
1083
|
+
/// A code that indicates an endpoint terminated the connection after receiving a type of data it can't accept.
|
|
1084
|
+
///
|
|
1085
|
+
/// An endpoint that only accepts text may send this close code if it receives a binary message.
|
|
1086
|
+
NSURLSessionWebSocketCloseCodeUnsupportedData = 1003,
|
|
1087
|
+
/// A reserved code that indicates an endpoint expected a status code and didn't receive one.
|
|
1088
|
+
NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005,
|
|
1089
|
+
/// A reserved code that indicates the connection closed without a close control frame.
|
|
1090
|
+
NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006,
|
|
1091
|
+
/// A code that indicates the server terminated the connection because it received data inconsistent with the message's type.
|
|
1092
|
+
NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007,
|
|
1093
|
+
/// A code that indicates an endpoint terminated the connection because it received a message that violates its policy.
|
|
1094
|
+
///
|
|
1095
|
+
/// This is a generic code for use when a more specific code is unavailable.
|
|
1096
|
+
NSURLSessionWebSocketCloseCodePolicyViolation = 1008,
|
|
1097
|
+
/// A code that indicates an endpoint is terminating the connection because it received a message too big for it to process.
|
|
1098
|
+
NSURLSessionWebSocketCloseCodeMessageTooBig = 1009,
|
|
1099
|
+
/// A code that indicates the client terminated the connection because the server didn't negotiate a required extension.
|
|
1100
|
+
///
|
|
1101
|
+
/// RFC 6455 indicates the client should provide a close reason with a list of the needed extensions.
|
|
1102
|
+
NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = 1010,
|
|
1103
|
+
/// A code that indicates the server terminated the connection because it encountered an unexpected condition.
|
|
1104
|
+
NSURLSessionWebSocketCloseCodeInternalServerError = 1011,
|
|
1105
|
+
/// A reserved code that indicates the connection closed due to the failure to perform a TLS handshake.
|
|
1106
|
+
NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015,
|
|
1107
|
+
} API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
1108
|
+
|
|
1109
|
+
/// A URL session task that communicates over the WebSockets protocol standard.
|
|
1110
|
+
///
|
|
1111
|
+
/// ``URLSessionWebSocketTask`` is a concrete subclass of ``URLSessionTask`` that provides a message-oriented transport protocol over TCP and TLS in the form of WebSocket framing. It follows the WebSocket Protocol defined in [RFC 6455](https://tools.ietf.org/html/rfc6455).
|
|
1112
|
+
///
|
|
1113
|
+
/// You create a ``URLSessionWebSocketTask`` with either a `ws:` or `wss:` URL. When creating the task, you can also provide a list of protocols to advertise during the handshake phase. Once the handshake completes, your app receives notifications through the session's ``URLSession/delegate``.
|
|
1114
|
+
///
|
|
1115
|
+
/// You send data with ``send(_:completionHandler:)`` and receive data with ``receive(completionHandler:)``. The task performs reads and writes asynchronously, and allows you to send and receive messages that contain both binary frames and UTF-8 encoded text frames. The task enqueues any reads or writes you perform prior to the handshake's completion, and executes them after the handshake completes.
|
|
1116
|
+
///
|
|
1117
|
+
/// ``URLSessionWebSocketTask`` supports redirection and authentication like other types of tasks do, using the methods in ``URLSessionTaskDelegate``. The WebSocket task calls the redirection and authentication delegate methods prior to completing the handshake. The WebSocket task also supports cookies, by storing cookies to the session configuration's ``URLSessionConfiguration/httpCookieStorage``, and attaches cookies to outgoing HTTP handshake requests.
|
|
1118
|
+
///
|
|
1119
|
+
/// > Note:
|
|
1120
|
+
/// > watchOS supports ``URLSessionWebSocketTask`` for specific use cases. For more details, see <doc://com.apple.documentation/documentation/technotes/tn3135-low-level-networking-on-watchos>.
|
|
1121
|
+
NS_SWIFT_SENDABLE
|
|
1122
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
1123
|
+
@interface NSURLSessionWebSocketTask : NSURLSessionTask
|
|
1124
|
+
|
|
1125
|
+
/// Sends a WebSocket message, receiving the result in a completion handler.
|
|
1126
|
+
///
|
|
1127
|
+
/// If an error occurs while sending the message, any outstanding work also fails.
|
|
1128
|
+
///
|
|
1129
|
+
/// Note that invocation of the completion handler does not guarantee that the remote side
|
|
1130
|
+
/// has received all the bytes, only that they have been written to the kernel.
|
|
1131
|
+
///
|
|
1132
|
+
/// - Parameters:
|
|
1133
|
+
/// - message: The WebSocket message to send to the other endpoint.
|
|
1134
|
+
/// - completionHandler: A closure that receives an `NSError` that indicates an error encountered while sending, or `nil` if no error occurred.
|
|
1135
|
+
- (void)sendMessage:(NSURLSessionWebSocketMessage *)message completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSError * _Nullable error))completionHandler;
|
|
1136
|
+
|
|
1137
|
+
/// Reads a WebSocket message once all the frames of the message are available.
|
|
1138
|
+
///
|
|
1139
|
+
/// If the task reaches the ``maximumMessageSize`` while buffering the frames, the receive call will
|
|
1140
|
+
/// error out and all outstanding work will also fail, resulting in the end of the task.
|
|
1141
|
+
///
|
|
1142
|
+
/// - Parameters:
|
|
1143
|
+
/// - completionHandler: A closure that receives the WebSocket message and an `NSError` that indicates an error encountered while receiving, or `nil` if no error occurred.
|
|
1144
|
+
- (void)receiveMessageWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionWebSocketMessage * _Nullable message, NSError * _Nullable error))completionHandler;
|
|
1145
|
+
|
|
1146
|
+
/// Sends a ping frame from the client side.
|
|
1147
|
+
///
|
|
1148
|
+
/// The `pongReceiveHandler` is invoked when the client receives a pong from the server
|
|
1149
|
+
/// endpoint. If a connection is lost or an error occurs before receiving the pong from
|
|
1150
|
+
/// the endpoint, the handler will be invoked with an error. The handler will always be
|
|
1151
|
+
/// called in the order in which the pings were sent.
|
|
1152
|
+
///
|
|
1153
|
+
/// - Parameter pongReceiveHandler: The handler to call when a pong is received or an error occurs.
|
|
1154
|
+
- (void)sendPingWithPongReceiveHandler:(void (NS_SWIFT_SENDABLE ^)(NSError * _Nullable error))pongReceiveHandler;
|
|
1155
|
+
|
|
1156
|
+
/// Sends a close frame with the given close code.
|
|
1157
|
+
///
|
|
1158
|
+
/// An optional reason can be provided while sending the close frame. Simply calling
|
|
1159
|
+
/// `-cancel` on the task will result in a cancellation frame being sent without any reason.
|
|
1160
|
+
///
|
|
1161
|
+
/// - Parameter closeCode: The close code to send.
|
|
1162
|
+
/// - Parameter reason: An optional data object containing the close reason.
|
|
1163
|
+
- (void)cancelWithCloseCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(nullable NSData *)reason;
|
|
1164
|
+
|
|
1165
|
+
/// The maximum number of bytes to be buffered before erroring out.
|
|
1166
|
+
///
|
|
1167
|
+
/// This includes the sum of all bytes from continuation frames. Receive calls will error
|
|
1168
|
+
/// out if this value is reached.
|
|
1169
|
+
@property NSInteger maximumMessageSize;
|
|
1170
|
+
|
|
1171
|
+
/// A code that indicates the reason a connection closed.
|
|
1172
|
+
///
|
|
1173
|
+
/// You can retrieve the close code at any time. When the task is not yet closed,
|
|
1174
|
+
/// this value is `NSURLSessionWebSocketCloseCodeInvalid`.
|
|
1175
|
+
@property (readonly) NSURLSessionWebSocketCloseCode closeCode;
|
|
1176
|
+
|
|
1177
|
+
/// The close reason received from the server.
|
|
1178
|
+
///
|
|
1179
|
+
/// A task can be queried for its close reason at any point. A `nil` value indicates no
|
|
1180
|
+
/// close reason or that the task is still running.
|
|
1181
|
+
@property (nullable, readonly, copy) NSData *closeReason;
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
1185
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
1186
|
+
|
|
1187
|
+
@end
|
|
1188
|
+
|
|
1189
|
+
/// Constants that specify the multipath service type to associate with a URL session.
|
|
1190
|
+
///
|
|
1191
|
+
/// The multipath service type determines whether Multipath TCP should be attempted and the conditions
|
|
1192
|
+
/// for creating and switching between subflows. Using these service types requires the appropriate entitlement.
|
|
1193
|
+
/// Any connection attempt will fail if the process does not have the required entitlement.
|
|
1194
|
+
/// A primary interface is a generally less expensive interface in terms of both cost and power (such as Wi-Fi or Ethernet).
|
|
1195
|
+
/// A secondary interface is more expensive (such as 3G or LTE).
|
|
1196
|
+
typedef NS_ENUM(NSInteger, NSURLSessionMultipathServiceType)
|
|
1197
|
+
{
|
|
1198
|
+
/// Specifies that Multipath TCP should not be used.
|
|
1199
|
+
///
|
|
1200
|
+
/// Connections will use a single flow. This is the default value. No entitlement is required to set this value.
|
|
1201
|
+
NSURLSessionMultipathServiceTypeNone = 0,
|
|
1202
|
+
/// A Multipath TCP service that provides seamless handover between Wi-Fi and cellular in order to preserve the connection.
|
|
1203
|
+
///
|
|
1204
|
+
/// Specify this option for long-lived or persistent connections. You must also set the Multipath entitlement in the Xcode Capabilities pane for your app.
|
|
1205
|
+
NSURLSessionMultipathServiceTypeHandover = 1,
|
|
1206
|
+
/// A service whereby Multipath TCP attempts to use the lowest-latency interface.
|
|
1207
|
+
///
|
|
1208
|
+
/// Specify this option for latency-sensitive, low-volume connections that might use cellular data. You must also set the Multipath entitlement in the Xcode Capabilities pane for your app.
|
|
1209
|
+
NSURLSessionMultipathServiceTypeInteractive = 2,
|
|
1210
|
+
/// A service that aggregates the capacities of other Multipath options in an attempt to increase throughput and minimize latency.
|
|
1211
|
+
///
|
|
1212
|
+
/// This option is available only for experimentation. Specify it for connections that use cellular data. You must also set the Multipath entitlement in the Xcode Capabilities pane for your app. To enable aggregation mode, open the Settings app on your development iPhone, navigate to Developer, and turn on Multipath Networking.
|
|
1213
|
+
NSURLSessionMultipathServiceTypeAggregate = 3
|
|
1214
|
+
} API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos) NS_SWIFT_NAME(URLSessionConfiguration.MultipathServiceType);
|
|
1215
|
+
|
|
1216
|
+
/// A configuration object that defines behavior and policies for a URL session.
|
|
1217
|
+
///
|
|
1218
|
+
/// An ``URLSessionConfiguration`` object defines the behavior and policies to use when uploading and downloading data using an ``URLSession`` object. When uploading or downloading data, creating a configuration object is always the first step you must take. You use this object to configure the timeout values, caching policies, connection requirements, and other types of information that you intend to use with your ``URLSession`` object.
|
|
1219
|
+
///
|
|
1220
|
+
/// It is important to configure your ``URLSessionConfiguration`` object appropriately before using it to initialize a session object. Session objects make a copy of the configuration settings you provide and use those settings to configure the session. Once configured, the session object ignores any changes you make to the ``URLSessionConfiguration`` object. If you need to modify your transfer policies, you must update the session configuration object and use it to create a new ``URLSession`` object.
|
|
1221
|
+
///
|
|
1222
|
+
/// > Note:
|
|
1223
|
+
/// > In some cases, the policies defined in this configuration may be overridden by policies specified by an ``NSURLRequest`` object provided for a task. Any policy specified on the request object is respected unless the session's policy is more restrictive. For example, if the session configuration specifies that cellular networking should not be allowed, the ``NSURLRequest`` object cannot request cellular networking.
|
|
1224
|
+
///
|
|
1225
|
+
/// For more information about using configuration objects to create sessions, see ``URLSession``.
|
|
1226
|
+
///
|
|
1227
|
+
/// ### Types of session configurations
|
|
1228
|
+
///
|
|
1229
|
+
/// The behavior and capabilities of a URL session are largely determined by the kind of configuration used to create the session.
|
|
1230
|
+
///
|
|
1231
|
+
///
|
|
1232
|
+
///
|
|
1233
|
+
///
|
|
1234
|
+
///
|
|
1235
|
+
/// The singleton shared session (which has no configuration object) is for basic requests. It's not as customizable as sessions that you create, but it serves as a good starting point if you have very limited requirements. You access this session by calling the shared class method. See that method's discussion for more information about its limitations.
|
|
1236
|
+
///
|
|
1237
|
+
/// Default sessions behave much like the shared session (unless you customize them further), but let you obtain data incrementally using a delegate. You can create a default session configuration by calling the default method on the URLSessionConfiguration class.
|
|
1238
|
+
///
|
|
1239
|
+
/// Ephemeral sessions are similar to default sessions, but they don't write caches, cookies, or credentials to disk. You can create an ephemeral session configuration by calling the ephemeral method on the URLSessionConfiguration class.
|
|
1240
|
+
///
|
|
1241
|
+
/// Background sessions let you perform uploads and downloads of content in the background while your app isn't running. You can create a background session configuration by calling the backgroundSessionConfiguration(\_:) method on the URLSessionConfiguration class.
|
|
1242
|
+
NS_SWIFT_SENDABLE
|
|
1243
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
1244
|
+
@interface NSURLSessionConfiguration : NSObject <NSCopying>
|
|
1245
|
+
|
|
1246
|
+
/// A default session configuration object.
|
|
1247
|
+
///
|
|
1248
|
+
/// The default session configuration uses a persistent disk-based cache (except when the
|
|
1249
|
+
/// result is downloaded to a file) and stores credentials in the user's keychain. It also
|
|
1250
|
+
/// stores cookies (by default) in the same shared cookie store as `NSURLConnection` and
|
|
1251
|
+
/// `NSURLDownload`.
|
|
1252
|
+
///
|
|
1253
|
+
/// Modifying the returned session configuration object does not affect any configuration
|
|
1254
|
+
/// objects returned by future calls to this method, and does not change the default behavior
|
|
1255
|
+
/// for existing sessions. It is therefore always safe to use the returned object as a
|
|
1256
|
+
/// starting point for additional customization.
|
|
1257
|
+
@property (class, readonly, strong) NSURLSessionConfiguration *defaultSessionConfiguration;
|
|
1258
|
+
|
|
1259
|
+
/// A session configuration that uses no persistent storage for caches, cookies, or credentials.
|
|
1260
|
+
///
|
|
1261
|
+
/// An ephemeral session configuration object is similar to a default session configuration
|
|
1262
|
+
/// (see `defaultSessionConfiguration`), except that the corresponding session object doesn't
|
|
1263
|
+
/// store caches, credential stores, or any session-related data to disk. Instead,
|
|
1264
|
+
/// session-related data is stored in RAM. The only time an ephemeral session writes data to
|
|
1265
|
+
/// disk is when you tell it to write the contents of a URL to a file.
|
|
1266
|
+
///
|
|
1267
|
+
/// The main advantage to using ephemeral sessions is privacy. By not writing potentially
|
|
1268
|
+
/// sensitive data to disk, you make it less likely that the data will be intercepted and used
|
|
1269
|
+
/// later. For this reason, ephemeral sessions are ideal for private browsing modes in web
|
|
1270
|
+
/// browsers and other similar situations.
|
|
1271
|
+
///
|
|
1272
|
+
/// When your app invalidates the session, all ephemeral session data is purged automatically.
|
|
1273
|
+
/// Additionally, in iOS, the in-memory cache isn't purged automatically when your app is
|
|
1274
|
+
/// suspended but may be purged when your app is terminated or when the system experiences
|
|
1275
|
+
/// memory pressure.
|
|
1276
|
+
@property (class, readonly, strong) NSURLSessionConfiguration *ephemeralSessionConfiguration;
|
|
1277
|
+
|
|
1278
|
+
/// Creates a session configuration object that allows HTTP and HTTPS uploads or downloads to
|
|
1279
|
+
/// be performed in the background.
|
|
1280
|
+
///
|
|
1281
|
+
/// Use this method to initialize a configuration object suitable for transferring data files
|
|
1282
|
+
/// while the app runs in the background. A session configured with this object hands control
|
|
1283
|
+
/// of the transfers over to the system, which handles the transfers in a separate process.
|
|
1284
|
+
/// In iOS, this configuration makes it possible for transfers to continue even when the app
|
|
1285
|
+
/// itself is suspended or terminated.
|
|
1286
|
+
///
|
|
1287
|
+
/// If an iOS app is terminated by the system and relaunched, the app can use the same
|
|
1288
|
+
/// `identifier` to create a new configuration object and session and to retrieve the status
|
|
1289
|
+
/// of transfers that were in progress at the time of termination. This behavior applies only
|
|
1290
|
+
/// for normal termination of the app by the system. If the user terminates the app from the
|
|
1291
|
+
/// multitasking screen, the system cancels all of the session's background transfers.
|
|
1292
|
+
///
|
|
1293
|
+
/// - Parameter identifier: The unique identifier for the configuration object. This parameter
|
|
1294
|
+
/// must not be `nil` or an empty string.
|
|
1295
|
+
/// - Returns: A configuration object that causes the system to perform upload and download
|
|
1296
|
+
/// tasks in a separate process.
|
|
1297
|
+
+ (NSURLSessionConfiguration *)backgroundSessionConfigurationWithIdentifier:(NSString *)identifier API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
1298
|
+
|
|
1299
|
+
/// The background session identifier of the configuration object.
|
|
1300
|
+
///
|
|
1301
|
+
/// The value of this property is set only when you use
|
|
1302
|
+
/// `+backgroundSessionConfigurationWithIdentifier:` to create the configuration object.
|
|
1303
|
+
/// The string uniquely identifies a background session object. In iOS, you use this string
|
|
1304
|
+
/// in cases where the app was terminated while transfers were occurring in the background.
|
|
1305
|
+
/// When the app relaunches, it uses the string to recreate the configuration and session
|
|
1306
|
+
/// objects associated with the transfers.
|
|
1307
|
+
@property (nullable, readonly, copy) NSString *identifier;
|
|
1308
|
+
|
|
1309
|
+
/// A predefined constant that determines when to return a response from the cache.
|
|
1310
|
+
///
|
|
1311
|
+
/// This property determines the request caching policy used by tasks within sessions based
|
|
1312
|
+
/// on this configuration. The default value is `NSURLRequestUseProtocolCachePolicy`.
|
|
1313
|
+
@property NSURLRequestCachePolicy requestCachePolicy;
|
|
1314
|
+
|
|
1315
|
+
/// The timeout interval to use when waiting for additional data.
|
|
1316
|
+
///
|
|
1317
|
+
/// This property determines the request timeout interval for all tasks within sessions based
|
|
1318
|
+
/// on this configuration. The request timeout interval controls how long (in seconds) a task
|
|
1319
|
+
/// should wait for additional data to arrive before giving up. The timer associated with this
|
|
1320
|
+
/// value is reset whenever new data arrives. When the request timer reaches the specified
|
|
1321
|
+
/// interval without receiving any new data, it triggers a timeout.
|
|
1322
|
+
///
|
|
1323
|
+
/// The default value is `60`.
|
|
1324
|
+
///
|
|
1325
|
+
/// > Important: Any upload or download tasks created by a background session are automatically
|
|
1326
|
+
/// > retried if the original request fails due to a timeout. To configure how long an upload
|
|
1327
|
+
/// > or download task should be allowed to be retried or transferred, use the
|
|
1328
|
+
/// > `timeoutIntervalForResource` property.
|
|
1329
|
+
@property NSTimeInterval timeoutIntervalForRequest;
|
|
1330
|
+
|
|
1331
|
+
/// The maximum amount of time that a resource request should be allowed to take.
|
|
1332
|
+
///
|
|
1333
|
+
/// This property determines the resource timeout interval for all tasks within sessions based
|
|
1334
|
+
/// on this configuration. The resource timeout interval controls how long (in seconds) to
|
|
1335
|
+
/// wait for an entire resource to transfer before giving up. The resource timer starts when
|
|
1336
|
+
/// the request is initiated and counts until either the request completes or this timeout
|
|
1337
|
+
/// interval is reached, whichever comes first.
|
|
1338
|
+
///
|
|
1339
|
+
/// The default value is 7 days.
|
|
1340
|
+
@property NSTimeInterval timeoutIntervalForResource;
|
|
1341
|
+
|
|
1342
|
+
/// The type of network service for all tasks within network sessions to enable Cellular
|
|
1343
|
+
/// Network Slicing.
|
|
1344
|
+
@property NSURLRequestNetworkServiceType networkServiceType;
|
|
1345
|
+
|
|
1346
|
+
/// A Boolean value that determines whether connections should be made over a cellular network.
|
|
1347
|
+
///
|
|
1348
|
+
/// This property controls whether tasks in sessions based on this session configuration are
|
|
1349
|
+
/// allowed to make connections over a cellular network.
|
|
1350
|
+
///
|
|
1351
|
+
/// The default value is `YES`.
|
|
1352
|
+
@property BOOL allowsCellularAccess;
|
|
1353
|
+
|
|
1354
|
+
/// A Boolean value that indicates whether connections may use a network interface that the
|
|
1355
|
+
/// system considers expensive.
|
|
1356
|
+
///
|
|
1357
|
+
/// The default value is `YES`.
|
|
1358
|
+
@property BOOL allowsExpensiveNetworkAccess API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
1359
|
+
|
|
1360
|
+
/// A Boolean value that indicates whether connections may use the network when the user has
|
|
1361
|
+
/// specified Low Data Mode.
|
|
1362
|
+
///
|
|
1363
|
+
/// The default value is `YES`.
|
|
1364
|
+
@property BOOL allowsConstrainedNetworkAccess API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
1365
|
+
|
|
1366
|
+
/* allow request to route over ultra constrained networks. */
|
|
1367
|
+
@property BOOL allowsUltraConstrainedNetworkAccess API_AVAILABLE(macos(26.1), ios(26.1), watchos(26.1), tvos(26.1), visionos(26.1));
|
|
1368
|
+
|
|
1369
|
+
/* requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. */
|
|
1370
|
+
@property BOOL requiresDNSSECValidation API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0));
|
|
1371
|
+
|
|
1372
|
+
/// A Boolean value that indicates whether the session should wait for connectivity to become
|
|
1373
|
+
/// available, or fail immediately.
|
|
1374
|
+
///
|
|
1375
|
+
/// Connectivity might be temporarily unavailable for several reasons. For example, a device
|
|
1376
|
+
/// might only have a cellular connection when `allowsCellularAccess` is set to `NO`, or the
|
|
1377
|
+
/// device might require a VPN connection but none is available. If the value of this property
|
|
1378
|
+
/// is `YES` and sufficient connectivity is unavailable, the session calls the
|
|
1379
|
+
/// `URLSession:taskIsWaitingForConnectivity:` delegate method and waits for connectivity.
|
|
1380
|
+
///
|
|
1381
|
+
/// If the value is `NO` and connectivity is unavailable, the connection fails immediately
|
|
1382
|
+
/// with an error.
|
|
1383
|
+
///
|
|
1384
|
+
/// Default value is `NO`. Ignored by background sessions, as background sessions always
|
|
1385
|
+
/// wait for connectivity.
|
|
1386
|
+
@property BOOL waitsForConnectivity API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
1387
|
+
|
|
1388
|
+
/// A Boolean value that determines whether background tasks can be scheduled at the
|
|
1389
|
+
/// discretion of the system for optimal performance.
|
|
1390
|
+
///
|
|
1391
|
+
/// For configuration objects created using `+backgroundSessionConfigurationWithIdentifier:`,
|
|
1392
|
+
/// use this property to give the system control over when transfers should occur. This
|
|
1393
|
+
/// property is ignored for configuration objects created using other methods.
|
|
1394
|
+
///
|
|
1395
|
+
/// When transferring large amounts of data, you are encouraged to set this to `YES`. Doing so
|
|
1396
|
+
/// lets the system schedule those transfers at times that are more optimal for the device.
|
|
1397
|
+
/// The default value is `NO`.
|
|
1398
|
+
@property (getter=isDiscretionary) BOOL discretionary API_AVAILABLE(macos(10.10), ios(7.0), watchos(2.0), tvos(9.0));
|
|
1399
|
+
|
|
1400
|
+
/// The identifier for the shared container into which files in background URL sessions should
|
|
1401
|
+
/// be downloaded.
|
|
1402
|
+
///
|
|
1403
|
+
/// To create a URL session for use by an app extension, set this property to a valid
|
|
1404
|
+
/// identifier for a container shared between the app extension and its containing app.
|
|
1405
|
+
///
|
|
1406
|
+
/// > Important: If you try to create a URL session from your app extension but fail to set
|
|
1407
|
+
/// > this property to a valid value, the URL session is invalidated upon creation.
|
|
1408
|
+
@property (nullable, copy) NSString *sharedContainerIdentifier API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
1409
|
+
|
|
1410
|
+
/// A Boolean value that indicates whether the app should be resumed or launched in the
|
|
1411
|
+
/// background when transfers finish.
|
|
1412
|
+
///
|
|
1413
|
+
/// For configuration objects created using `+backgroundSessionConfigurationWithIdentifier:`,
|
|
1414
|
+
/// you can use this property to control the launching behavior for an iOS app. This property
|
|
1415
|
+
/// is ignored for configuration objects created using other methods.
|
|
1416
|
+
///
|
|
1417
|
+
/// The default value is `YES`. When `YES`, the system automatically wakes up or launches the
|
|
1418
|
+
/// iOS app in the background when the session's tasks finish or require authentication.
|
|
1419
|
+
///
|
|
1420
|
+
/// > Note: macOS apps based on AppKit do not support background launch.
|
|
1421
|
+
@property BOOL sessionSendsLaunchEvents API_AVAILABLE(macos(11.0), ios(7.0), watchos(2.0), tvos(9.0));
|
|
1422
|
+
|
|
1423
|
+
/// A dictionary containing information about the proxy to use within this session.
|
|
1424
|
+
///
|
|
1425
|
+
/// Prefer using `proxyConfigurations`, which supports secure proxy and relay types.
|
|
1426
|
+
///
|
|
1427
|
+
/// The default value is `NULL`, which means that tasks use the default system settings.
|
|
1428
|
+
@property (nullable, copy) NSDictionary *connectionProxyDictionary;
|
|
1429
|
+
|
|
1430
|
+
/// The minimum TLS protocol to accept during protocol negotiation.
|
|
1431
|
+
@property SSLProtocol TLSMinimumSupportedProtocol API_DEPRECATED_WITH_REPLACEMENT("TLSMinimumSupportedProtocolVersion", macos(10.9, API_TO_BE_DEPRECATED), ios(7.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
|
|
1432
|
+
|
|
1433
|
+
/// The maximum TLS protocol version that the client should request when making connections
|
|
1434
|
+
/// in this session.
|
|
1435
|
+
@property SSLProtocol TLSMaximumSupportedProtocol API_DEPRECATED_WITH_REPLACEMENT("TLSMaximumSupportedProtocolVersion", macos(10.9, API_TO_BE_DEPRECATED), ios(7.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
|
|
1436
|
+
|
|
1437
|
+
/// The minimum TLS protocol version that the client should accept when making connections
|
|
1438
|
+
/// in this session.
|
|
1439
|
+
@property tls_protocol_version_t TLSMinimumSupportedProtocolVersion API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
1440
|
+
|
|
1441
|
+
/// The maximum TLS protocol version that the client should request when making connections
|
|
1442
|
+
/// in this session.
|
|
1443
|
+
@property tls_protocol_version_t TLSMaximumSupportedProtocolVersion API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
1444
|
+
|
|
1445
|
+
/// A Boolean value that determines whether the session should use HTTP pipelining.
|
|
1446
|
+
///
|
|
1447
|
+
/// The default value is `NO`.
|
|
1448
|
+
@property BOOL HTTPShouldUsePipelining API_DEPRECATED("Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead", macos(10.9,15.4), ios(7.0,18.4), watchos(2.0,11.4), tvos(9.0,18.4), visionos(1.0,2.4));
|
|
1449
|
+
|
|
1450
|
+
/// A Boolean value that determines whether requests should contain cookies from the cookie store.
|
|
1451
|
+
///
|
|
1452
|
+
/// The default value is `YES`.
|
|
1453
|
+
@property BOOL HTTPShouldSetCookies;
|
|
1454
|
+
|
|
1455
|
+
/// A policy constant that determines when cookies should be accepted.
|
|
1456
|
+
///
|
|
1457
|
+
/// This property determines the cookie accept policy for all tasks within sessions based on
|
|
1458
|
+
/// this configuration.
|
|
1459
|
+
@property NSHTTPCookieAcceptPolicy HTTPCookieAcceptPolicy;
|
|
1460
|
+
|
|
1461
|
+
/// A dictionary of additional headers to send with requests.
|
|
1462
|
+
///
|
|
1463
|
+
/// This property specifies additional headers that are added to all tasks within sessions
|
|
1464
|
+
/// based on this configuration. If the same header appears in both this dictionary and the
|
|
1465
|
+
/// request object (where applicable), the request object's value takes precedence.
|
|
1466
|
+
///
|
|
1467
|
+
/// An `NSURLSession` object is designed to handle various aspects of the HTTP protocol for
|
|
1468
|
+
/// you. As a result, you should not modify the following headers: `Authorization`,
|
|
1469
|
+
/// `Connection`, `Host`, `Proxy-Authenticate`, `Proxy-Authorization`, `WWW-Authenticate`.
|
|
1470
|
+
@property (nullable, copy) NSDictionary *HTTPAdditionalHeaders;
|
|
1471
|
+
|
|
1472
|
+
/// The maximum number of simultaneous connections to make to a given host.
|
|
1473
|
+
///
|
|
1474
|
+
/// This limit is per session, so if you use multiple sessions, your app as a whole may
|
|
1475
|
+
/// exceed this limit. The default value is `6`.
|
|
1476
|
+
@property NSInteger HTTPMaximumConnectionsPerHost;
|
|
1477
|
+
|
|
1478
|
+
/// The cookie store for storing cookies within this session.
|
|
1479
|
+
///
|
|
1480
|
+
/// To disable cookie storage, set this property to `nil`.
|
|
1481
|
+
///
|
|
1482
|
+
/// For default and background sessions, the default value is the shared cookie storage object.
|
|
1483
|
+
/// For ephemeral sessions, the default value is a private cookie storage object that stores
|
|
1484
|
+
/// data in memory only, and is destroyed when you invalidate the session.
|
|
1485
|
+
@property (nullable, retain) NSHTTPCookieStorage *HTTPCookieStorage;
|
|
1486
|
+
|
|
1487
|
+
/// A credential store that provides credentials for authentication.
|
|
1488
|
+
///
|
|
1489
|
+
/// To not use a credential store, set this property to `nil`.
|
|
1490
|
+
///
|
|
1491
|
+
/// For default and background sessions, the default value is the shared credential storage
|
|
1492
|
+
/// object. For ephemeral sessions, the default value is a private credential store object
|
|
1493
|
+
/// that stores data in memory only, and is destroyed when you invalidate the session.
|
|
1494
|
+
@property (nullable, retain) NSURLCredentialStorage *URLCredentialStorage;
|
|
1495
|
+
|
|
1496
|
+
/// The URL cache for providing cached responses to requests within the session.
|
|
1497
|
+
///
|
|
1498
|
+
/// To disable caching, set this property to `nil`.
|
|
1499
|
+
///
|
|
1500
|
+
/// For default sessions, the default value is the shared URL cache object.
|
|
1501
|
+
/// For background sessions, the default value is `nil`.
|
|
1502
|
+
/// For ephemeral sessions, the default value is a private cache object that stores data
|
|
1503
|
+
/// in memory only, and is destroyed when you invalidate the session.
|
|
1504
|
+
@property (nullable, retain) NSURLCache *URLCache;
|
|
1505
|
+
|
|
1506
|
+
/// A Boolean value that indicates whether TCP connections should be kept open when the app
|
|
1507
|
+
/// moves to the background.
|
|
1508
|
+
@property BOOL shouldUseExtendedBackgroundIdleMode API_DEPRECATED("Not supported", macos(10.11,15.4), ios(9.0,18.4), watchos(2.0,11.4), tvos(9.0,18.4), visionos(1.0,2.4));
|
|
1509
|
+
|
|
1510
|
+
/// An array of extra protocol subclasses that handle requests in a session.
|
|
1511
|
+
///
|
|
1512
|
+
/// Use this array to extend the default set of common networking protocols available for use
|
|
1513
|
+
/// by a session with one or more custom protocols that you define. You should not use
|
|
1514
|
+
/// `+[NSURLProtocol registerClass:]`, as that method will register your class with the
|
|
1515
|
+
/// default session rather than with an instance of `NSURLSession`.
|
|
1516
|
+
///
|
|
1517
|
+
/// > Note: You cannot use custom `NSURLProtocol` subclasses in conjunction with background
|
|
1518
|
+
/// > sessions.
|
|
1519
|
+
@property (nullable, copy) NSArray<Class> *protocolClasses;
|
|
1520
|
+
|
|
1521
|
+
/// A service type that specifies the Multipath TCP connection policy for transmitting data over Wi-Fi and cellular interfaces.
|
|
1522
|
+
///
|
|
1523
|
+
/// Multipath TCP, defined by the IETF in [RFC 6824](https://tools.ietf.org/html/rfc6824), is an extension to TCP that permits multiple interfaces to transmit a single data stream. This capability allows a seamless handover from Wi-Fi to cellular, aimed at making both interfaces more efficient and improving the user experience.
|
|
1524
|
+
///
|
|
1525
|
+
/// The default value is `NSURLSessionMultipathServiceTypeNone`, meaning Multipath TCP is
|
|
1526
|
+
/// disabled. You can also select handover mode, which provides seamless handover between
|
|
1527
|
+
/// Wi-Fi and cellular.
|
|
1528
|
+
///
|
|
1529
|
+
/// Multipath TCP requires server support. Resources for Linux-based systems are available at [https://mptcp.dev](https://mptcp.dev).
|
|
1530
|
+
@property NSURLSessionMultipathServiceType multipathServiceType API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
1531
|
+
|
|
1532
|
+
/*
|
|
1533
|
+
* Uses the classic network loader.
|
|
1534
|
+
*
|
|
1535
|
+
* NOTE: FTP and HTTP/1 pipelining are only supported in the classic loading mode.
|
|
1536
|
+
*
|
|
1537
|
+
* Defaults to YES. The default may be NO in a future OS update.
|
|
1538
|
+
*/
|
|
1539
|
+
@property BOOL usesClassicLoadingMode API_AVAILABLE(macos(15.4), ios(18.4), watchos(11.4), tvos(18.4), visionos(2.4));
|
|
1540
|
+
|
|
1541
|
+
/*
|
|
1542
|
+
* Enables HTTP/3 0-RTT early data transmission of safe requests (GET or HEAD
|
|
1543
|
+
* requests).
|
|
1544
|
+
*
|
|
1545
|
+
* WARNING: Inclusion in TLS early data changes the security guarantees offered
|
|
1546
|
+
* by TLS.
|
|
1547
|
+
*
|
|
1548
|
+
* Requests sent in early data are not covered by anti-replay security
|
|
1549
|
+
* protections. Early data must be idempotent and the impact of adversarial
|
|
1550
|
+
* replays must be carefully evaluated, as the data may be replayed. Early data
|
|
1551
|
+
* also does not provide full forward secrecy; data transmitted is more
|
|
1552
|
+
* susceptible to data breach and security compromise of the server, even if
|
|
1553
|
+
* the breach happens after the data was transmitted.
|
|
1554
|
+
*
|
|
1555
|
+
* See Section 8 of RFC8446 for more details.
|
|
1556
|
+
*
|
|
1557
|
+
* https://datatracker.ietf.org/doc/html/rfc8446#section-8
|
|
1558
|
+
*
|
|
1559
|
+
* See RFC8470 for additional discussion and security considerations.
|
|
1560
|
+
*
|
|
1561
|
+
* https://datatracker.ietf.org/doc/html/rfc8470
|
|
1562
|
+
*
|
|
1563
|
+
* If these risks are acceptable for your use case, set this property to YES.
|
|
1564
|
+
* If unsure, NO is the safest option.
|
|
1565
|
+
*
|
|
1566
|
+
* NOTE: Not supported in the classic loading mode.
|
|
1567
|
+
*
|
|
1568
|
+
* Defaults to NO.
|
|
1569
|
+
*/
|
|
1570
|
+
@property BOOL enablesEarlyData API_AVAILABLE(macos(26.0), ios(26.0), watchos(26.0), tvos(26.0), visionos(26.0));
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
/// Creates an empty session configuration.
|
|
1574
|
+
///
|
|
1575
|
+
/// @DeprecationSummary {
|
|
1576
|
+
/// Use ``NSURLSessionConfiguration/defaultSessionConfiguration`` or other class methods to create instances.
|
|
1577
|
+
/// }
|
|
1578
|
+
- (instancetype)init API_DEPRECATED("Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
1579
|
+
+ (instancetype)new API_DEPRECATED("Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances", macos(10.9,10.15), ios(7.0,13.0), watchos(2.0,6.0), tvos(9.0,13.0));
|
|
1580
|
+
|
|
1581
|
+
@end
|
|
1582
|
+
|
|
1583
|
+
/// The action to take on a delayed URL session task.
|
|
1584
|
+
///
|
|
1585
|
+
/// The values of this enumeration indicate how to handle a task with a delayed start time (as set with the ``URLSessionTask/earliestBeginDate`` property). When the task is ready to start, it calls the ``URLSessionTaskDelegate/urlSession(_:task:willBeginDelayedRequest:completionHandler:)`` method of ``URLSessionTaskDelegate``. The implementation of this method must call the provided completion handler, passing in one case of this enumeration as the first argument. If the `useNewRequest` disposition is used for the first argument, the caller must also provide a new ``NSURLRequest`` as the second argument.
|
|
1586
|
+
typedef NS_ENUM(NSInteger, NSURLSessionDelayedRequestDisposition) {
|
|
1587
|
+
/// A disposition indicating that the task should proceed with the original request.
|
|
1588
|
+
NSURLSessionDelayedRequestContinueLoading = 0,
|
|
1589
|
+
/// A disposition indicating that the task should use a new request to perform the network load.
|
|
1590
|
+
NSURLSessionDelayedRequestUseNewRequest = 1,
|
|
1591
|
+
/// A disposition indicating that the task should be canceled.
|
|
1592
|
+
NSURLSessionDelayedRequestCancel = 2,
|
|
1593
|
+
} NS_SWIFT_NAME(URLSession.DelayedRequestDisposition) API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
1594
|
+
|
|
1595
|
+
/// Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge.
|
|
1596
|
+
typedef NS_ENUM(NSInteger, NSURLSessionAuthChallengeDisposition) {
|
|
1597
|
+
/// Use the specified credential, which may be `nil`.
|
|
1598
|
+
NSURLSessionAuthChallengeUseCredential = 0,
|
|
1599
|
+
/// Use the default handling for the challenge as though this delegate method were not implemented. The provided credential parameter is ignored.
|
|
1600
|
+
NSURLSessionAuthChallengePerformDefaultHandling = 1,
|
|
1601
|
+
/// Cancel the entire request. The provided credential parameter is ignored.
|
|
1602
|
+
NSURLSessionAuthChallengeCancelAuthenticationChallenge = 2,
|
|
1603
|
+
/// Reject this challenge, and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored.
|
|
1604
|
+
///
|
|
1605
|
+
/// This disposition is only appropriate in fairly unusual situations. For example, a Windows server might use both `NSURLAuthenticationMethodNegotiate` and `NSURLAuthenticationMethodNTLM`. If your app can only handle NTLM, you would want to reject the Negotiate challenge, in order to then receive the queued NTLM challenge. However, most apps won't face this scenario, and if you cannot provide a credential for a certain authentication method, you should usually fall back to the `performDefaultHandling` disposition instead.
|
|
1606
|
+
NSURLSessionAuthChallengeRejectProtectionSpace = 3,
|
|
1607
|
+
} API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
/// Constants indicating how a data or upload session should proceed after receiving the initial headers.
|
|
1611
|
+
///
|
|
1612
|
+
/// When a data or upload task first receives a response, it calls the ``URLSessionDataDelegate/urlSession(_:dataTask:didReceive:completionHandler:)`` method of ``URLSessionDataDelegate``. Implement this method to inspect the received ``URLResponse`` and then call the provided completion handler. The first parameter to the completion handler is of this type, a disposition that tells the task how to proceed.
|
|
1613
|
+
typedef NS_ENUM(NSInteger, NSURLSessionResponseDisposition) {
|
|
1614
|
+
/// Cancel the load.
|
|
1615
|
+
///
|
|
1616
|
+
/// Using this disposition is equivalent to calling `cancel` on the task.
|
|
1617
|
+
NSURLSessionResponseCancel = 0,
|
|
1618
|
+
/// Allow the load operation to continue.
|
|
1619
|
+
NSURLSessionResponseAllow = 1,
|
|
1620
|
+
/// Convert the response for this request to use a download task.
|
|
1621
|
+
///
|
|
1622
|
+
/// When used with the completion handler from `URLSession:dataTask:didReceiveResponse:completionHandler:`, this disposition converts the data task to a download task, resulting in the delegate's `URLSession:dataTask:didBecomeDownloadTask:` being called with the new download task that supersedes the current task.
|
|
1623
|
+
NSURLSessionResponseBecomeDownload = 2,
|
|
1624
|
+
/// Convert the response for this request to use a stream task.
|
|
1625
|
+
///
|
|
1626
|
+
/// When used with the completion handler from `URLSession:dataTask:didReceiveResponse:completionHandler:`, this disposition converts the task to a stream task, resulting in the delegate's `URLSession:dataTask:didBecomeStreamTask:` being called with the new stream task that supersedes the current task.
|
|
1627
|
+
NSURLSessionResponseBecomeStream API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0)) = 3,
|
|
1628
|
+
} API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
|
|
1629
|
+
|
|
1630
|
+
/*
|
|
1631
|
+
* NSURLSessionDelegate specifies the methods that a session delegate
|
|
1632
|
+
* may respond to. There are both session specific messages (for
|
|
1633
|
+
* example, connection based auth) as well as task based messages.
|
|
1634
|
+
*/
|
|
1635
|
+
|
|
1636
|
+
/// A protocol that defines methods that URL session instances call on their delegates to handle session-level events, like session life cycle changes.
|
|
1637
|
+
///
|
|
1638
|
+
/// In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the ``URLSessionTaskDelegate``, ``URLSessionDataDelegate``, and ``URLSessionDownloadDelegate`` protocols to handle task-level events. These include events like the beginning and end of individual tasks, and periodic progress updates from data or download tasks.
|
|
1639
|
+
///
|
|
1640
|
+
/// > Note:
|
|
1641
|
+
/// > Your ``URLSession`` object doesn't need to have a delegate. If no delegate is assigned, a system-provided delegate is used, and you must provide a completion callback to obtain the data.
|
|
1642
|
+
NS_SWIFT_SENDABLE
|
|
1643
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
1644
|
+
@protocol NSURLSessionDelegate <NSObject>
|
|
1645
|
+
@optional
|
|
1646
|
+
|
|
1647
|
+
/// The last message a session receives. A session will only become invalid because of a
|
|
1648
|
+
/// systemic error or when it has been explicitly invalidated, in which case the error
|
|
1649
|
+
/// parameter will be `nil`.
|
|
1650
|
+
- (void)URLSession:(NSURLSession *)session didBecomeInvalidWithError:(nullable NSError *)error;
|
|
1651
|
+
|
|
1652
|
+
/// Handles a connection-level authentication challenge.
|
|
1653
|
+
///
|
|
1654
|
+
/// If implemented, when a connection level authentication challenge has occurred, this
|
|
1655
|
+
/// delegate will be given the opportunity to provide authentication credentials to the
|
|
1656
|
+
/// underlying connection. Some types of authentication will apply to more than one request
|
|
1657
|
+
/// on a given connection to a server (SSL Server Trust challenges). If this delegate message
|
|
1658
|
+
/// is not implemented, the behavior will be to use the default handling, which may involve
|
|
1659
|
+
/// user interaction.
|
|
1660
|
+
- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
|
|
1661
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler;
|
|
1662
|
+
|
|
1663
|
+
/// Tells the delegate that all messages previously enqueued for this session have been
|
|
1664
|
+
/// delivered.
|
|
1665
|
+
///
|
|
1666
|
+
/// If an application has received an
|
|
1667
|
+
/// `-application:handleEventsForBackgroundURLSession:completionHandler:` message, the session
|
|
1668
|
+
/// delegate will receive this message to indicate that all messages previously enqueued for
|
|
1669
|
+
/// this session have been delivered. At this time it is safe to invoke the previously stored
|
|
1670
|
+
/// completion handler, or to begin any internal updates that will result in invoking the
|
|
1671
|
+
/// completion handler.
|
|
1672
|
+
- (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session API_AVAILABLE(macos(11.0), ios(7.0), watchos(2.0), tvos(9.0));
|
|
1673
|
+
|
|
1674
|
+
@end
|
|
1675
|
+
|
|
1676
|
+
/*
|
|
1677
|
+
* Messages related to the operation of a specific task.
|
|
1678
|
+
*/
|
|
1679
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
1680
|
+
/// A protocol that defines methods that URL session instances call on their delegates to handle task-level events.
|
|
1681
|
+
///
|
|
1682
|
+
/// You use this protocol in one of two ways, depending on how you use a ``URLSession``:
|
|
1683
|
+
///
|
|
1684
|
+
/// - If you create tasks with Swift's `async`-`await` syntax, using methods like ``URLSession/bytes(for:delegate:)`` and ``URLSession/data(for:delegate:)``, you pass a `delegate` argument of this type. The delegate receives callbacks for things like task progress, while the call point awaits the completion of the task.
|
|
1685
|
+
/// - If you add tasks to the session with methods like ``URLSession/dataTask(with:)-10dy7`` and ``URLSession/downloadTask(with:)-1onj``, then you implement this protocol's methods in a ``URLSession/delegate`` you set on the session. This session delegate may also implement other protocols as appropriate, like ``URLSessionDownloadDelegate`` and ``URLSessionDataDelegate``. You can also assign a delegate of this type directly to the task to intercept callbacks before the task delivers them to the session's delegate.
|
|
1686
|
+
///
|
|
1687
|
+
/// > Note:
|
|
1688
|
+
/// > Your ``URLSession`` object doesn't need to have a delegate. If you don't assign a delegate, the session uses a system-provided delegate. In this case, you must provide a completion callback or use the Swift `async`-`await` methods to obtain the data.
|
|
1689
|
+
@protocol NSURLSessionTaskDelegate <NSURLSessionDelegate>
|
|
1690
|
+
@optional
|
|
1691
|
+
|
|
1692
|
+
/* Notification that a task has been created. This method is the first message
|
|
1693
|
+
* a task sends, providing a place to configure the task before it is resumed.
|
|
1694
|
+
*
|
|
1695
|
+
* This delegate callback is *NOT* dispatched to the delegate queue. It is
|
|
1696
|
+
* invoked synchronously before the task creation method returns.
|
|
1697
|
+
*/
|
|
1698
|
+
- (void)URLSession:(NSURLSession *)session didCreateTask:(NSURLSessionTask *)task
|
|
1699
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0));
|
|
1700
|
+
|
|
1701
|
+
/// Tells the delegate that the system is ready to begin work for a task with a delayed start
|
|
1702
|
+
/// time set (using the `earliestBeginDate` property).
|
|
1703
|
+
///
|
|
1704
|
+
/// The completionHandler must be invoked in order for loading to proceed. The disposition
|
|
1705
|
+
/// provided to the completion handler continues the load with the original request provided
|
|
1706
|
+
/// to the task, replaces the request with the specified task, or cancels the task. If this
|
|
1707
|
+
/// delegate is not implemented, loading will proceed with the original request.
|
|
1708
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1709
|
+
willBeginDelayedRequest:(NSURLRequest *)request
|
|
1710
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionDelayedRequestDisposition disposition, NSURLRequest * _Nullable newRequest))completionHandler
|
|
1711
|
+
API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
1712
|
+
|
|
1713
|
+
/// Tells the delegate that a task cannot start the network loading process because the
|
|
1714
|
+
/// current network connectivity is not available or sufficient for the task's request.
|
|
1715
|
+
///
|
|
1716
|
+
/// This delegate will be called at most one time per task, and is only called if the
|
|
1717
|
+
/// `waitsForConnectivity` property in the `NSURLSessionConfiguration` has been set to `YES`.
|
|
1718
|
+
///
|
|
1719
|
+
/// This delegate callback will never be called for background sessions, because the
|
|
1720
|
+
/// `waitsForConnectivity` property is ignored by those sessions.
|
|
1721
|
+
- (void)URLSession:(NSURLSession *)session taskIsWaitingForConnectivity:(NSURLSessionTask *)task
|
|
1722
|
+
API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
1723
|
+
|
|
1724
|
+
/// Tells the delegate that an HTTP request is attempting to perform a redirection to a
|
|
1725
|
+
/// different URL.
|
|
1726
|
+
///
|
|
1727
|
+
/// You must invoke the completion routine to allow the redirection, allow the redirection
|
|
1728
|
+
/// with a modified request, or pass `nil` to the completionHandler to cause the body of the
|
|
1729
|
+
/// redirection response to be delivered as the payload of this request. The default is to
|
|
1730
|
+
/// follow redirections.
|
|
1731
|
+
///
|
|
1732
|
+
/// For tasks in background sessions, redirections will always be followed and this method
|
|
1733
|
+
/// will not be called.
|
|
1734
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1735
|
+
willPerformHTTPRedirection:(NSHTTPURLResponse *)response
|
|
1736
|
+
newRequest:(NSURLRequest *)request
|
|
1737
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLRequest * _Nullable))completionHandler;
|
|
1738
|
+
|
|
1739
|
+
/// Tells the delegate that the task has received a request-specific authentication challenge.
|
|
1740
|
+
///
|
|
1741
|
+
/// If this delegate is not implemented, the session specific authentication challenge will
|
|
1742
|
+
/// *NOT* be called and the behavior will be the same as using the default handling
|
|
1743
|
+
/// disposition.
|
|
1744
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1745
|
+
didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
|
|
1746
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler;
|
|
1747
|
+
|
|
1748
|
+
/// Tells the delegate that a task requires a new, unopened body stream.
|
|
1749
|
+
///
|
|
1750
|
+
/// This may be necessary when authentication has failed for any request that involves a
|
|
1751
|
+
/// body stream.
|
|
1752
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1753
|
+
needNewBodyStream:(void (NS_SWIFT_SENDABLE ^)(NSInputStream * _Nullable bodyStream))completionHandler NS_SWIFT_ASYNC_NAME(urlSession(_:needNewBodyStreamForTask:));
|
|
1754
|
+
|
|
1755
|
+
/// Tells the delegate if a task requires a new body stream starting from the given offset. This may be
|
|
1756
|
+
/// necessary when resuming a failed upload task.
|
|
1757
|
+
///
|
|
1758
|
+
/// - Parameter session: The session containing the task that needs a new body stream from the given offset.
|
|
1759
|
+
/// - Parameter task: The task that needs a new body stream.
|
|
1760
|
+
/// - Parameter offset: The starting offset required for the body stream.
|
|
1761
|
+
/// - Parameter completionHandler: A completion handler that your delegate method should call with the new body stream.
|
|
1762
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1763
|
+
needNewBodyStreamFromOffset:(int64_t)offset
|
|
1764
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSInputStream * _Nullable bodyStream))completionHandler NS_SWIFT_NAME(urlSession(_:task:needNewBodyStreamFrom:completionHandler:)) NS_SWIFT_ASYNC_NAME(urlSession(_:needNewBodyStreamForTask:from:)) API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0));
|
|
1765
|
+
|
|
1766
|
+
/// Periodically informs the delegate of the upload progress.
|
|
1767
|
+
///
|
|
1768
|
+
/// This information is also available as properties of the task.
|
|
1769
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1770
|
+
didSendBodyData:(int64_t)bytesSent
|
|
1771
|
+
totalBytesSent:(int64_t)totalBytesSent
|
|
1772
|
+
totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
|
|
1773
|
+
|
|
1774
|
+
/* Sent for each informational response received except 101 switching protocols.
|
|
1775
|
+
*/
|
|
1776
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didReceiveInformationalResponse:(NSHTTPURLResponse *)response API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0));
|
|
1777
|
+
|
|
1778
|
+
/// Tells the delegate that complete statistics information has been collected for the task.
|
|
1779
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
1780
|
+
|
|
1781
|
+
/// Tells the delegate that the task finished transferring data.
|
|
1782
|
+
///
|
|
1783
|
+
/// `error` may be `nil`, which implies that no error occurred and this task is complete.
|
|
1784
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
1785
|
+
didCompleteWithError:(nullable NSError *)error;
|
|
1786
|
+
|
|
1787
|
+
@end
|
|
1788
|
+
|
|
1789
|
+
/// A protocol that defines methods that URL session instances call on their delegates to handle task-level events specific to data and upload tasks.
|
|
1790
|
+
///
|
|
1791
|
+
/// Your session delegate should also implement the methods in the ``URLSessionTaskDelegate`` protocol to handle task-level events that are common to all task types, and methods in the ``URLSessionDelegate`` protocol to handle session-level events.
|
|
1792
|
+
///
|
|
1793
|
+
/// > Note:
|
|
1794
|
+
/// > A ``URLSession`` object need not have a delegate. If no delegate is assigned, when you create tasks in that session, you must provide a completion handler block to obtain the data.
|
|
1795
|
+
/// >
|
|
1796
|
+
/// > Completion handler blocks are primarily intended as an alternative to using a custom delegate. If you create a task using a method that takes a completion handler block, the delegate methods for response and data delivery are not called.
|
|
1797
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
1798
|
+
@protocol NSURLSessionDataDelegate <NSURLSessionTaskDelegate>
|
|
1799
|
+
@optional
|
|
1800
|
+
/// Tells the delegate that the task has received a response and no further messages will be
|
|
1801
|
+
/// received until the completion block is called.
|
|
1802
|
+
///
|
|
1803
|
+
/// The disposition allows you to cancel a request or to turn a data task into a download
|
|
1804
|
+
/// task. This delegate message is optional - if you do not implement it, you can get the
|
|
1805
|
+
/// response as a property of the task.
|
|
1806
|
+
///
|
|
1807
|
+
/// This method will not be called for background upload tasks (which cannot be converted
|
|
1808
|
+
/// to download tasks).
|
|
1809
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
1810
|
+
didReceiveResponse:(NSURLResponse *)response
|
|
1811
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionResponseDisposition disposition))completionHandler;
|
|
1812
|
+
|
|
1813
|
+
/// Tells the delegate that a data task has become a download task.
|
|
1814
|
+
///
|
|
1815
|
+
/// No future messages will be sent to the data task.
|
|
1816
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
1817
|
+
didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask;
|
|
1818
|
+
|
|
1819
|
+
/// Tells the delegate that a data task has become a bidirectional stream task.
|
|
1820
|
+
///
|
|
1821
|
+
/// No future messages will be sent to the data task. The newly created streamTask will
|
|
1822
|
+
/// carry the original request and response as properties.
|
|
1823
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
1824
|
+
didBecomeStreamTask:(NSURLSessionStreamTask *)streamTask
|
|
1825
|
+
API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0));
|
|
1826
|
+
|
|
1827
|
+
/// Tells the delegate that data is available for the delegate to consume.
|
|
1828
|
+
///
|
|
1829
|
+
/// As the data may be discontiguous, you should use `[NSData enumerateByteRangesUsingBlock:]`
|
|
1830
|
+
/// to access it.
|
|
1831
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
1832
|
+
didReceiveData:(NSData *)data;
|
|
1833
|
+
|
|
1834
|
+
/// Asks the delegate whether the data (or upload) task should store the response in the cache.
|
|
1835
|
+
///
|
|
1836
|
+
/// Invoke the completion routine with a valid `NSCachedURLResponse` to allow the resulting
|
|
1837
|
+
/// data to be cached, or pass `nil` to prevent caching. Note that there is no guarantee
|
|
1838
|
+
/// that caching will be attempted for a given resource, and you should not rely on this
|
|
1839
|
+
/// message to receive the resource data.
|
|
1840
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
1841
|
+
willCacheResponse:(NSCachedURLResponse *)proposedResponse
|
|
1842
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSCachedURLResponse * _Nullable cachedResponse))completionHandler;
|
|
1843
|
+
|
|
1844
|
+
@end
|
|
1845
|
+
|
|
1846
|
+
/// A protocol that defines methods that URL session instances call on their delegates to handle task-level events specific to download tasks.
|
|
1847
|
+
///
|
|
1848
|
+
/// In addition to the methods in this protocol, be sure to implement the methods in the ``URLSessionTaskDelegate`` and ``URLSessionDelegate`` protocols to handle events common to all task types and session-level events, respectively.
|
|
1849
|
+
///
|
|
1850
|
+
/// > Note:
|
|
1851
|
+
/// > An ``URLSession`` object need not have a delegate. If no delegate is assigned, a system-provided delegate is used, and you must provide a completion callback to obtain the data.
|
|
1852
|
+
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
|
|
1853
|
+
@protocol NSURLSessionDownloadDelegate <NSURLSessionTaskDelegate>
|
|
1854
|
+
|
|
1855
|
+
/// Tells the delegate that a download task has completed a download.
|
|
1856
|
+
///
|
|
1857
|
+
/// The delegate should copy or move the file at the given location to a new location as it
|
|
1858
|
+
/// will be removed when the delegate message returns. `URLSession:task:didCompleteWithError:`
|
|
1859
|
+
/// will still be called.
|
|
1860
|
+
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
|
|
1861
|
+
didFinishDownloadingToURL:(NSURL *)location;
|
|
1862
|
+
|
|
1863
|
+
@optional
|
|
1864
|
+
/// Periodically informs the delegate of download progress.
|
|
1865
|
+
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
|
|
1866
|
+
didWriteData:(int64_t)bytesWritten
|
|
1867
|
+
totalBytesWritten:(int64_t)totalBytesWritten
|
|
1868
|
+
totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
|
|
1869
|
+
|
|
1870
|
+
/// Tells the delegate that a download task has been resumed.
|
|
1871
|
+
///
|
|
1872
|
+
/// If a download failed with an error, the `userInfo` dictionary of the error will contain
|
|
1873
|
+
/// an `NSURLSessionDownloadTaskResumeData` key, whose value is the resume data.
|
|
1874
|
+
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
|
|
1875
|
+
didResumeAtOffset:(int64_t)fileOffset
|
|
1876
|
+
expectedTotalBytes:(int64_t)expectedTotalBytes;
|
|
1877
|
+
|
|
1878
|
+
@end
|
|
1879
|
+
|
|
1880
|
+
/// A protocol that defines methods that URL session instances call on their delegates to handle task-level events specific to stream tasks.
|
|
1881
|
+
///
|
|
1882
|
+
/// In addition to these methods, be sure to implement the methods in the ``URLSessionTaskDelegate`` and ``URLSessionDelegate`` protocols to handle events common to all task types and session-level events, respectively.
|
|
1883
|
+
///
|
|
1884
|
+
/// > Note: A ``URLSession`` object need not have a delegate. If no delegate is assigned, a system-provided delegate is used, and you must provide a completion callback to obtain the data.
|
|
1885
|
+
API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0))
|
|
1886
|
+
@protocol NSURLSessionStreamDelegate <NSURLSessionTaskDelegate>
|
|
1887
|
+
@optional
|
|
1888
|
+
|
|
1889
|
+
/// Indicates that the read side of a connection has been closed.
|
|
1890
|
+
///
|
|
1891
|
+
/// Any outstanding reads complete, but future reads will immediately fail. This may be sent
|
|
1892
|
+
/// even when no reads are in progress. However, when this delegate message is received,
|
|
1893
|
+
/// there may still be bytes available. You only know that no more bytes are available when
|
|
1894
|
+
/// you are able to read until EOF.
|
|
1895
|
+
- (void)URLSession:(NSURLSession *)session readClosedForStreamTask:(NSURLSessionStreamTask *)streamTask;
|
|
1896
|
+
|
|
1897
|
+
/// Indicates that the write side of a connection has been closed.
|
|
1898
|
+
///
|
|
1899
|
+
/// Any outstanding writes complete, but future writes will immediately fail.
|
|
1900
|
+
- (void)URLSession:(NSURLSession *)session writeClosedForStreamTask:(NSURLSessionStreamTask *)streamTask;
|
|
1901
|
+
|
|
1902
|
+
/// Notifies the delegate that a better route to the host has been detected.
|
|
1903
|
+
///
|
|
1904
|
+
/// For example, a Wi-Fi interface becoming available. This is a hint to the delegate that
|
|
1905
|
+
/// it may be desirable to create a new task for subsequent work. Note that there is no
|
|
1906
|
+
/// guarantee that the future task will be able to connect to the host, so callers should
|
|
1907
|
+
/// be prepared for failure of reads and writes over any new interface.
|
|
1908
|
+
- (void)URLSession:(NSURLSession *)session betterRouteDiscoveredForStreamTask:(NSURLSessionStreamTask *)streamTask;
|
|
1909
|
+
|
|
1910
|
+
/// Tells the delegate that the stream task has been completed, and provides the resulting
|
|
1911
|
+
/// input and output streams.
|
|
1912
|
+
///
|
|
1913
|
+
/// This will only be invoked after all enqueued IO has completed (including any necessary
|
|
1914
|
+
/// handshakes). The streamTask will not receive any further delegate messages.
|
|
1915
|
+
- (void)URLSession:(NSURLSession *)session streamTask:(NSURLSessionStreamTask *)streamTask
|
|
1916
|
+
didBecomeInputStream:(NSInputStream *)inputStream
|
|
1917
|
+
outputStream:(NSOutputStream *)outputStream;
|
|
1918
|
+
|
|
1919
|
+
@end
|
|
1920
|
+
|
|
1921
|
+
/// A protocol that defines methods that URL session instances call on their delegates to handle task-level events specific to WebSocket tasks.
|
|
1922
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
1923
|
+
@protocol NSURLSessionWebSocketDelegate <NSURLSessionTaskDelegate>
|
|
1924
|
+
@optional
|
|
1925
|
+
|
|
1926
|
+
/// Tells the delegate that the WebSocket handshake was successful and the connection has been
|
|
1927
|
+
/// upgraded to WebSocket.
|
|
1928
|
+
///
|
|
1929
|
+
/// It will also provide the protocol that is picked in the handshake. If the handshake fails,
|
|
1930
|
+
/// this delegate will not be invoked.
|
|
1931
|
+
- (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask didOpenWithProtocol:(nullable NSString *) protocol;
|
|
1932
|
+
|
|
1933
|
+
/// Tells the delegate that the WebSocket has received a close frame from the server endpoint.
|
|
1934
|
+
///
|
|
1935
|
+
/// The close code and the close reason may be provided by the delegate if the server elects
|
|
1936
|
+
/// to send this information in the close frame.
|
|
1937
|
+
- (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask didCloseWithCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(nullable NSData *)reason;
|
|
1938
|
+
|
|
1939
|
+
@end
|
|
1940
|
+
|
|
1941
|
+
/// Key in the `userInfo` dictionary of an `NSError` received during a failed download.
|
|
1942
|
+
FOUNDATION_EXPORT NSString * const NSURLSessionDownloadTaskResumeData API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
|
|
1943
|
+
|
|
1944
|
+
/// Key in the userInfo dictionary of an NSError received during a failed upload.
|
|
1945
|
+
FOUNDATION_EXPORT NSString * const NSURLSessionUploadTaskResumeData API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0));
|
|
1946
|
+
|
|
1947
|
+
@interface NSURLSessionConfiguration (NSURLSessionDeprecated)
|
|
1948
|
+
/// Returns a session configuration object that allows HTTP and HTTPS uploads or downloads to be performed in the background.
|
|
1949
|
+
///
|
|
1950
|
+
/// @DeprecationSummary {
|
|
1951
|
+
/// Use ``NSURLSessionConfiguration/backgroundSessionConfigurationWithIdentifier:`` instead.
|
|
1952
|
+
/// }
|
|
1953
|
+
///
|
|
1954
|
+
/// - Parameter identifier: The unique identifier for the configuration object. This parameter must not be `nil` or an empty string.
|
|
1955
|
+
/// - Returns: A URL session configuration object that causes upload and download tasks to be performed by the system in a separate process.
|
|
1956
|
+
+ (NSURLSessionConfiguration *)backgroundSessionConfiguration:(NSString *)identifier API_DEPRECATED_WITH_REPLACEMENT("-backgroundSessionConfigurationWithIdentifier:", macos(10.9, 10.10), ios(7.0, 8.0), watchos(2.0, 2.0), tvos(9.0, 9.0));
|
|
1957
|
+
@end
|
|
1958
|
+
|
|
1959
|
+
/// The manner in which a resource is fetched.
|
|
1960
|
+
typedef NS_ENUM(NSInteger, NSURLSessionTaskMetricsResourceFetchType) {
|
|
1961
|
+
/// The manner in which the resource was fetched could not be determined.
|
|
1962
|
+
NSURLSessionTaskMetricsResourceFetchTypeUnknown,
|
|
1963
|
+
/// The resource was loaded over the network.
|
|
1964
|
+
NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad,
|
|
1965
|
+
/// The resource was pushed by the server to the client.
|
|
1966
|
+
NSURLSessionTaskMetricsResourceFetchTypeServerPush API_DEPRECATED("Server push is no longer supported as of iOS 17 and aligned releases", macos(10.12,15.4), ios(10.0,18.4), watchos(3.0,11.4), tvos(10.0,18.4), visionos(1.0,2.4)),
|
|
1967
|
+
/// The resource was retrieved from the local storage.
|
|
1968
|
+
NSURLSessionTaskMetricsResourceFetchTypeLocalCache,
|
|
1969
|
+
} API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
1970
|
+
|
|
1971
|
+
/*
|
|
1972
|
+
* DNS protocol used for domain resolution.
|
|
1973
|
+
*/
|
|
1974
|
+
typedef NS_ENUM(NSInteger, NSURLSessionTaskMetricsDomainResolutionProtocol) {
|
|
1975
|
+
NSURLSessionTaskMetricsDomainResolutionProtocolUnknown,
|
|
1976
|
+
NSURLSessionTaskMetricsDomainResolutionProtocolUDP, /* Resolution used DNS over UDP. */
|
|
1977
|
+
NSURLSessionTaskMetricsDomainResolutionProtocolTCP, /* Resolution used DNS over TCP. */
|
|
1978
|
+
NSURLSessionTaskMetricsDomainResolutionProtocolTLS, /* Resolution used DNS over TLS. */
|
|
1979
|
+
NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, /* Resolution used DNS over HTTPS. */
|
|
1980
|
+
} API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
|
|
1981
|
+
|
|
1982
|
+
/// An object that encapsulates the performance metrics collected by the URL Loading System during the execution of a session task.
|
|
1983
|
+
///
|
|
1984
|
+
/// Each ``URLSessionTaskTransactionMetrics`` object consists of a ``request`` and ``response`` property, corresponding to the request and response of the corresponding task. It also contains temporal metrics, starting with ``fetchStartDate`` and ending with ``responseEndDate``, as well as other characteristics like ``networkProtocolName`` and ``resourceFetchType``.
|
|
1985
|
+
///
|
|
1986
|
+
/// ### Understanding temporal metrics
|
|
1987
|
+
///
|
|
1988
|
+
/// The figure below shows the sequence of events for a URL session task, which correspond to the temporal metrics captured by ``URLSessionTaskTransactionMetrics``.
|
|
1989
|
+
///
|
|
1990
|
+
/// 
|
|
1991
|
+
///
|
|
1992
|
+
/// For all metrics with a start and end date, if an aspect of the task was not completed, then its corresponding end date metric is `nil`. This can happen if name lookup begins, but the operation either times out, fails, or the client cancels the task before the name can be resolved. In this case, the ``domainLookupEndDate`` property is `nil`, along with all metrics for aspects that occurred afterwards.
|
|
1993
|
+
///
|
|
1994
|
+
/// ### Measuring tasks using iCloud Private Relay
|
|
1995
|
+
///
|
|
1996
|
+
/// iCloud Private Relay can change the timing and sequence of events for your tasks by sending requests through a set of privacy proxies. All tasks that use iCloud Private Relay set the ``isProxyConnection`` property in their transaction metrics. In this case, the ``remoteAddress`` property contains the address of the proxy, and not the origin server.
|
|
1997
|
+
///
|
|
1998
|
+
/// Tasks to different hosts can reuse the same transport connection, just like how tasks can already share a connection when using HTTP/2. In these cases, a proxied task may not report any ``secureConnectionStartDate`` or ``secureConnectionEndDate``.
|
|
1999
|
+
NS_SWIFT_SENDABLE
|
|
2000
|
+
API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
|
|
2001
|
+
@interface NSURLSessionTaskTransactionMetrics : NSObject
|
|
2002
|
+
|
|
2003
|
+
/// Represents the transaction request.
|
|
2004
|
+
@property (copy, readonly) NSURLRequest *request;
|
|
2005
|
+
|
|
2006
|
+
/// Represents the transaction response. Can be `nil` if error occurred and no response was generated.
|
|
2007
|
+
@property (nullable, copy, readonly) NSURLResponse *response;
|
|
2008
|
+
|
|
2009
|
+
/// For all `NSDate` metrics below, if that aspect of the task could not be completed, then
|
|
2010
|
+
/// the corresponding “EndDate” metric will be `nil`. For example, if a name lookup was
|
|
2011
|
+
/// started but the name lookup timed out, failed, or the client canceled the task before
|
|
2012
|
+
/// the name could be resolved -- then while `domainLookupStartDate` may be set,
|
|
2013
|
+
/// `domainLookupEndDate` will be `nil` along with all later metrics.
|
|
2014
|
+
|
|
2015
|
+
/// The time when the user agent started fetching the resource, whether or not the resource
|
|
2016
|
+
/// was retrieved from the server or local resources.
|
|
2017
|
+
///
|
|
2018
|
+
/// The following metrics will be set to `nil`, if a persistent connection was used or the
|
|
2019
|
+
/// resource was retrieved from local resources: `domainLookupStartDate`,
|
|
2020
|
+
/// `domainLookupEndDate`, `connectStartDate`, `connectEndDate`,
|
|
2021
|
+
/// `secureConnectionStartDate`, `secureConnectionEndDate`.
|
|
2022
|
+
@property (nullable, copy, readonly) NSDate *fetchStartDate;
|
|
2023
|
+
|
|
2024
|
+
/// The time immediately before the user agent started the name lookup for the resource.
|
|
2025
|
+
@property (nullable, copy, readonly) NSDate *domainLookupStartDate;
|
|
2026
|
+
|
|
2027
|
+
/// The time after the name lookup was completed.
|
|
2028
|
+
@property (nullable, copy, readonly) NSDate *domainLookupEndDate;
|
|
2029
|
+
|
|
2030
|
+
/// The time immediately before the user agent started establishing the connection to the server.
|
|
2031
|
+
///
|
|
2032
|
+
/// For example, this would correspond to the time immediately before the user agent started
|
|
2033
|
+
/// trying to establish the TCP connection.
|
|
2034
|
+
@property (nullable, copy, readonly) NSDate *connectStartDate;
|
|
2035
|
+
|
|
2036
|
+
/// If an encrypted connection was used, the time immediately before the user agent started
|
|
2037
|
+
/// the security handshake to secure the current connection.
|
|
2038
|
+
///
|
|
2039
|
+
/// For example, this would correspond to the time immediately before the user agent started
|
|
2040
|
+
/// the TLS handshake. If an encrypted connection was not used, this attribute is set to `nil`.
|
|
2041
|
+
@property (nullable, copy, readonly) NSDate *secureConnectionStartDate;
|
|
2042
|
+
|
|
2043
|
+
/// If an encrypted connection was used, the time immediately after the security handshake
|
|
2044
|
+
/// completed.
|
|
2045
|
+
///
|
|
2046
|
+
/// If an encrypted connection was not used, this attribute is set to `nil`.
|
|
2047
|
+
@property (nullable, copy, readonly) NSDate *secureConnectionEndDate;
|
|
2048
|
+
|
|
2049
|
+
/// The time immediately after the user agent finished establishing the connection to the
|
|
2050
|
+
/// server, including completion of security-related and other handshakes.
|
|
2051
|
+
@property (nullable, copy, readonly) NSDate *connectEndDate;
|
|
2052
|
+
|
|
2053
|
+
/// The time immediately before the user agent started requesting the source, regardless of
|
|
2054
|
+
/// whether the resource was retrieved from the server or local resources.
|
|
2055
|
+
@property (nullable, copy, readonly) NSDate *requestStartDate;
|
|
2056
|
+
|
|
2057
|
+
/// The time immediately after the user agent finished requesting the source, regardless of
|
|
2058
|
+
/// whether the resource was retrieved from the server or local resources.
|
|
2059
|
+
@property (nullable, copy, readonly) NSDate *requestEndDate;
|
|
2060
|
+
|
|
2061
|
+
/// The time immediately after the user agent received the first byte of the response from
|
|
2062
|
+
/// the server or from local resources.
|
|
2063
|
+
@property (nullable, copy, readonly) NSDate *responseStartDate;
|
|
2064
|
+
|
|
2065
|
+
/// The time immediately after the user agent received the last byte of the resource.
|
|
2066
|
+
@property (nullable, copy, readonly) NSDate *responseEndDate;
|
|
2067
|
+
|
|
2068
|
+
/// The network protocol used to fetch the resource, as identified by the ALPN Protocol ID
|
|
2069
|
+
/// Identification Sequence [RFC7301]. E.g., h3, h2, http/1.1.
|
|
2070
|
+
///
|
|
2071
|
+
/// When a proxy is configured AND a tunnel connection is established, then this attribute
|
|
2072
|
+
/// returns the value for the tunneled protocol.
|
|
2073
|
+
@property (nullable, copy, readonly) NSString *networkProtocolName;
|
|
2074
|
+
|
|
2075
|
+
/// Whether a proxy connection was used to fetch the resource.
|
|
2076
|
+
@property (assign, readonly, getter=isProxyConnection) BOOL proxyConnection;
|
|
2077
|
+
|
|
2078
|
+
/// Whether a persistent connection was used to fetch the resource.
|
|
2079
|
+
@property (assign, readonly, getter=isReusedConnection) BOOL reusedConnection;
|
|
2080
|
+
|
|
2081
|
+
/// Indicates whether the resource was loaded, pushed or retrieved from the local cache.
|
|
2082
|
+
@property (assign, readonly) NSURLSessionTaskMetricsResourceFetchType resourceFetchType;
|
|
2083
|
+
|
|
2084
|
+
/// The number of bytes transferred for request header.
|
|
2085
|
+
@property (readonly) int64_t countOfRequestHeaderBytesSent API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2086
|
+
|
|
2087
|
+
/// The number of bytes transferred for request body.
|
|
2088
|
+
///
|
|
2089
|
+
/// It includes protocol-specific framing, transfer encoding, and content encoding.
|
|
2090
|
+
@property (readonly) int64_t countOfRequestBodyBytesSent API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2091
|
+
|
|
2092
|
+
/// The size of upload body data, file, or stream.
|
|
2093
|
+
@property (readonly) int64_t countOfRequestBodyBytesBeforeEncoding API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2094
|
+
|
|
2095
|
+
/// The number of bytes transferred for response header.
|
|
2096
|
+
@property (readonly) int64_t countOfResponseHeaderBytesReceived API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2097
|
+
|
|
2098
|
+
/// The number of bytes transferred for response body.
|
|
2099
|
+
///
|
|
2100
|
+
/// It includes protocol-specific framing, transfer encoding, and content encoding.
|
|
2101
|
+
@property (readonly) int64_t countOfResponseBodyBytesReceived API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2102
|
+
|
|
2103
|
+
/// The size of data delivered to your delegate or completion handler.
|
|
2104
|
+
@property (readonly) int64_t countOfResponseBodyBytesAfterDecoding API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2105
|
+
|
|
2106
|
+
/// The IP address string of the local interface for the connection.
|
|
2107
|
+
///
|
|
2108
|
+
/// For multipath protocols, this is the local address of the initial flow.
|
|
2109
|
+
/// If a connection was not used, this attribute is set to `nil`.
|
|
2110
|
+
@property (nullable, copy, readonly) NSString *localAddress API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2111
|
+
|
|
2112
|
+
/// The port number of the local interface for the connection.
|
|
2113
|
+
///
|
|
2114
|
+
/// For multipath protocols, this is the local port of the initial flow.
|
|
2115
|
+
/// If the app didn't use the connection, this value is `nil`.
|
|
2116
|
+
@property (nullable, copy, readonly) NSNumber *localPort API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2117
|
+
|
|
2118
|
+
/// The IP address string of the remote interface for the connection.
|
|
2119
|
+
///
|
|
2120
|
+
/// For multipath protocols, this is the remote address of the initial flow.
|
|
2121
|
+
/// If a connection was not used, this attribute is set to `nil`.
|
|
2122
|
+
@property (nullable, copy, readonly) NSString *remoteAddress API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2123
|
+
|
|
2124
|
+
/// The port number of the remote interface for the connection.
|
|
2125
|
+
///
|
|
2126
|
+
/// For multipath protocols, this is the remote port of the initial flow.
|
|
2127
|
+
/// If the app didn't use the connection, this value is `nil`.
|
|
2128
|
+
@property (nullable, copy, readonly) NSNumber *remotePort API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2129
|
+
|
|
2130
|
+
/// The TLS protocol version the task negotiated with the endpoint for the connection.
|
|
2131
|
+
///
|
|
2132
|
+
/// This value is a 2-byte sequence in host byte order. See `tls_protocol_version_t`
|
|
2133
|
+
/// in `Security/SecProtocolTypes.h` for possible values. If the task didn't negotiate
|
|
2134
|
+
/// an encrypted connection, this value is `nil`.
|
|
2135
|
+
@property (nullable, copy, readonly) NSNumber *negotiatedTLSProtocolVersion API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2136
|
+
|
|
2137
|
+
/// The TLS cipher suite the task negotiated with the endpoint for the connection.
|
|
2138
|
+
///
|
|
2139
|
+
/// This value is a 2-byte sequence in host byte order. See `tls_ciphersuite_t`
|
|
2140
|
+
/// in `Security/SecProtocolTypes.h` for possible values. If the task didn't negotiate
|
|
2141
|
+
/// an encrypted connection, this value is `nil`.
|
|
2142
|
+
@property (nullable, copy, readonly) NSNumber *negotiatedTLSCipherSuite API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2143
|
+
|
|
2144
|
+
/// Whether the connection is established over a cellular interface.
|
|
2145
|
+
@property (readonly, getter=isCellular) BOOL cellular API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2146
|
+
|
|
2147
|
+
/// Whether the connection is established over an expensive interface.
|
|
2148
|
+
@property (readonly, getter=isExpensive) BOOL expensive API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2149
|
+
|
|
2150
|
+
/// Whether the connection is established over a constrained interface.
|
|
2151
|
+
@property (readonly, getter=isConstrained) BOOL constrained API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2152
|
+
|
|
2153
|
+
/// Whether a multipath protocol is successfully negotiated for the connection.
|
|
2154
|
+
@property (readonly, getter=isMultipath) BOOL multipath API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
|
|
2155
|
+
|
|
2156
|
+
/// DNS protocol used for domain resolution.
|
|
2157
|
+
@property (readonly) NSURLSessionTaskMetricsDomainResolutionProtocol domainResolutionProtocol API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
/// Creates a transaction metrics instance.
|
|
2161
|
+
///
|
|
2162
|
+
/// You should never need to create your own ``NSURLSessionTaskTransactionMetrics`` instances. The ``NSURLSession`` creates task transaction metrics as part of the ``NSURLSessionTaskMetrics`` instance that it delivers to the ``NSURLSessionTaskDelegate`` delegate.
|
|
2163
|
+
- (instancetype)init API_DEPRECATED("Not supported", macos(10.12,10.15), ios(10.0,13.0), watchos(3.0,6.0), tvos(10.0,13.0));
|
|
2164
|
+
/// Creates a new transaction metrics instance.
|
|
2165
|
+
///
|
|
2166
|
+
/// You should never need to create your own ``NSURLSessionTaskTransactionMetrics`` instances. The ``NSURLSession`` creates task transaction metrics as part of the ``NSURLSessionTaskMetrics`` instance that it delivers to the ``NSURLSessionTaskDelegate`` delegate.
|
|
2167
|
+
+ (instancetype)new API_DEPRECATED("Not supported", macos(10.12,10.15), ios(10.0,13.0), watchos(3.0,6.0), tvos(10.0,13.0));
|
|
2168
|
+
|
|
2169
|
+
@end
|
|
2170
|
+
|
|
2171
|
+
/// An object encapsulating the metrics for a session task.
|
|
2172
|
+
///
|
|
2173
|
+
/// Each ``URLSessionTaskMetrics`` object contains the ``taskInterval`` and ``redirectCount``, as well as metrics for each request-and-response transaction made during the execution of the task.
|
|
2174
|
+
NS_SWIFT_SENDABLE
|
|
2175
|
+
API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
|
|
2176
|
+
@interface NSURLSessionTaskMetrics : NSObject
|
|
2177
|
+
|
|
2178
|
+
/// An array containing the metrics collected for every request/response transaction created
|
|
2179
|
+
/// during the task execution.
|
|
2180
|
+
@property (copy, readonly) NSArray<NSURLSessionTaskTransactionMetrics *> *transactionMetrics;
|
|
2181
|
+
|
|
2182
|
+
/// Interval from the task creation time to the task completion time.
|
|
2183
|
+
///
|
|
2184
|
+
/// Task creation time is the time when the task was instantiated. Task completion time is
|
|
2185
|
+
/// the time when the task is about to change its internal state to completed.
|
|
2186
|
+
@property (copy, readonly) NSDateInterval *taskInterval;
|
|
2187
|
+
|
|
2188
|
+
/// The number of redirects that were recorded.
|
|
2189
|
+
@property (assign, readonly) NSUInteger redirectCount;
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
/// Creates a task metrics instance.
|
|
2193
|
+
///
|
|
2194
|
+
/// You should never need to create your own ``NSURLSessionTaskMetrics`` instances. If you are interested in task metrics, implement the ``NSURLSessionTaskDelegate`` method `URLSession:task:didFinishCollectingMetrics:`. The ``NSURLSession`` will collect task metrics for you and deliver them to this method.
|
|
2195
|
+
- (instancetype)init API_DEPRECATED("Not supported", macos(10.12,10.15), ios(10.0,13.0), watchos(3.0,6.0), tvos(10.0,13.0));
|
|
2196
|
+
/// Creates a task metrics instance.
|
|
2197
|
+
///
|
|
2198
|
+
/// You should never need to create your own ``NSURLSessionTaskMetrics`` instances.
|
|
2199
|
+
+ (instancetype)new API_DEPRECATED("Not supported", macos(10.12,10.15), ios(10.0,13.0), watchos(3.0,6.0), tvos(10.0,13.0));
|
|
2200
|
+
|
|
2201
|
+
@end
|
|
2202
|
+
|
|
2203
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|