peachsim 0.1.1684 → 0.1.1700
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/cli/bridge-flow-runner.ts +61 -39
- package/cli/commands/agent-wrapper.ts +21 -10
- package/cli/commands/control.ts +27 -7
- package/cli/commands/coverage-swift.ts +72 -5
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/detect.ts +17 -4
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/maestro-compare.ts +25 -99
- package/cli/commands/screenshot.ts +12 -0
- package/cli/help-core.ts +3 -4
- package/cli/maestro-compare.ts +172 -4
- package/cli/outbound-endpoints.ts +2 -10
- package/detox/index.ts +15 -0
- package/detox/launch-permissions.ts +169 -0
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +2 -2
- package/dist-lib/attached-projects.cjs +2 -2
- package/dist-lib/auth/shared-session.cjs +2 -2
- package/dist-lib/backend-origin.cjs +2 -2
- package/dist-lib/beta.cjs +2 -2
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +2 -2
- package/dist-lib/bridge-contract-input.cjs +2 -2
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -2
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +6729 -3591
- package/dist-lib/capture-contract.cjs +2 -2
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -2
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +2 -2
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +104 -3
- package/dist-lib/dev-bundle-resolution.cjs +208 -44
- package/dist-lib/expo-swift-bundle.cjs +3475 -2137
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +2 -2
- package/dist-lib/host/bridge-host.cjs +8970 -3652
- package/dist-lib/host/fetch-proxy-handler.cjs +332 -40
- package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +2 -2
- package/dist-lib/host/websocket-proxy.cjs +2 -2
- package/dist-lib/index.cjs +469 -143
- package/dist-lib/jump-to-source-babel.cjs +2 -2
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +2 -2
- package/dist-lib/menu.cjs +2 -2
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +2 -2
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +2 -2
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +465 -139
- package/dist-lib/native-app-identity-project.cjs +209 -86
- package/dist-lib/native-app-identity-project.mjs +251 -116
- package/dist-lib/native-app-identity.cjs +2 -2
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +2 -2
- package/dist-lib/public-brand.cjs +2 -2
- package/dist-lib/public-origins-lib-esm.json +27 -23
- package/dist-lib/public-origins-lib.json +221 -88
- package/dist-lib/react-native-host-modules.cjs +2 -2
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
- package/dist-lib/sdk.cjs +3 -3
- package/dist-lib/sdk.mjs +2 -2
- package/dist-lib/skills.cjs +20997 -16596
- package/dist-lib/swift-compile.cjs +3075 -459
- package/dist-lib/swift-compile.mjs +3028 -415
- package/dist-lib/swift-package.cjs +131 -69
- package/dist-lib/swift-package.mjs +126 -68
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +31 -4
- package/dist-lib/swift.cjs +2 -2
- package/dist-lib/vite-swift.cjs +5049 -1704
- package/dist-lib/vite.cjs +261 -58
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -220
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +98 -3
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
- package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
- package/sdk/ios/usr/include/complex.h +167 -0
- package/sdk/ios/usr/include/copyfile.h +143 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
- package/sdk/ios/usr/include/malloc/_platform.h +80 -0
- package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
- package/sdk/ios/usr/include/malloc/malloc.h +768 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/os/availability.h +168 -6
- package/sdk/ios/usr/include/os/base.h +351 -0
- package/sdk/ios/usr/include/os/clock.h +18 -0
- package/sdk/ios/usr/include/os/lock.h +232 -10
- package/sdk/ios/usr/include/os/log.h +521 -38
- package/sdk/ios/usr/include/os/object.h +320 -3
- package/sdk/ios/usr/include/os/trace.h +492 -0
- package/sdk/ios/usr/include/os/trace_base.h +167 -0
- package/sdk/ios/usr/include/os/workgroup.h +37 -0
- package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
- package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
- package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
- package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
- package/sdk/ios/usr/include/sys/cdefs.h +38 -1
- package/sdk/ios/wasm/include/unistd.h +3 -0
- package/skills/contrast/SKILL.md +3 -0
- package/src/codex-client.ts +11 -6
- package/src/dev-bundle-resolution.ts +124 -48
- package/src/expo-native-workspace.ts +176 -0
- package/src/expo-swift-host.ts +161 -26
- package/src/expo-swift-ready.ts +14 -28
- package/src/expoSwiftContract.ts +4 -1
- package/src/generated/swift-c-predefines.json +2044 -0
- package/src/host/bridge-host.ts +5 -0
- package/src/installed-package-versions.ts +14 -1
- package/src/metro-project-root.ts +44 -33
- package/src/native-app-identity-project.ts +1 -0
- package/src/nitro-adapter.lock.json +916 -10
- package/src/nitro-adapter.ts +33 -24
- package/src/nitro-bundle.ts +108 -21
- package/src/nitro-compile.ts +36 -5
- package/src/nitro-source.ts +13 -3
- package/src/nitroAdapterContract.ts +100 -20
- package/src/nitroContract.ts +18 -2
- package/src/node-http-fetch.ts +116 -0
- package/src/packageVersionsContract.ts +46 -0
- package/src/serverDiscoveryContract.ts +1 -0
- package/src/settingsContract.ts +0 -30
- package/src/swift-binary-modules.ts +20 -5
- package/src/swift-compile.ts +598 -81
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/xcode-assets.ts +66 -5
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-host.ts +347 -60
- package/src/swift-objc-compile.ts +52 -10
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-platform.ts +2 -2
- package/src/swift-objc-standin.ts +53 -13
- package/src/swift-package-manifest.ts +151 -28
- package/src/swift-package.ts +158 -75
- package/src/swift-packages.ts +141 -44
- package/src/swift-source-file.ts +10 -15
- package/src/swift-source-pods.ts +126 -41
- package/src/swift-standin-digest.ts +77 -0
- package/src/swift-standin-emit.ts +40 -4
- package/src/swift-standins.ts +154 -31
- package/src/swift-submit.ts +5 -0
- package/src/swift-toolchain.ts +38 -0
- package/src/swiftContract.ts +168 -75
- package/src/target-matcher.ts +15 -2
- package/src/vite-plugin.ts +0 -10
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +215 -100
- package/src/settings-flags.ts +0 -107
package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLLocationManagerDelegate.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2008-2010 Apple Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <Availability.h>
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
#import <CoreLocation/CLLocationManager.h>
|
|
12
|
+
#import <CoreLocation/CLRegion.h>
|
|
13
|
+
#import <CoreLocation/CLVisit.h>
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
@class CLLocation;
|
|
18
|
+
@class CLHeading;
|
|
19
|
+
@class CLBeacon;
|
|
20
|
+
@class CLVisit;
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* CLLocationManagerDelegate
|
|
24
|
+
*
|
|
25
|
+
* Discussion:
|
|
26
|
+
* Delegate for CLLocationManager.
|
|
27
|
+
*/
|
|
28
|
+
@protocol CLLocationManagerDelegate<NSObject>
|
|
29
|
+
|
|
30
|
+
@optional
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* locationManager:didUpdateToLocation:fromLocation:
|
|
34
|
+
*
|
|
35
|
+
* Discussion:
|
|
36
|
+
* Invoked when a new location is available. oldLocation may be nil if there is no previous location
|
|
37
|
+
* available.
|
|
38
|
+
*
|
|
39
|
+
* This method is deprecated. If locationManager:didUpdateLocations: is
|
|
40
|
+
* implemented, this method will not be called.
|
|
41
|
+
*/
|
|
42
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
43
|
+
didUpdateToLocation:(CLLocation *)newLocation
|
|
44
|
+
fromLocation:(CLLocation *)oldLocation API_AVAILABLE(macos(10.6)) API_DEPRECATED("Implement -locationManager:didUpdateLocations: instead", ios(2.0, 6.0)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
* locationManager:didUpdateLocations:
|
|
48
|
+
*
|
|
49
|
+
* Discussion:
|
|
50
|
+
* Invoked when new locations are available. Required for delivery of
|
|
51
|
+
* deferred locations. If implemented, updates will
|
|
52
|
+
* not be delivered to locationManager:didUpdateToLocation:fromLocation:
|
|
53
|
+
*
|
|
54
|
+
* locations is an array of CLLocation objects in chronological order.
|
|
55
|
+
*/
|
|
56
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
57
|
+
didUpdateLocations:(NSArray<CLLocation *> *)locations API_AVAILABLE(ios(6.0), macos(10.9));
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* locationManager:didUpdateHeading:
|
|
61
|
+
*
|
|
62
|
+
* Discussion:
|
|
63
|
+
* Invoked when a new heading is available.
|
|
64
|
+
*/
|
|
65
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
66
|
+
didUpdateHeading:(CLHeading *)newHeading API_AVAILABLE(ios(3.0), macos(10.15), watchos(2.0)) API_UNAVAILABLE(tvos, visionos);
|
|
67
|
+
|
|
68
|
+
/*
|
|
69
|
+
* locationManagerShouldDisplayHeadingCalibration:
|
|
70
|
+
*
|
|
71
|
+
* Discussion:
|
|
72
|
+
* Invoked when a new heading is available. Return YES to display heading calibration info. The display
|
|
73
|
+
* will remain until heading is calibrated, unless dismissed early via dismissHeadingCalibrationDisplay.
|
|
74
|
+
*/
|
|
75
|
+
- (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager *)manager API_AVAILABLE(ios(3.0), macos(10.15), watchos(2.0)) API_UNAVAILABLE(tvos, visionos);
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
* locationManager:didDetermineState:forRegion:
|
|
79
|
+
*
|
|
80
|
+
* Discussion:
|
|
81
|
+
* Invoked when there's a state transition for a monitored region or in response to a request for state via a
|
|
82
|
+
* a call to requestStateForRegion:.
|
|
83
|
+
*/
|
|
84
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
85
|
+
didDetermineState:(CLRegionState)state forRegion:(CLRegion *)region API_AVAILABLE(ios(7.0), macos(10.10)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
86
|
+
|
|
87
|
+
/*
|
|
88
|
+
* locationManager:didRangeBeacons:inRegion:
|
|
89
|
+
*
|
|
90
|
+
* Discussion:
|
|
91
|
+
* Invoked when a new set of beacons are available in the specified region.
|
|
92
|
+
* beacons is an array of CLBeacon objects.
|
|
93
|
+
* If beacons is empty, it may be assumed no beacons that match the specified region are nearby.
|
|
94
|
+
* Similarly if a specific beacon no longer appears in beacons, it may be assumed the beacon is no longer received
|
|
95
|
+
* by the device.
|
|
96
|
+
*/
|
|
97
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
98
|
+
didRangeBeacons:(NSArray<CLBeacon *> *)beacons
|
|
99
|
+
inRegion:(CLBeaconRegion *)region API_DEPRECATED_WITH_REPLACEMENT("Use locationManager:didRangeBeacons:satisfyingConstraint:", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
100
|
+
|
|
101
|
+
/*
|
|
102
|
+
* locationManager:rangingBeaconsDidFailForRegion:withError:
|
|
103
|
+
*
|
|
104
|
+
* Discussion:
|
|
105
|
+
* Invoked when an error has occurred ranging beacons in a region. Error types are defined in "CLError.h".
|
|
106
|
+
*/
|
|
107
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
108
|
+
rangingBeaconsDidFailForRegion:(CLBeaconRegion *)region
|
|
109
|
+
withError:(NSError *)error API_DEPRECATED_WITH_REPLACEMENT("Use locationManager:didFailRangingBeaconsForConstraint:error:", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
110
|
+
|
|
111
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
112
|
+
didRangeBeacons:(NSArray<CLBeacon *> *)beacons
|
|
113
|
+
satisfyingConstraint:(CLBeaconIdentityConstraint *)beaconConstraint API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
114
|
+
|
|
115
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
116
|
+
didFailRangingBeaconsForConstraint:(CLBeaconIdentityConstraint *)beaconConstraint
|
|
117
|
+
error:(NSError *)error API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
118
|
+
|
|
119
|
+
/*
|
|
120
|
+
* locationManager:didEnterRegion:
|
|
121
|
+
*
|
|
122
|
+
* Discussion:
|
|
123
|
+
* Invoked when the user enters a monitored region. This callback will be invoked for every allocated
|
|
124
|
+
* CLLocationManager instance with a non-nil delegate that implements this method.
|
|
125
|
+
*/
|
|
126
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
127
|
+
didEnterRegion:(CLRegion *)region API_AVAILABLE(ios(4.0), macos(10.8)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
128
|
+
|
|
129
|
+
/*
|
|
130
|
+
* locationManager:didExitRegion:
|
|
131
|
+
*
|
|
132
|
+
* Discussion:
|
|
133
|
+
* Invoked when the user exits a monitored region. This callback will be invoked for every allocated
|
|
134
|
+
* CLLocationManager instance with a non-nil delegate that implements this method.
|
|
135
|
+
*/
|
|
136
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
137
|
+
didExitRegion:(CLRegion *)region API_AVAILABLE(ios(4.0), macos(10.8)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
* locationManager:didFailWithError:
|
|
141
|
+
*
|
|
142
|
+
* Discussion:
|
|
143
|
+
* Invoked when an error has occurred. Error types are defined in "CLError.h".
|
|
144
|
+
*/
|
|
145
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
146
|
+
didFailWithError:(NSError *)error;
|
|
147
|
+
|
|
148
|
+
/*
|
|
149
|
+
* locationManager:monitoringDidFailForRegion:withError:
|
|
150
|
+
*
|
|
151
|
+
* Discussion:
|
|
152
|
+
* Invoked when a region monitoring error has occurred. Error types are defined in "CLError.h".
|
|
153
|
+
*/
|
|
154
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
155
|
+
monitoringDidFailForRegion:(nullable CLRegion *)region
|
|
156
|
+
withError:(NSError *)error API_AVAILABLE(ios(4.0), macos(10.8)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
157
|
+
|
|
158
|
+
/*
|
|
159
|
+
* locationManager:didChangeAuthorizationStatus:
|
|
160
|
+
*
|
|
161
|
+
* Discussion:
|
|
162
|
+
* Invoked when the authorization status changes for this application.
|
|
163
|
+
*/
|
|
164
|
+
- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status API_DEPRECATED_WITH_REPLACEMENT("-locationManagerDidChangeAuthorization:", ios(4.2, 14.0), macos(10.7, 11.0), watchos(1.0, 7.0), tvos(9.0, 14.0)) API_UNAVAILABLE(visionos);
|
|
165
|
+
|
|
166
|
+
/*
|
|
167
|
+
* locationManagerDidChangeAuthorization:
|
|
168
|
+
*
|
|
169
|
+
* Discussion:
|
|
170
|
+
* Invoked when either the authorizationStatus or
|
|
171
|
+
* accuracyAuthorization properties change
|
|
172
|
+
*/
|
|
173
|
+
- (void)locationManagerDidChangeAuthorization:(CLLocationManager *)manager API_AVAILABLE(ios(14.0), macos(11.0), watchos(7.0), tvos(14.0));
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* locationManager:didStartMonitoringForRegion:
|
|
177
|
+
*
|
|
178
|
+
* Discussion:
|
|
179
|
+
* Invoked when a monitoring for a region started successfully.
|
|
180
|
+
*/
|
|
181
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
182
|
+
didStartMonitoringForRegion:(CLRegion *)region API_AVAILABLE(ios(5.0), macos(10.8)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
183
|
+
|
|
184
|
+
/*
|
|
185
|
+
* Discussion:
|
|
186
|
+
* Invoked when location updates are automatically paused.
|
|
187
|
+
*/
|
|
188
|
+
- (void)locationManagerDidPauseLocationUpdates:(CLLocationManager *)manager API_AVAILABLE(ios(6.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos);
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
* Discussion:
|
|
192
|
+
* Invoked when location updates are automatically resumed.
|
|
193
|
+
*
|
|
194
|
+
* In the event that your application is terminated while suspended, you will
|
|
195
|
+
* not receive this notification.
|
|
196
|
+
*/
|
|
197
|
+
- (void)locationManagerDidResumeLocationUpdates:(CLLocationManager *)manager API_AVAILABLE(ios(6.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos);
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
* locationManager:didFinishDeferredUpdatesWithError:
|
|
201
|
+
*
|
|
202
|
+
* Discussion:
|
|
203
|
+
* Invoked when deferred updates will no longer be delivered. Stopping
|
|
204
|
+
* location, disallowing deferred updates, and meeting a specified criterion
|
|
205
|
+
* are all possible reasons for finishing deferred updates.
|
|
206
|
+
*
|
|
207
|
+
* An error will be returned if deferred updates end before the specified
|
|
208
|
+
* criteria are met (see CLError), otherwise error will be nil.
|
|
209
|
+
*/
|
|
210
|
+
- (void)locationManager:(CLLocationManager *)manager
|
|
211
|
+
didFinishDeferredUpdatesWithError:(nullable NSError *)error API_AVAILABLE(ios(6.0), macos(10.9)) API_UNAVAILABLE(watchos, tvos);
|
|
212
|
+
|
|
213
|
+
/*
|
|
214
|
+
* locationManager:didVisit:
|
|
215
|
+
*
|
|
216
|
+
* Discussion:
|
|
217
|
+
* Invoked when the CLLocationManager determines that the device has visited
|
|
218
|
+
* a location, if visit monitoring is currently started (possibly from a
|
|
219
|
+
* prior launch).
|
|
220
|
+
*/
|
|
221
|
+
- (void)locationManager:(CLLocationManager *)manager didVisit:(CLVisit *)visit API_AVAILABLE(ios(8.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
222
|
+
|
|
223
|
+
@end
|
|
224
|
+
|
|
225
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLLocationPushServiceError.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2021 Apple Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CLAvailability.h>
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* CLLocationPushServiceErrorDomain
|
|
14
|
+
*
|
|
15
|
+
* Discussion:
|
|
16
|
+
* Error returned as the domain to NSError from -[CLLocationManager startMonitoringLocationPushesWithCompletion:].
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
CL_EXTERN NSErrorDomain const CLLocationPushServiceErrorDomain API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos, tvos, macos, macCatalyst, visionos);
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* CLLocationPushServiceError
|
|
23
|
+
*
|
|
24
|
+
* Discussion:
|
|
25
|
+
* Error returned as code to NSError from -[CLLocationManager startMonitoringLocationPushesWithCompletion:].
|
|
26
|
+
*/
|
|
27
|
+
typedef NS_ERROR_ENUM(CLLocationPushServiceErrorDomain, CLLocationPushServiceError) {
|
|
28
|
+
CLLocationPushServiceErrorUnknown = 0,
|
|
29
|
+
CLLocationPushServiceErrorMissingPushExtension = 1, // App is lacking a Location Push Service Extension
|
|
30
|
+
CLLocationPushServiceErrorMissingPushServerEnvironment = 2, // App is lacking APNS environment
|
|
31
|
+
CLLocationPushServiceErrorMissingEntitlement = 3, // App is lacking the com.apple.developer.location.push entitlement
|
|
32
|
+
CLLocationPushServiceErrorUnsupportedPlatform = 4, // App is running on an unsupported platform
|
|
33
|
+
} API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos, tvos, macos, macCatalyst, visionos);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLLocationPushServiceExtension.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright © 2021 Apple Inc. All rights reserved.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CoreLocation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos, tvos, macos, macCatalyst) API_UNAVAILABLE(visionos)
|
|
14
|
+
@protocol CLLocationPushServiceExtension <NSObject>
|
|
15
|
+
|
|
16
|
+
@required
|
|
17
|
+
|
|
18
|
+
// Call the completion handler once the location push has been handled.
|
|
19
|
+
- (void)didReceiveLocationPushPayload:(NSDictionary <NSString *, id> *)payload completion:(void (^)(void))completion;
|
|
20
|
+
|
|
21
|
+
@optional
|
|
22
|
+
|
|
23
|
+
// Called just before this extension is terminated by the system.
|
|
24
|
+
- (void)serviceExtensionWillTerminate;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CLLocationUpdater.h
|
|
3
|
+
// CoreLocation
|
|
4
|
+
//
|
|
5
|
+
// Created by Cindy Clarissa on 11/29/22.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CLAvailability.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
@class CLLocation;
|
|
13
|
+
struct CLLocationCoordinate2D;
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* CLLiveUpdateConfiguration
|
|
17
|
+
*
|
|
18
|
+
* Discussion:
|
|
19
|
+
* Specifies the types of locations being generated by
|
|
20
|
+
* -[CLLocationUpdater liveUpdaterWithConfiguration:queue:handler:] or
|
|
21
|
+
* -[CLLocationUpdater liveUpdaterWithQueue:handler:]
|
|
22
|
+
*/
|
|
23
|
+
API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
|
|
24
|
+
typedef NS_ENUM(NSInteger, CLLiveUpdateConfiguration) {
|
|
25
|
+
CLLiveUpdateConfigurationDefault = 0, // Default configuration
|
|
26
|
+
CLLiveUpdateConfigurationAutomotiveNavigation, // Configuration tuned for automotive navigation use cases
|
|
27
|
+
CLLiveUpdateConfigurationOtherNavigation, // Configuration tuned for other navigation use cases
|
|
28
|
+
CLLiveUpdateConfigurationFitness, // Configuration tuned for fitness use cases
|
|
29
|
+
CLLiveUpdateConfigurationAirborne, // Configuration tuned for airborne use cases
|
|
30
|
+
CLLiveUpdateConfigurationMaritime API_AVAILABLE(ios(27.0), macos(27.0), watchos(27.0), tvos(27.0), visionos(27.0)), // Configuration tuned for vehicular maritime use cases
|
|
31
|
+
} NS_REFINED_FOR_SWIFT;
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* CLUpdate
|
|
35
|
+
*
|
|
36
|
+
* Discussion:
|
|
37
|
+
* Contains a possible location and related metadata. Delivered by
|
|
38
|
+
* CLLocationUpdater to its handler block.
|
|
39
|
+
*/
|
|
40
|
+
CL_EXTERN
|
|
41
|
+
API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0)) NS_REFINED_FOR_SWIFT
|
|
42
|
+
@interface CLUpdate : NSObject
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
* authorizationDenied
|
|
46
|
+
*
|
|
47
|
+
* Discussion:
|
|
48
|
+
* True if updates will be suspended while the app has been denied
|
|
49
|
+
* location authorization.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
@property (nonatomic, readonly) BOOL authorizationDenied API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* authorizationDeniedGlobally
|
|
56
|
+
*
|
|
57
|
+
* Discussion:
|
|
58
|
+
* True if updates will be suspended while the user has disabled Location
|
|
59
|
+
* Services system-wide.
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
@property (nonatomic, readonly) BOOL authorizationDeniedGlobally API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* authorizationRestricted
|
|
66
|
+
*
|
|
67
|
+
* Discussion:
|
|
68
|
+
* True if updates will be suspended while the app lacks authorization,
|
|
69
|
+
* and authorization changes are prevented by parental restrictions,
|
|
70
|
+
* MDM configuration, or other factors.
|
|
71
|
+
*/
|
|
72
|
+
@property (nonatomic, readonly) BOOL authorizationRestricted API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
* isStationary
|
|
76
|
+
*
|
|
77
|
+
* Discussion:
|
|
78
|
+
* Deprecated. See -stationary.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
@property (readonly) BOOL isStationary API_DEPRECATED_WITH_REPLACEMENT("-stationary", ios(17.0, 17.0), macos(14.0, 14.0), tvos(17.0, 17.0));
|
|
82
|
+
|
|
83
|
+
/*
|
|
84
|
+
* stationary
|
|
85
|
+
*
|
|
86
|
+
* Discussion:
|
|
87
|
+
* Updates may stop flowing temporarily for many reasons such as
|
|
88
|
+
* the app is no longer authorized for locations or if its
|
|
89
|
+
* location becomes unknown. If CoreLocation stops
|
|
90
|
+
* delivering updates because the device is stationary, then
|
|
91
|
+
* stationary will be set to YES. Otherwise it will be NO.
|
|
92
|
+
*
|
|
93
|
+
* If stationary is YES, then updates may be suspended until
|
|
94
|
+
* the user next moves, or their location becomes unknown.
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
@property (readonly) BOOL stationary API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* insufficientlyInUse
|
|
101
|
+
*
|
|
102
|
+
* Discussion:
|
|
103
|
+
* True if updates will be suspended while the app is not sufficiently
|
|
104
|
+
* in-use.
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
@property (nonatomic, readonly) BOOL insufficientlyInUse API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
108
|
+
|
|
109
|
+
/*
|
|
110
|
+
* locationUnavailable
|
|
111
|
+
*
|
|
112
|
+
* Discussion:
|
|
113
|
+
* True if updates will be suspended while the device's location can no
|
|
114
|
+
* longer be determined.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
@property (nonatomic, readonly) BOOL locationUnavailable API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
118
|
+
|
|
119
|
+
/*
|
|
120
|
+
* accuracyLimited
|
|
121
|
+
*
|
|
122
|
+
* Discussion:
|
|
123
|
+
* True if further updates will be suspended for some time while the app is
|
|
124
|
+
* subject to accuracy limitation.
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
@property (nonatomic, readonly) BOOL accuracyLimited API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), macos(15.0));
|
|
128
|
+
|
|
129
|
+
/*
|
|
130
|
+
* serviceSessionRequired
|
|
131
|
+
*
|
|
132
|
+
* Discussion:
|
|
133
|
+
* True if LocationServices are disabled because the app has adopted CLRequireExplicitServiceSession
|
|
134
|
+
* info.plist key but no CLServiceSession requiring authorization is outstanding yet.
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
@property (nonatomic, readonly) BOOL serviceSessionRequired API_AVAILABLE(macos(15.0), ios(18.0)) API_UNAVAILABLE(watchos, tvos);
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
* authorizationRequestInProgress
|
|
141
|
+
*
|
|
142
|
+
* Discussion:
|
|
143
|
+
* True if the system is requesting authorization from the user on behalf of the app, but no response has been received yet.
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
@property (nonatomic, readonly) BOOL authorizationRequestInProgress API_AVAILABLE(macos(15.0), ios(18.0)) API_UNAVAILABLE(watchos, tvos);
|
|
147
|
+
|
|
148
|
+
/*
|
|
149
|
+
* location
|
|
150
|
+
*
|
|
151
|
+
* Discussion:
|
|
152
|
+
* Return the user's location if available, otherwise returns nil.
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
@property (nonatomic, readonly) CLLocation * _Nullable location API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0), visionos(1.0));
|
|
156
|
+
|
|
157
|
+
@end
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
CL_EXTERN
|
|
161
|
+
API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0)) NS_REFINED_FOR_SWIFT
|
|
162
|
+
@interface CLLocationUpdater : NSObject
|
|
163
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
164
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
165
|
+
|
|
166
|
+
/*
|
|
167
|
+
* liveUpdaterWithQueue:handler:
|
|
168
|
+
*
|
|
169
|
+
* Discussion:
|
|
170
|
+
* Returns a new CLLocationUpdater with the given queue and handler,
|
|
171
|
+
* using the default live update configuration.
|
|
172
|
+
*
|
|
173
|
+
* queue: Specifies the queue to which the handler is submitted with each
|
|
174
|
+
* available update.
|
|
175
|
+
* handler: Specifies the block that will be invoked with each update.
|
|
176
|
+
*
|
|
177
|
+
* CoreLocation will ensure the app has a few seconds of runtime to process
|
|
178
|
+
* each location update it is authorized to receive. If the app crashes,
|
|
179
|
+
* or exits for any reason while updates are flowing,
|
|
180
|
+
* it will be launched for the next update, which it may receive by
|
|
181
|
+
* calling this method again to express resumed interest.
|
|
182
|
+
* If this method is not called again, or the resulting updater
|
|
183
|
+
* is not resumed again, then CoreLocation will automatically stop the flow
|
|
184
|
+
* of updates.
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
+ (nullable instancetype)liveUpdaterWithQueue:(dispatch_queue_t)queue
|
|
188
|
+
handler:(void(^)(CLUpdate *_Nullable update))handler API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0), visionos(1.0)) NS_REFINED_FOR_SWIFT;
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
* liveUpdaterWithConfiguration:queue:handler:
|
|
192
|
+
*
|
|
193
|
+
* Discussion:
|
|
194
|
+
* Returns a new CLLocationUpdater with the given a CLLiveUpdateConfiguration,
|
|
195
|
+
* queue and handler.
|
|
196
|
+
*
|
|
197
|
+
* configuration: Specifies the live update configuration which should
|
|
198
|
+
* be used.
|
|
199
|
+
* queue: Specifies the queue to which the handler is submitted with each
|
|
200
|
+
* available update.
|
|
201
|
+
* handler: Specifies the block that will be invoked with each update.
|
|
202
|
+
*
|
|
203
|
+
* CoreLocation will ensure the app has a few seconds of runtime to process
|
|
204
|
+
* each location update it is authorized to receive. If the app crashes,
|
|
205
|
+
* crashes, or exits for any reason while updates are flowing,
|
|
206
|
+
* it will be launched for the next update, which it may receive by
|
|
207
|
+
* calling this method again to express resumed interest.
|
|
208
|
+
* If this method is not called again, or the resulting updater
|
|
209
|
+
* is not resumed again, then CoreLocation will automatically stop the flow
|
|
210
|
+
* of updates.
|
|
211
|
+
*
|
|
212
|
+
*/
|
|
213
|
+
+ (nullable instancetype)liveUpdaterWithConfiguration:(CLLiveUpdateConfiguration)configuration
|
|
214
|
+
queue:(dispatch_queue_t)queue
|
|
215
|
+
handler:(void(^)(CLUpdate * _Nullable update))handler API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0), visionos(1.0)) NS_REFINED_FOR_SWIFT;
|
|
216
|
+
|
|
217
|
+
/*
|
|
218
|
+
* resume
|
|
219
|
+
*
|
|
220
|
+
* Discussion:
|
|
221
|
+
* Start delivery of Updates to the handler, or resume from where -pause
|
|
222
|
+
* was called. -resume must be called to start the flow of updates when
|
|
223
|
+
* a CLLocationUpdater is first obtained.
|
|
224
|
+
*/
|
|
225
|
+
- (void)resume API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0), tvos(17.0), visionos(1.0));
|
|
226
|
+
|
|
227
|
+
/*
|
|
228
|
+
* pause
|
|
229
|
+
*
|
|
230
|
+
* Discussion:
|
|
231
|
+
* Pause delivery of Updates to the handler, if they are started. If
|
|
232
|
+
* invoked from the configured queue, guarantees no further Update until
|
|
233
|
+
* -resume is called again. -resume can be used to restart location
|
|
234
|
+
* updates where they were left off.
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
237
|
+
- (void)pause API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0), visionos(1.0));
|
|
238
|
+
|
|
239
|
+
/*
|
|
240
|
+
* invalidate
|
|
241
|
+
*
|
|
242
|
+
* Discussion:
|
|
243
|
+
* Invalidate CLLocationUpdater instance. Any further message to CLLocationUpdater
|
|
244
|
+
* instance after invalidation results in no-op.
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
- (void)invalidate API_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), visionos(1.0));
|
|
248
|
+
|
|
249
|
+
@end
|
|
250
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CLMonitor.h
|
|
3
|
+
// CoreLocation
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2021 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef CLMonitor_h
|
|
9
|
+
#define CLMonitor_h
|
|
10
|
+
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
#import <CoreLocation/CLAvailability.h>
|
|
13
|
+
#import <CoreLocation/CLCondition.h>
|
|
14
|
+
#import <CoreLocation/CLMonitoringRecord.h>
|
|
15
|
+
#import <CoreLocation/CLMonitorConfiguration.h>
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* `CLMonitor` is a name scoped instance which monitors all the conditions
|
|
22
|
+
* added to it
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
NS_REFINED_FOR_SWIFT NS_SWIFT_SENDABLE
|
|
26
|
+
CL_EXTERN
|
|
27
|
+
API_AVAILABLE(macos(14.0), ios(17.0)) API_UNAVAILABLE(watchos, tvos, visionos)
|
|
28
|
+
@interface CLMonitor : NSObject
|
|
29
|
+
|
|
30
|
+
/* requestMonitorWithConfiguration:completion:
|
|
31
|
+
* Discussion:
|
|
32
|
+
* Creates or opens, a `CLMonitor` instance with the given name.
|
|
33
|
+
* The completion handler will be called with the instance of `CLMonitor`
|
|
34
|
+
* on the queue that was set in the configuration instance.
|
|
35
|
+
*
|
|
36
|
+
* Conditions can be added for monitoring or removed from monitoring by
|
|
37
|
+
* this instance of `CLMonitor`. When an event occurs, the passed in block
|
|
38
|
+
* would be called on the specified queue. The callback handler is invoked
|
|
39
|
+
* with this instance of `CLMonitor` and an instance of `CLMonitoringEvent`
|
|
40
|
+
* containing the identifier under which the condition is monitored,
|
|
41
|
+
* an optional instance of `CLCondition` containing specifics, the new
|
|
42
|
+
* state, and the timestamp of the event.
|
|
43
|
+
*
|
|
44
|
+
* All interaction directly with the returned `CLMonitor` must occur on
|
|
45
|
+
* the specified queue. Failing to do so will result in undefined behavior.
|
|
46
|
+
*
|
|
47
|
+
* Conditions added to an instance of `CLMonitor` will persist until
|
|
48
|
+
* removed from monitoring. However, CoreLocation will stop monitoring
|
|
49
|
+
* conditions if an event is pending for them, but no `CLMonitor` has been
|
|
50
|
+
* configured to receive it.
|
|
51
|
+
*
|
|
52
|
+
* The conditions are stored in an opaque file at
|
|
53
|
+
* ~/Library/CoreLocation/BundleId (or Process name)/`name`.monitor.
|
|
54
|
+
* Note that for containerized Apps this will be inside the Data container.
|
|
55
|
+
* Apps need to observe when protected data becomes available using
|
|
56
|
+
* `UIApplicationProtectedDataDidBecomeAvailable` before creating a
|
|
57
|
+
* `CLMonitor` instance. Persistence of Conditions enables an app to query
|
|
58
|
+
* efficiently for conditions currently being monitored and the last
|
|
59
|
+
* event delivered for each.
|
|
60
|
+
*
|
|
61
|
+
* The app can choose to initialize the monitoring state for a condition.
|
|
62
|
+
* By default, it is set to `CLMonitoringStateUnknown`.
|
|
63
|
+
*
|
|
64
|
+
* - Note: Only one instance of `CLMonitor` with a given name may be
|
|
65
|
+
* opened at a time. Attempting to open another instance with the
|
|
66
|
+
* same name will return `false`.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
+ (void)requestMonitorWithConfiguration:(CLMonitorConfiguration *)config
|
|
70
|
+
completion:(void(^)(CLMonitor *monitor))completionHandler
|
|
71
|
+
NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC(2);
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* name
|
|
75
|
+
*
|
|
76
|
+
* Discussion:
|
|
77
|
+
* Name associated with the `CLMonitor` instance.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
@property (nonatomic, readonly) NSString *name;
|
|
81
|
+
|
|
82
|
+
/*
|
|
83
|
+
* monitoredIdentifiers
|
|
84
|
+
*
|
|
85
|
+
* Discussion:
|
|
86
|
+
* Array containing all the identifiers with each identifying a condition
|
|
87
|
+
* that is monitored.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
@property (nonatomic, readonly) NSArray<NSString *> *monitoredIdentifiers;
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
* addConditionForMonitoring:identifier:
|
|
94
|
+
*
|
|
95
|
+
* Discussion:
|
|
96
|
+
* Adds `condition` to be monitored under `identifier`.
|
|
97
|
+
* It initializes the monitoring state to `CLMonitoringStateUnknown`.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
- (void)addConditionForMonitoring:(CLCondition *)condition
|
|
101
|
+
identifier:(NSString *)identifier;
|
|
102
|
+
|
|
103
|
+
/*
|
|
104
|
+
* addConditionForMonitoring:identifier:assumedState
|
|
105
|
+
*
|
|
106
|
+
* Discussion:
|
|
107
|
+
* Adds `condition` to be monitored under `identifier`.
|
|
108
|
+
* It initializes the monitoring state with the given value.
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
- (void)addConditionForMonitoring:(CLCondition *)condition
|
|
112
|
+
identifier:(NSString *)identifier
|
|
113
|
+
assumedState:(CLMonitoringState)state;
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
* removeConditionFromMonitoringWithIdentifier:
|
|
117
|
+
*
|
|
118
|
+
* Discussion:
|
|
119
|
+
* Removes the monitoring record with given `identifier` from monitoring
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
- (void)removeConditionFromMonitoringWithIdentifier:(NSString *)identifier;
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
* monitoringRecordForIdentifier:
|
|
126
|
+
*
|
|
127
|
+
* Discussion:
|
|
128
|
+
* Gets the monitoring record containing the condition and last
|
|
129
|
+
* monitoring event, if applicable
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
- (nullable CLMonitoringRecord *)monitoringRecordForIdentifier:(NSString *)identifier;
|
|
133
|
+
|
|
134
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
135
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
136
|
+
|
|
137
|
+
@end
|
|
138
|
+
|
|
139
|
+
NS_ASSUME_NONNULL_END
|
|
140
|
+
#endif /* CLMonitor_h */
|