<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindowScene/ActivationConfiguration/init(userActivity:options:preview:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So36UIWindowSceneActivationConfigurationC5UIKitE12userActivity7options7previewABSo06NSUserG0C_So0abC14RequestOptionsCSgSo17UITargetedPreviewCSgtcfc"
  },
  "title" : "init(userActivity:options:preview:)"
}
-->

# init(userActivity:options:preview:)

Creates an activation configuration.

```
convenience init(userActivity: NSUserActivity, options: UIWindowScene.ActivationRequestOptions? = nil, preview: UITargetedPreview? = nil)
```

## Parameters

`userActivity`

The user activity used to request a scene.

`options`

Options for customizing the scene request. If you don’t provide options, the system uses the default options.

`preview`

An optional targeted preview that the system uses to animate the transition to the new scene.

---

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)