<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LockedCameraCapture",
  "identifier" : "/documentation/LockedCameraCapture/LockedCameraCaptureSession",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "LockedCameraCapture"
    ],
    "preciseIdentifier" : "s:19LockedCameraCapture0abC7SessionC"
  },
  "title" : "LockedCameraCaptureSession"
}
-->

# LockedCameraCaptureSession

An object that can request to open the extension’s containing app and receives session configuration
updates.

```
final class LockedCameraCaptureSession
```

## Overview

Provided during the initialization of the
[`LockedCameraCaptureExtensionScene`](/documentation/LockedCameraCapture/LockedCameraCaptureExtensionScene). Only the system can
initialize this object.

## Topics

### Instance Properties

[`var sessionContentURL: URL`](/documentation/LockedCameraCapture/LockedCameraCaptureSession/sessionContentURL)

A temporary directory URL inside the extension’s data container.

### Instance Methods

[`func invalidateSessionContent() async throws`](/documentation/LockedCameraCapture/LockedCameraCaptureSession/invalidateSessionContent())

Invalidates the contents of the session contents URL, deleting them. Note this does not remove the contents directory itself. This is useful in case the extension has already ingested its contents via PhotoKit and wishes to not persist any data (but can still use this directory as a working directory to recover from an unexpected termination).

[`func openApplication(for: NSUserActivity) async throws`](/documentation/LockedCameraCapture/LockedCameraCaptureSession/openApplication(for:))

Initiates a request to open the extension’s containing app.

### Enumerations

[`enum ApplicationLaunchError`](/documentation/LockedCameraCapture/LockedCameraCaptureSession/ApplicationLaunchError)

Indicates why launching the extension’s containing app failed.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)