<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindowScene/ActivationAction/init(title:subtitle:image:identifier:discoverabilityTitle:attributes:alternate:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So29UIWindowSceneActivationActionC5UIKitE5title8subtitle5image10identifier20discoverabilityTitle10attributes9alternate_ABSSSg_AKSo7UIImageCSgSo18UIActionIdentifieraSgAKSo23UIMenuElementAttributesVSo0O0CSgSo0abC13ConfigurationCSgABctcfc"
  },
  "title" : "init(title:subtitle:image:identifier:discoverabilityTitle:attributes:alternate:_:)"
}
-->

# init(title:subtitle:image:identifier:discoverabilityTitle:attributes:alternate:_:)

Creates an activation action using the specified parameters.

```
@MainActor @preconcurrency convenience init(title: String? = nil, subtitle: String? = nil, image: UIImage? = nil, identifier: UIAction.Identifier? = nil, discoverabilityTitle: String? = nil, attributes: UIMenuElement.Attributes = [], alternate: UIAction? = nil, _ configuration: @escaping UIWindowScene.ActivationAction.ConfigurationProvider)
```

## Parameters

`title`

The title to display for the action.

`subtitle`

The subtitle to display for the action.

`image`

The image to display next to the action’s title. Only the [`context`](/documentation/UIKit/UIMenuSystem/context) menu system supports the display of an image, and only when the app is running in iOS.

`identifier`

The unique identifier for the action. Specify `nil` to let this method create a unique identifier for you.

`discoverabilityTitle`

An elaborated title that explains the purpose of the action.

`attributes`

The attributes indicating the style of the action.

`alternate`

An alternate action to perform if the platform doesn’t support multiple scenes or if requesting a scene fails.

`configuration`

The closure the system calls when the user selects the action. The closure should return a [`UIWindowScene.ActivationConfiguration`](/documentation/UIKit/UIWindowScene/ActivationConfiguration) object.

---

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)