<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LockedCameraCapture",
  "identifier" : "/documentation/LockedCameraCapture/LockedCameraCaptureSession/openApplication(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "LockedCameraCapture"
    ],
    "preciseIdentifier" : "s:19LockedCameraCapture0abC7SessionC15openApplication3forySo14NSUserActivityC_tYaKF"
  },
  "title" : "openApplication(for:)"
}
-->

# openApplication(for:)

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

```
final func openApplication(for userActivity: NSUserActivity) async throws
```

## Parameters

`userActivity`

An `NSUserActivity` that contains relevant information
to benefit from universal link support. Use the
[`NSUserActivityTypeLockedCameraCapture`](/documentation/LockedCameraCapture/NSUserActivityTypeLockedCameraCapture) activity type to indicate when the app
launches from a locked camera capture extension.

## Discussion

The system requests authentication before opening the app, if needed.

---

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)