---
title: "openApplication(for:)"
framework: lockedcameracapture
role: symbol
role_heading: Instance Method
path: "lockedcameracapture/lockedcameracapturesession/openapplication(for:)"
---

# openApplication(for:)

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

## Declaration

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

## Parameters

- `userActivity`: An NSUserActivity that contains relevant information to benefit from universal link support. Use the doc://com.apple.LockedCameraCapture/documentation/LockedCameraCapture/NSUserActivityTypeLockedCameraCapture activity type to indicate when the app launches from a locked camera capture extension.

## Discussion

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