<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: -",
    "macOS: 27.2.0 -",
    "visionOS: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LiveCommunicationKit",
  "identifier" : "/documentation/LiveCommunicationKit/LiveAssistance/containerAppLaunchReasonKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "LiveCommunicationKit"
    ],
    "preciseIdentifier" : "s:20LiveCommunicationKit0A10AssistanceO27containerAppLaunchReasonKeySSvpZ"
  },
  "title" : "containerAppLaunchReasonKey"
}
-->

# containerAppLaunchReasonKey

A key the container app uses to retrieve the reason the app extension requested the framework to launch the container app.

```
static let containerAppLaunchReasonKey: String
```

## Discussion

When launched with the user activity type [`containerAppLaunchReasonKey`](/documentation/LiveCommunicationKit/LiveAssistance/containerAppLaunchReasonKey), your app retrieves this key from the <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/userInfo> dictionary of the <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> received by the launch method. The value is a string that you pass to `LiveAssistanceLaunchReason(rawValue:)` to create an instance of the [`LiveAssistanceLaunchReason`](/documentation/LiveCommunicationKit/LiveAssistanceLaunchReason) enumeration. Compare this instance against the defined cases in the enumeration to determine why the container app launched, such as to perform sign-in or to collect further information or approval. The string you receive from the user activity is only appropriate for instantiating a [`LiveAssistanceLaunchReason`](/documentation/LiveCommunicationKit/LiveAssistanceLaunchReason) to compare against; it’s not appropriate for use in your user interface.

---

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)